Searched refs:sigfd (Results 1 – 5 of 5) sorted by relevance
/third_party/alsa-utils/alsactl/ |
D | monitor.c | 273 static int prepare_dispatcher(int epfd, int sigfd, int infd, in prepare_dispatcher() argument 281 ev.data.fd = sigfd; in prepare_dispatcher() 282 if (epoll_ctl(epfd, EPOLL_CTL_ADD, sigfd, &ev) < 0) in prepare_dispatcher() 301 static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs, in run_dispatcher() argument 334 if (ev->data.fd == sigfd) in run_dispatcher() 358 static void clear_dispatcher(int epfd, int sigfd, int infd, in clear_dispatcher() argument 368 epoll_ctl(epfd, EPOLL_CTL_DEL, sigfd, NULL); in clear_dispatcher() 371 static int prepare_signalfd(int *sigfd) in prepare_signalfd() argument 386 *sigfd = fd; in prepare_signalfd() 394 int sigfd = 0; in monitor() local [all …]
|
/third_party/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 …]
|
/third_party/toybox/generated/ |
D | globals.h | 846 int sigfd[2]; member
|