Home
last modified time | relevance | path

Searched refs:sigfd (Results 1 – 6 of 6) sorted by relevance

/external/vboot_reference/utility/
Dverify_data.c28 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/
Dsyslogd.c70 int sigfd[2];
403 if (write(TT.sigfd[1], &ch, 1) != 1) error_msg("can't send signal"); in signal_handler()
463 xpipe(TT.sigfd); 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 …]
Ddhcp.c197 static struct fd_pair sigfd; variable
809 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n"); in signal_handler()
815 if (pipe((int *)&sigfd) < 0) { in setup_signal()
819 fcntl(sigfd.wr , F_SETFD, FD_CLOEXEC); in setup_signal()
820 fcntl(sigfd.rd , F_SETFD, FD_CLOEXEC); in setup_signal()
821 int flags = fcntl(sigfd.wr, F_GETFL); in setup_signal()
822 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 …]
Ddhcpd.c327 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/
Ddexec.c56 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/
Dglobals.h754 int sigfd[2]; member