Home
last modified time | relevance | path

Searched refs:rfds (Results 1 – 23 of 23) sorted by relevance

/external/libnl/src/
Dnf-log.c122 fd_set rfds; in main() local
125 FD_ZERO(&rfds); in main()
128 FD_SET(nffd, &rfds); in main()
131 FD_SET(rtfd, &rfds); in main()
136 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main()
139 if (FD_ISSET(nffd, &rfds)) in main()
141 if (FD_ISSET(rtfd, &rfds)) in main()
Dnf-queue.c147 fd_set rfds; in main() local
150 FD_ZERO(&rfds); in main()
153 FD_SET(nffd, &rfds); in main()
156 FD_SET(rtfd, &rfds); in main()
161 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main()
164 if (FD_ISSET(nffd, &rfds)) in main()
166 if (FD_ISSET(rtfd, &rfds)) in main()
Dnf-monitor.c88 fd_set rfds; in main() local
93 FD_ZERO(&rfds); in main()
94 FD_SET(fd, &rfds); in main()
96 retval = select(fd+1, &rfds, NULL, NULL, NULL); in main()
Dnl-monitor.c98 fd_set rfds; in main() local
103 FD_ZERO(&rfds); in main()
104 FD_SET(fd, &rfds); in main()
106 retval = select(fd+1, &rfds, NULL, NULL, NULL); in main()
/external/ipsec-tools/src/racoon/
Dsession.c119 fd_set rfds; in session() local
182 rfds = maskdying; in session()
184 rfds = mask0; in session()
195 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout); in session()
211 (FD_ISSET(lcconf->sock_admin, &rfds))) in session()
218 if (FD_ISSET(p->sock, &rfds)) in session()
222 if (FD_ISSET(lcconf->sock_pfkey, &rfds)) in session()
225 if (lcconf->rtsock >= 0 && FD_ISSET(lcconf->rtsock, &rfds)) { in session()
Dschedule.c334 fd_set rfds; in main() local
346 rfds = mask0; in main()
350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout); in main()
360 if (FD_ISSET(0, &rfds)) in main()
/external/libnfc-nxp/Linux_x86/
DphDal4Nfc_i2c.c181 fd_set rfds; in phDal4Nfc_i2c_read() local
190 FD_ZERO(&rfds); in phDal4Nfc_i2c_read()
191 FD_SET(gI2cPortContext.nHandle, &rfds); in phDal4Nfc_i2c_read()
194 ret = select(gI2cPortContext.nHandle + 1, &rfds, NULL, NULL, &tv); in phDal4Nfc_i2c_read()
DphDal4Nfc_uart.c303 fd_set rfds; in phDal4Nfc_uart_read() local
331 FD_ZERO(&rfds); in phDal4Nfc_uart_read()
332 FD_SET(gComPortContext.nHandle, &rfds); in phDal4Nfc_uart_read()
339 ret = select(gComPortContext.nHandle + 1, &rfds, NULL, NULL, ptv); in phDal4Nfc_uart_read()
/external/libnfc-nci/halimpl/pn54x/tml/
DphTmlNfc_i2c.c127 fd_set rfds; in phTmlNfc_i2c_read() local
149 FD_ZERO(&rfds); in phTmlNfc_i2c_read()
150 FD_SET((intptr_t) pDevHandle, &rfds); in phTmlNfc_i2c_read()
154 ret_Select = select((int)((intptr_t)pDevHandle + (int)1), &rfds, NULL, NULL, &tv); in phTmlNfc_i2c_read()
/external/wpa_supplicant_8/src/common/
Dwpa_ctrl.c475 fd_set rfds; in wpa_ctrl_request() local
532 FD_ZERO(&rfds); in wpa_ctrl_request()
533 FD_SET(ctrl->s, &rfds); in wpa_ctrl_request()
534 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request()
539 if (FD_ISSET(ctrl->s, &rfds)) { in wpa_ctrl_request()
614 fd_set rfds; in wpa_ctrl_pending() local
617 FD_ZERO(&rfds); in wpa_ctrl_pending()
618 FD_SET(ctrl->s, &rfds); in wpa_ctrl_pending()
619 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending()
620 return FD_ISSET(ctrl->s, &rfds); in wpa_ctrl_pending()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_privsep.c140 fd_set rfds; in l2_packet_init() local
191 FD_ZERO(&rfds); in l2_packet_init()
192 FD_SET(l2->fd, &rfds); in l2_packet_init()
195 res = select(l2->fd + 1, &rfds, NULL, NULL, &tv); in l2_packet_init()
201 if (FD_ISSET(l2->fd, &rfds)) { in l2_packet_init()
/external/avahi/avahi-dnsconfd/
Dmain.c460 fd_set rfds, wfds; in run_daemon() local
462 FD_ZERO(&rfds); in run_daemon()
465 FD_SET(fd, &rfds); in run_daemon()
466 FD_SET(daemon_signal_fd(), &rfds); in run_daemon()
469 if (select(fd+1, &rfds, NULL, NULL, NULL) < 0) { in run_daemon()
480 if (FD_ISSET(daemon_signal_fd(), &rfds)) { in run_daemon()
512 } else if (FD_ISSET(fd, &rfds)) { in run_daemon()
/external/toybox/toys/pending/
Dsyslogd.c411 fd_set rfds; // fds for reading in syslogd_main() local
486 FD_ZERO(&rfds); in syslogd_main()
487 for (tsd = TT.lsocks; tsd; tsd = tsd->next) FD_SET(tsd->sd, &rfds); 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()
527 if (FD_ISSET(sd, &rfds)) { in syslogd_main()
Ddhcp6.c542 fd_set rfds; in dhcp6_main() local
588 if (TT.sock >= 0) FD_SET(TT.sock, &rfds); in dhcp6_main()
590 if ((TT.retval = select(maxfd + 1, &rfds, NULL, NULL, &TT.tv)) < 0) { in dhcp6_main()
620 } else if (FD_ISSET(TT.sock, &rfds)) { in dhcp6_main()
Ddhcp.c1272 fd_set rfds; in dhcp_main() local
1313 FD_ZERO(&rfds); in dhcp_main()
1314 if (state->sockfd >= 0) FD_SET(state->sockfd, &rfds); in dhcp_main()
1315 FD_SET(sigfd.rd, &rfds); in dhcp_main()
1323 if((retval = select(maxfd + 1, &rfds, NULL, NULL, &tv)) < 0) { in dhcp_main()
1415 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcp_main()
1444 if (FD_ISSET(state->sockfd, &rfds)) { // Some Activity on RDFDs : is socket in dhcp_main()
Ddhcpd.c1615 fd_set rfds; in dhcpd_main() local
1674 FD_ZERO(&rfds); in dhcpd_main()
1675 FD_SET(gstate.listensock, &rfds); in dhcpd_main()
1676 FD_SET(sigfd.rd, &rfds); in dhcpd_main()
1685 retval = select(maxfd + 1, &rfds, NULL, NULL, (gconfig.auto_time?&tv:NULL)); in dhcpd_main()
1707 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcpd_main()
1727 if (FD_ISSET(gstate.listensock, &rfds)) { // Some Activity on RDFDs : is socket in dhcpd_main()
/external/wpa_supplicant_8/src/utils/
Deloop.c1063 fd_set *rfds, *wfds, *efds; in eloop_run() local
1076 rfds = os_malloc(sizeof(*rfds)); in eloop_run()
1079 if (rfds == NULL || wfds == NULL || efds == NULL) in eloop_run()
1131 eloop_sock_table_set_fds(&eloop.readers, rfds); in eloop_run()
1134 res = select(eloop.max_sock + 1, rfds, wfds, efds, in eloop_run()
1218 eloop_sock_table_dispatch(&eloop.readers, rfds); in eloop_run()
1233 os_free(rfds); in eloop_run()
1320 fd_set rfds; in eloop_wait_for_read_sock() local
1325 FD_ZERO(&rfds); in eloop_wait_for_read_sock()
1326 FD_SET(sock, &rfds); in eloop_wait_for_read_sock()
[all …]
/external/libchrome/base/files/
Dfile_path_watcher_linux.cc208 fd_set rfds; in InotifyReaderCallback() local
209 FD_ZERO(&rfds); in InotifyReaderCallback()
210 FD_SET(inotify_fd, &rfds); in InotifyReaderCallback()
211 FD_SET(shutdown_fd, &rfds); in InotifyReaderCallback()
216 &rfds, NULL, NULL, NULL)); in InotifyReaderCallback()
222 if (FD_ISSET(shutdown_fd, &rfds)) in InotifyReaderCallback()
/external/autotest/client/profilers/powertop/src/
Dpowertop.c851 fd_set rfds; in main() local
860 FD_ZERO(&rfds); in main()
861 FD_SET(0, &rfds); in main()
868 key = select(1, &rfds, NULL, NULL, &tv); in main()
1159 FD_ZERO(&rfds); in main()
1160 FD_SET(0, &rfds); in main()
1163 key = select(1, &rfds, NULL, NULL, &tv); in main()
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c68 fd_set rfds; in wpa_priv_cmd() local
72 FD_ZERO(&rfds); in wpa_priv_cmd()
73 FD_SET(drv->cmd_socket, &rfds); in wpa_priv_cmd()
76 res = select(drv->cmd_socket + 1, &rfds, NULL, NULL, &tv); in wpa_priv_cmd()
82 if (FD_ISSET(drv->cmd_socket, &rfds)) { in wpa_priv_cmd()
/external/wpa_supplicant_8/hostapd/
Dhostapd_cli.c1383 fd_set rfds; in hostapd_cli_action() local
1392 FD_ZERO(&rfds); in hostapd_cli_action()
1393 FD_SET(fd, &rfds); in hostapd_cli_action()
1396 res = select(fd + 1, &rfds, NULL, NULL, &tv); in hostapd_cli_action()
1402 if (FD_ISSET(fd, &rfds)) in hostapd_cli_action()
/external/libvncserver/libvncserver/
Dmain.c516 fd_set rfds, wfds, efds; in clientInput() local
525 FD_ZERO(&rfds); in clientInput()
526 FD_SET(cl->sock, &rfds); in clientInput()
537 n = select(cl->sock + 1, &rfds, &wfds, &efds, &tv); in clientInput()
552 if (FD_ISSET(cl->sock, &rfds) || FD_ISSET(cl->sock, &efds)) in clientInput()
/external/curl/
Dacinclude.m42381 $sel_arg234 rfds=0;
2384 $sel_retv res = select(nfds, rfds, wfds, efds, 0);