Searched refs:sigfd (Results 1 – 5 of 5) 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 | 70 int sigfd[2]; 403 if (write(TT.sigfd[1], &ch, 1) != 1) error_msg("can't send signal"); in signal_handler() 463 if (pipe(TT.sigfd) < 0) error_exit("pipe failed\n"); in syslogd_main() 465 fcntl(TT.sigfd[1] , F_SETFD, FD_CLOEXEC); in syslogd_main() 466 fcntl(TT.sigfd[0] , F_SETFD, FD_CLOEXEC); in syslogd_main() 467 int flags = fcntl(TT.sigfd[1], F_GETFL); in syslogd_main() 468 fcntl(TT.sigfd[1], F_SETFL, flags | O_NONBLOCK); in syslogd_main() 488 FD_SET(TT.sigfd[0], &rfds); in syslogd_main() 492 retval = select(TT.sigfd[0] + 1, &rfds, NULL, NULL, (TT.interval)?&tv:NULL); in syslogd_main() 497 else if (FD_ISSET(TT.sigfd[0], &rfds)) { /* May be a signal */ in syslogd_main() [all …]
|
D | dhcpd.c | 212 static struct fd_pair sigfd; variable 323 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n"); in signal_handler() 329 if (pipe((int *)&sigfd) < 0) { in setup_signal() 333 fcntl(sigfd.wr , F_SETFD, FD_CLOEXEC); in setup_signal() 334 fcntl(sigfd.rd , F_SETFD, FD_CLOEXEC); in setup_signal() 335 int flags = fcntl(sigfd.wr, F_GETFL); in setup_signal() 336 fcntl(sigfd.wr, F_SETFL, flags | O_NONBLOCK); in setup_signal() 1121 FD_SET(sigfd.rd, &rfds); in dhcpd_main() 1128 int maxfd = (sigfd.rd > gstate.listensock)? sigfd.rd : gstate.listensock; in dhcpd_main() 1148 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcpd_main() [all …]
|
D | dhcp.c | 200 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() 1315 FD_SET(sigfd.rd, &rfds); in dhcp_main() 1320 int maxfd = (sigfd.rd > state->sockfd)? sigfd.rd : state->sockfd; in dhcp_main() 1415 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcp_main() [all …]
|
/external/toybox/generated/ |
D | globals.h | 718 int sigfd[2]; member
|