Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/kernel/device-drivers/rtc/
Drtc01.c65 fd_set rfds; in read_alarm_test() local
135 FD_ZERO(&rfds); in read_alarm_test()
136 FD_SET(rtc_fd, &rfds); in read_alarm_test()
138 ret = select(rtc_fd + 1, &rfds, NULL, NULL, &tv); /*wait for alarm */ in read_alarm_test()
173 fd_set rfds; in update_interrupts_test() local
193 FD_ZERO(&rfds); in update_interrupts_test()
194 FD_SET(rtc_fd, &rfds); in update_interrupts_test()
196 ret = select(rtc_fd + 1, &rfds, NULL, NULL, &tv); in update_interrupts_test()
/third_party/libfuse/example/
Dpoll_client.c55 fd_set rfds; in main() local
58 FD_ZERO(&rfds); in main()
60 FD_SET(fds[i], &rfds); in main()
62 rc = select(nfds, &rfds, NULL, NULL, NULL); in main()
70 if (!FD_ISSET(fds[i], &rfds)) { in main()
/third_party/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()
/third_party/pulseaudio/src/pulsecore/
Dpoll-win32.c297 compute_revents (int fd, int sought, fd_set *rfds, fd_set *wfds, fd_set *efds) in compute_revents() argument
300 if (FD_ISSET (fd, rfds)) in compute_revents()
357 fd_set rfds, wfds, efds; in pa_poll() local
414 FD_ZERO (&rfds); in pa_poll()
423 FD_SET (pfd[i].fd, &rfds); in pa_poll()
447 rc = select (maxfd + 1, &rfds, &wfds, &efds, ptv); in pa_poll()
459 &rfds, &wfds, &efds); in pa_poll()
473 fd_set rfds, wfds, xfds; in pa_poll() local
484 FD_ZERO (&rfds); in pa_poll()
509 FD_SET ((SOCKET) h, &rfds); in pa_poll()
[all …]
/third_party/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()
/third_party/musl/porting/liteos_a/user/src/select/
Dselect.c10 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timev… in select() argument
31 r = __syscall_cp(SYS_pselect6_time64, n, rfds, wfds, efds, in select()
38 return syscall_cp(SYS_select, n, rfds, wfds, efds, in select()
41 return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, in select()
/third_party/musl/src/select/
Dselect.c10 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timev… in select() argument
31 r = __syscall_cp(SYS_pselect6_time64, n, rfds, wfds, efds, in select()
38 return syscall_cp(SYS_select, n, rfds, wfds, efds, in select()
41 return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, in select()
Dpselect.c10 int pselect(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struc… in pselect() argument
18 r = __syscall_cp(SYS_pselect6_time64, n, rfds, wfds, efds, in pselect()
24 return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, in pselect()
/third_party/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c286 fd_set afds, rfds; in do_child() local
299 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
301 if (select(nfds, &rfds, NULL, NULL, in do_child()
305 if (FD_ISSET(sfd, &rfds)) { in do_child()
316 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/third_party/ltp/testcases/kernel/syscalls/recv/
Drecv01.c267 fd_set afds, rfds; in do_child() local
279 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
281 if (select(nfds, &rfds, NULL, NULL, in do_child()
285 if (FD_ISSET(sfd, &rfds)) { in do_child()
298 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c296 fd_set afds, rfds; in do_child() local
308 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
310 if (select(nfds, &rfds, NULL, NULL, in do_child()
314 if (FD_ISSET(sfd, &rfds)) { in do_child()
327 if (fd != sfd && FD_ISSET(fd, &rfds)) { in do_child()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dwpa_ctrl.c529 fd_set rfds; in wpa_ctrl_request() local
589 FD_ZERO(&rfds); in wpa_ctrl_request()
590 FD_SET(ctrl->s, &rfds); in wpa_ctrl_request()
591 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request()
596 if (FD_ISSET(ctrl->s, &rfds)) { in wpa_ctrl_request()
672 fd_set rfds; in wpa_ctrl_pending() local
675 FD_ZERO(&rfds); in wpa_ctrl_pending()
676 FD_SET(ctrl->s, &rfds); in wpa_ctrl_pending()
677 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending()
678 return FD_ISSET(ctrl->s, &rfds); in wpa_ctrl_pending()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dwpa_ctrl.c524 fd_set rfds; in wpa_ctrl_request() local
584 FD_ZERO(&rfds); in wpa_ctrl_request()
585 FD_SET(ctrl->s, &rfds); in wpa_ctrl_request()
586 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request()
591 if (FD_ISSET(ctrl->s, &rfds)) { in wpa_ctrl_request()
667 fd_set rfds; in wpa_ctrl_pending() local
670 FD_ZERO(&rfds); in wpa_ctrl_pending()
671 FD_SET(ctrl->s, &rfds); in wpa_ctrl_pending()
672 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending()
673 return FD_ISSET(ctrl->s, &rfds); in wpa_ctrl_pending()
/third_party/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()
/third_party/libuv/src/win/
Dpoll.c274 uv_single_fd_set_t rfds, wfds, efds; in uv__slow_poll_thread_proc() local
281 rfds.fd_count = 1; in uv__slow_poll_thread_proc()
282 rfds.fd_array[0] = handle->socket; in uv__slow_poll_thread_proc()
284 rfds.fd_count = 0; in uv__slow_poll_thread_proc()
302 r = select(1, (fd_set*) &rfds, (fd_set*) &wfds, (fd_set*) &efds, &timeout); in uv__slow_poll_thread_proc()
313 if (rfds.fd_count > 0) { in uv__slow_poll_thread_proc()
314 assert(rfds.fd_count == 1); in uv__slow_poll_thread_proc()
315 assert(rfds.fd_array[0] == handle->socket); in uv__slow_poll_thread_proc()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c428 fd_set afds, rfds; in do_child() local
441 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
443 if (select(nfds, &rfds, NULL, NULL, in do_child()
451 if (FD_ISSET(sfd, &rfds)) { in do_child()
463 if (FD_ISSET(ufd, &rfds)) { in do_child()
474 if (fd != sfd && fd != ufd && FD_ISSET(fd, &rfds)) { in do_child()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
/third_party/node/test/pseudo-tty/
Dpty_helper.py89 rfds, _, _ = select.select(fds, [], []) variable
96 if STDIN in rfds:
100 if parent_fd in rfds:
/third_party/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()
/third_party/python/Lib/multiprocessing/
Dforkserver.py218 rfds = [key.fileobj for (key, events) in selector.select()]
219 if rfds:
222 if alive_r in rfds:
227 if sig_r in rfds:
254 if listener in rfds:
/third_party/musl/compat/time32/
Dselect_time32.c6 int __select_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, str… in __select_time32() argument
8 return select(n, rfds, wfds, efds, !tv32 ? 0 : (&(struct timeval){ in __select_time32()
Dpselect_time32.c5 int __pselect_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, co… in __pselect_time32() argument
7 return pselect(n, rfds, wfds, efds, !ts32 ? 0 : (&(struct timespec){ in __pselect_time32()
/third_party/toybox/toys/pending/
Dsyslogd.c410 fd_set rfds; // fds for reading in syslogd_main() local
485 FD_ZERO(&rfds); in syslogd_main()
486 for (tsd = TT.lsocks; tsd; tsd = tsd->next) FD_SET(tsd->sd, &rfds); 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()
526 if (FD_ISSET(sd, &rfds)) { in syslogd_main()

12