/third_party/libnl/src/ |
D | nf-log.c | 124 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()
|
D | nf-queue.c | 126 fd_set rfds; in main() local 129 FD_ZERO(&rfds); in main() 132 FD_SET(nffd, &rfds); in main() 135 FD_SET(rtfd, &rfds); in main() 140 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main() 143 if (FD_ISSET(nffd, &rfds)) in main() 145 if (FD_ISSET(rtfd, &rfds)) in main()
|
D | nf-monitor.c | 92 fd_set rfds; in main() local 97 FD_ZERO(&rfds); in main() 98 FD_SET(fd, &rfds); in main() 100 retval = select(fd+1, &rfds, NULL, NULL, NULL); in main()
|
D | nl-monitor.c | 133 fd_set rfds; in main() local 138 FD_ZERO(&rfds); in main() 139 FD_SET(fd, &rfds); in main() 141 retval = select(fd+1, &rfds, NULL, NULL, NULL); in main()
|
/third_party/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 65 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/ltp/testcases/open_posix_testsuite/include/ |
D | mq_send.h | 50 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/ |
D | personality02.c | 35 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/pulseaudio/src/pulsecore/ |
D | poll-win32.c | 297 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/musl/src/select/ |
D | select.c | 10 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()
|
D | pselect.c | 10 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/musl/porting/liteos_a/user/src/select/ |
D | select.c | 10 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/ltp/testcases/kernel/syscalls/recv/ |
D | recv01.c | 267 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/connect/ |
D | connect01.c | 286 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/ |
D | send01.c | 210 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/ |
D | recvfrom01.c | 296 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/ |
D | wpa_ctrl.c | 523 fd_set rfds; in wpa_ctrl_request() local 583 FD_ZERO(&rfds); in wpa_ctrl_request() 584 FD_SET(ctrl->s, &rfds); in wpa_ctrl_request() 585 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request() 590 if (FD_ISSET(ctrl->s, &rfds)) { in wpa_ctrl_request() 666 fd_set rfds; in wpa_ctrl_pending() local 669 FD_ZERO(&rfds); in wpa_ctrl_pending() 670 FD_SET(ctrl->s, &rfds); in wpa_ctrl_pending() 671 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending() 672 return FD_ISSET(ctrl->s, &rfds); in wpa_ctrl_pending()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | wpa_ctrl.c | 524 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/ |
D | sendto01.c | 281 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/musl/compat/time32/ |
D | select_time32.c | 6 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()
|
D | pselect_time32.c | 5 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/node/test/pseudo-tty/ |
D | pty_helper.py | 89 rfds, _, _ = select.select(fds, [], []) variable 96 if STDIN in rfds: 100 if parent_fd in rfds:
|
/third_party/libuv/src/win/ |
D | poll.c | 274 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/ |
D | recvmsg01.c | 428 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_standard/src/l2_packet/ |
D | l2_packet_privsep.c | 140 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/src/l2_packet/ |
D | l2_packet_privsep.c | 140 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()
|