Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/kernel/device-drivers/rtc/
H A 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/
H A 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/
H A 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/ltp/testcases/kernel/syscalls/personality/
H A Dpersonality02.c24 fd_set rfds; in run() local
26 FD_ZERO(&rfds); in run()
27 FD_SET(1, &rfds); in run()
31 TEST(select(2, &rfds, NULL, NULL, &tv)); in run()
/third_party/python/Lib/
H A Dpty.py150 rfds = []
153 rfds.append(STDIN_FILENO)
155 rfds.append(master_fd)
161 rfds, wfds, _xfds = select(rfds, wfds, [])
170 if master_fd in rfds:
186 if stdin_avail and STDIN_FILENO in rfds:
/third_party/pulseaudio/src/pulsecore/
H A 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()
484 FD_ZERO (&rfds); in pa_poll()
509 FD_SET ((SOCKET) h, &rfds); in pa_poll()
[all...]
/third_party/musl/porting/liteos_a/user/src/select/
H A Dselect.c10 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv) 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/
H A Dselect.c10 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv) in select() argument
31 r = __syscall_cp(SYS_pselect6_time64, n, rfds, wfds, efds, in select()
39 return syscall_cp(SYS_select, n, rfds, wfds, efds, in select()
46 return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, in select()
H A Dpselect.c10 int pselect(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec *restrict ts, const sigset_t *restrict mask) 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/
H A 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/send/
H A 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/recv/
H A 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/sendto/
H A 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/ltp/testcases/kernel/syscalls/recvfrom/
H A 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/
H A Dwpa_ctrl.c560 fd_set rfds; in wpa_ctrl_request() local
624 FD_ZERO(&rfds); in wpa_ctrl_request()
625 FD_SET(ctrl->s, &rfds); in wpa_ctrl_request()
626 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request()
631 if (FD_ISSET(ctrl->s, &rfds)) { in wpa_ctrl_request()
708 fd_set rfds; in wpa_ctrl_pending() local
711 FD_ZERO(&rfds); in wpa_ctrl_pending()
712 FD_SET(ctrl->s, &rfds); in wpa_ctrl_pending()
713 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending()
714 return FD_ISSET(ctrl->s, &rfds); in wpa_ctrl_pending()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
H A 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()
[all...]
/third_party/libuv/src/win/
H A 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/node/deps/uv/src/win/
H A Dpoll.c272 uv_single_fd_set_t rfds, wfds, efds; in uv__slow_poll_thread_proc() local
279 rfds.fd_count = 1; in uv__slow_poll_thread_proc()
280 rfds.fd_array[0] = handle->socket; in uv__slow_poll_thread_proc()
282 rfds.fd_count = 0; in uv__slow_poll_thread_proc()
300 r = select(1, (fd_set*) &rfds, (fd_set*) &wfds, (fd_set*) &efds, &timeout); in uv__slow_poll_thread_proc()
311 if (rfds.fd_count > 0) { in uv__slow_poll_thread_proc()
312 assert(rfds.fd_count == 1); in uv__slow_poll_thread_proc()
313 assert(rfds.fd_array[0] == handle->socket); in uv__slow_poll_thread_proc()
/third_party/musl/compat/time32/
H A Dpselect_time32.c5 int __pselect_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec32 *restrict ts32, const sigset_t *restrict mask) in __pselect_time32() argument
7 return pselect(n, rfds, wfds, efds, !ts32 ? 0 : (&(struct timespec){ in __pselect_time32()
H A Dselect_time32.c6 int __select_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval32 *restrict tv32) in __select_time32() argument
8 return select(n, rfds, wfds, efds, !tv32 ? 0 : (&(struct timeval){ in __select_time32()
/third_party/node/tools/
H A Dpseudo-tty.py91 rfds, _, _ = select.select(fds, [], [])
98 if STDIN in rfds:
102 if parent_fd in rfds:
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
H A Drecvmsg01.c430 fd_set afds, rfds; in do_child() local
443 memcpy(&rfds, &afds, sizeof(rfds)); in do_child()
445 if (select(nfds, &rfds, NULL, NULL, in do_child()
453 if (FD_ISSET(sfd, &rfds)) { in do_child()
465 if (FD_ISSET(ufd, &rfds)) { in do_child()
476 if (fd != sfd && fd != ufd && FD_ISSET(fd, &rfds)) { in do_child()
/third_party/toybox/toys/pending/
H A Dsyslogd.c410 fd_set rfds; // fds for reading in syslogd_main() local
484 // Add opened socks to rfds for select() in syslogd_main()
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()
/third_party/ltp/testcases/network/lib6/
H A 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/
H A 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:

Completed in 15 milliseconds

12