Home
last modified time | relevance | path

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

12

/external/libnl/src/
Dnf-queue.c124 fd_set rfds; in main() local
127 FD_ZERO(&rfds); in main()
130 FD_SET(nffd, &rfds); in main()
133 FD_SET(rtfd, &rfds); in main()
138 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main()
141 if (FD_ISSET(nffd, &rfds)) in main()
143 if (FD_ISSET(rtfd, &rfds)) in main()
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-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/ltp/testcases/kernel/device-drivers/rtc/
Drtc01.c64 fd_set rfds; in read_alarm_test() local
134 FD_ZERO(&rfds); in read_alarm_test()
135 FD_SET(rtc_fd, &rfds); in read_alarm_test()
137 ret = select(rtc_fd + 1, &rfds, NULL, NULL, &tv); /*wait for alarm */ in read_alarm_test()
172 fd_set rfds; in update_interrupts_test() local
192 FD_ZERO(&rfds); in update_interrupts_test()
193 FD_SET(rtc_fd, &rfds); in update_interrupts_test()
195 ret = select(rtc_fd + 1, &rfds, NULL, NULL, &tv); in update_interrupts_test()
/external/ltp/testcases/open_posix_testsuite/include/
Dmq_send.h50 fd_set rfds; in sync_pipe_wait_select() local
62 FD_ZERO(&rfds); in sync_pipe_wait_select()
63 FD_SET(fd[0], &rfds); in sync_pipe_wait_select()
65 r = select(fd[0] + 1, &rfds, NULL, NULL, &tv); in sync_pipe_wait_select()
68 if (FD_ISSET(fd[0], &rfds)) { in sync_pipe_wait_select()
/external/ltp/testcases/kernel/syscalls/personality/
Dpersonality02.c35 fd_set rfds; in verify_personality() local
37 FD_ZERO(&rfds); in verify_personality()
38 FD_SET(1, &rfds); in verify_personality()
41 ret = select(2, &rfds, NULL, NULL, &tv); in verify_personality()
/external/strace/tests-m32/
Dreadv.test49 rfds='!!!0'
53 rfds="$rfds,$i"
66 -eread="$rfds" -ewrite="$wfds"
/external/strace/tests-mx32/
Dreadv.test49 rfds='!!!0'
53 rfds="$rfds,$i"
66 -eread="$rfds" -ewrite="$wfds"
/external/strace/tests/
Dreadv.test49 rfds='!!!0'
53 rfds="$rfds,$i"
66 -eread="$rfds" -ewrite="$wfds"
/external/syslinux/gpxe/src/drivers/net/
Deepro100.c375 if ( priv->rfds[0] != NULL ) { in ifec_net_open()
376 ifec_scb_cmd ( netdev, virt_to_bus( priv->rfds[0] ), RUStart ); in ifec_net_open()
747 priv->rfds[i] = NULL; in ifec_free()
787 if ( priv->rfds[cur_rx] != NULL ) { in ifec_reprime_ru()
788 ifec_scb_cmd ( netdev, virt_to_bus ( priv->rfds[cur_rx] ), in ifec_reprime_ru()
843 struct ifec_rfd *rfd = priv->rfds[cur_rx]; in ifec_rx_process()
870 priv->rfds[cur_rx] = NULL; in ifec_rx_process()
876 rfd = priv->rfds[cur_rx]; in ifec_rx_process()
896 struct ifec_rfd *rfd = priv->rfds[cur]; in ifec_get_rx_desc()
903 priv->rfds[cur] = NULL; in ifec_get_rx_desc()
[all …]
/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/python/cpython2/Modules/_multiprocessing/
Dsocket_connection.c226 fd_set rfds; in conn_poll()
240 FD_ZERO(&rfds); in conn_poll()
241 FD_SET((SOCKET)conn->handle, &rfds); in conn_poll()
245 res = select((int)conn->handle+1, &rfds, NULL, NULL, NULL); in conn_poll()
251 res = select((int)conn->handle+1, &rfds, NULL, NULL, &tv); in conn_poll()
261 } else if (FD_ISSET(conn->handle, &rfds)) { in conn_poll()
/external/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c271 fd_set afds, rfds; in do_child() local
284 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
286 if (select(nfds, &rfds, NULL, NULL, in do_child()
290 if (FD_ISSET(sfd, &rfds)) { in do_child()
301 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/external/ltp/testcases/kernel/syscalls/recv/
Drecv01.c268 fd_set afds, rfds; in do_child() local
280 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
282 if (select(nfds, &rfds, NULL, NULL, in do_child()
286 if (FD_ISSET(sfd, &rfds)) { in do_child()
299 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/external/ltp/testcases/kernel/syscalls/send/
Dsend01.c210 fd_set afds, rfds; in do_child() local
223 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
225 if (select(nfds, &rfds, NULL, NULL, NULL) < 0) in do_child()
228 if (FD_ISSET(sfd, &rfds)) { in do_child()
239 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/external/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c297 fd_set afds, rfds; in do_child() local
309 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
311 if (select(nfds, &rfds, NULL, NULL, in do_child()
315 if (FD_ISSET(sfd, &rfds)) { in do_child()
328 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/external/wpa_supplicant_8/src/common/
Dwpa_ctrl.c493 fd_set rfds; in wpa_ctrl_request() local
550 FD_ZERO(&rfds); in wpa_ctrl_request()
551 FD_SET(ctrl->s, &rfds); in wpa_ctrl_request()
552 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request()
557 if (FD_ISSET(ctrl->s, &rfds)) { in wpa_ctrl_request()
632 fd_set rfds; in wpa_ctrl_pending() local
635 FD_ZERO(&rfds); in wpa_ctrl_pending()
636 FD_SET(ctrl->s, &rfds); in wpa_ctrl_pending()
637 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending()
638 return FD_ISSET(ctrl->s, &rfds); in wpa_ctrl_pending()
/external/ltp/testcases/kernel/syscalls/sendto/
Dsendto01.c281 fd_set afds, rfds; in do_child() local
293 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
295 if (select(nfds, &rfds, NULL, NULL, NULL) < 0 && errno != EINTR) in do_child()
298 if (FD_ISSET(sfd, &rfds)) { in do_child()
309 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c433 fd_set afds, rfds; in do_child() local
446 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
448 if (select(nfds, &rfds, NULL, NULL, in do_child()
456 if (FD_ISSET(sfd, &rfds)) { in do_child()
468 if (FD_ISSET(ufd, &rfds)) { in do_child()
479 if (fd != sfd && fd != ufd && FD_ISSET(fd, &rfds)) { in do_child()
/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/ltp/testcases/network/lib6/
Dasapi_03.c298 fd_set rfds, rfds_saved; in so_test() local
314 memcpy(&rfds, &rfds_saved, sizeof(rfds)); in so_test()
315 nfds = select(sr + 1, &rfds, 0, 0, &tv); in so_test()
328 if (!FD_ISSET(sr, &rfds)) in so_test()
/external/python/cpython2/Lib/
Dpty.py147 rfds, wfds, xfds = select(fds, [], [])
148 if master_fd in rfds:
154 if STDIN_FILENO in rfds:
/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()

12