Home
last modified time | relevance | path

Searched refs:sigfd (Results 1 – 9 of 9) 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/igt-gpu-tools/runner/
Dexecutor.c473 int outfd, int errfd, int kmsgfd, int sigfd, in monitor_output() argument
501 if (sigfd > nfds) in monitor_output()
502 nfds = sigfd; in monitor_output()
530 while (outfd >= 0 || errfd >= 0 || sigfd >= 0) { in monitor_output()
540 if (sigfd >= 0) in monitor_output()
541 FD_SET(sigfd, &set); in monitor_output()
724 if (sigfd >= 0 && FD_ISSET(sigfd, &set)) { in monitor_output()
727 s = read(sigfd, &siginfo, sizeof(siginfo)); in monitor_output()
780 sigfd = -1; /* we are dying, no signal handling for now */ in monitor_output()
910 int sigfd, sigset_t *sigmask) in execute_next_entry() argument
[all …]
/external/toybox/toys/pending/
Dsyslogd.c69 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 …]
Ddhcp.c197 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 …]
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/android/linux/generated/
Dglobals.h873 int sigfd[2]; member
/external/toybox/android/mac/generated/
Dglobals.h873 int sigfd[2]; member
/external/toybox/android/device/generated/
Dglobals.h873 int sigfd[2]; member