Searched refs:sigfd (Results 1 – 6 of 6) sorted by relevance
/external/vboot_reference/utility/ |
D | verify_data.c | 28 int i, sigfd; in read_signature() local 30 if ((sigfd = open(input_file, O_RDONLY)) == -1) { in read_signature() 40 if( (i = read(sigfd, signature, len)) != len ) { in read_signature() 43 close(sigfd); in read_signature() 47 close(sigfd); in read_signature()
|
/external/toybox/toys/pending/ |
D | syslogd.c | 69 int sigfd[2]; 402 if (write(TT.sigfd[1], &ch, 1) != 1) error_msg("can't send signal"); in signal_handler() 462 xpipe(TT.sigfd); in syslogd_main() 464 fcntl(TT.sigfd[1] , F_SETFD, FD_CLOEXEC); in syslogd_main() 465 fcntl(TT.sigfd[0] , F_SETFD, FD_CLOEXEC); in syslogd_main() 466 int flags = fcntl(TT.sigfd[1], F_GETFL); in syslogd_main() 467 fcntl(TT.sigfd[1], F_SETFL, flags | O_NONBLOCK); in syslogd_main() 487 FD_SET(TT.sigfd[0], &rfds); in syslogd_main() 491 retval = select(TT.sigfd[0] + 1, &rfds, NULL, NULL, (TT.interval)?&tv:NULL); in syslogd_main() 496 else if (FD_ISSET(TT.sigfd[0], &rfds)) { /* May be a signal */ in syslogd_main() [all …]
|
D | dhcp.c | 197 static struct fd_pair sigfd; variable 811 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n"); in signal_handler() 817 if (pipe((int *)&sigfd) < 0) { in setup_signal() 821 fcntl(sigfd.wr , F_SETFD, FD_CLOEXEC); in setup_signal() 822 fcntl(sigfd.rd , F_SETFD, FD_CLOEXEC); in setup_signal() 823 int flags = fcntl(sigfd.wr, F_GETFL); in setup_signal() 824 fcntl(sigfd.wr, F_SETFL, flags | O_NONBLOCK); in setup_signal() 1317 FD_SET(sigfd.rd, &rfds); in dhcp_main() 1322 int maxfd = (sigfd.rd > state->sockfd)? sigfd.rd : state->sockfd; in dhcp_main() 1417 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcp_main() [all …]
|
D | dhcpd.c | 327 static struct fd_pair sigfd; variable 478 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n"); in signal_handler() 484 if (pipe((int *)&sigfd) < 0) { in setup_signal() 488 fcntl(sigfd.wr , F_SETFD, FD_CLOEXEC); in setup_signal() 489 fcntl(sigfd.rd , F_SETFD, FD_CLOEXEC); in setup_signal() 490 int flags = fcntl(sigfd.wr, F_GETFL); in setup_signal() 491 fcntl(sigfd.wr, F_SETFL, flags | O_NONBLOCK); in setup_signal() 1676 FD_SET(sigfd.rd, &rfds); in dhcpd_main() 1683 int maxfd = (sigfd.rd > gstate.listensock)? sigfd.rd : gstate.listensock; in dhcpd_main() 1707 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcpd_main() [all …]
|
/external/libdaemon/libdaemon/ |
D | dexec.c | 56 int sigfd, r; in daemon_execv() local 136 sigfd = daemon_signal_fd(); in daemon_execv() 137 FD_SET(sigfd, &fds); in daemon_execv() 177 if (FD_ISSET(sigfd, &qfds)) { in daemon_execv()
|
/external/toybox/generated/ |
D | globals.h | 800 int sigfd[2]; member
|