| /netbsd-src/tests/net/can/ |
| H A D | h_canutils.c | 98 fd_set rfds; in can_recvfrom() local 103 FD_ZERO(&rfds); in can_recvfrom() 104 FD_SET(s, &rfds); in can_recvfrom() 108 rv = rump_sys_select(s + 1, &rfds, NULL, NULL, &tmout); in can_recvfrom() 119 ATF_CHECK_MSG(FD_ISSET(s, &rfds), "select returns but s not in set"); in can_recvfrom() 136 fd_set rfds; in can_read() local 141 FD_ZERO(&rfds); in can_read() 142 FD_SET(s, &rfds); in can_read() 146 rv = rump_sys_select(s + 1, &rfds, NULL, NULL, &tmout); in can_read() 157 ATF_CHECK_MSG(FD_ISSET(s, &rfds), "select returns but s not in set"); in can_read()
|
| H A D | t_can.c | 612 fd_set rfds; in ATF_TC_BODY() local 655 FD_ZERO(&rfds); in ATF_TC_BODY() 656 FD_SET(s1, &rfds); in ATF_TC_BODY() 657 FD_SET(s2, &rfds); in ATF_TC_BODY() 661 rv1 = rump_sys_select(MAX(s1,s2) + 1, &rfds, NULL, NULL, &tmout); in ATF_TC_BODY() 672 ATF_CHECK_MSG(FD_ISSET(s1, &rfds) || FD_ISSET(s2, &rfds), in ATF_TC_BODY() 674 if (FD_ISSET(s1, &rfds)) { in ATF_TC_BODY() 696 if (FD_ISSET(s2, &rfds)) { in ATF_TC_BODY()
|
| /netbsd-src/tests/lib/librumphijack/ |
| H A D | h_client.c | 51 fd_set rfds; in main() local 61 FD_ZERO(&rfds); in main() 62 FD_SET(pipefd[0], &rfds); in main() 64 rv = select(pipefd[0]+1, &rfds, NULL, NULL, &tv); in main() 70 if (FD_ISSET(pipefd[0], &rfds)) in main() 74 fd_set rfds, wfds, efds; in main() local 81 FD_ZERO(&rfds); in main() 85 rv = select(100, &rfds, &wfds, &efds, &tv); in main()
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | select.c | 267 rpl_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, in rpl_select() argument 292 if (!rfds && !wfds && !xfds) in rpl_select() 314 if (rfds) in rpl_select() 315 for (i = 0; i < rfds->fd_count; i++) in rpl_select() 317 fd = rfds->fd_array[i]; in rpl_select() 327 rfds = (fd_set *) alloca (sizeof (fd_set)); in rpl_select() 355 FD_ZERO (rfds); in rpl_select() 384 FD_SET ((SOCKET) h, rfds); in rpl_select() 433 memcpy (&handle_rfds, rfds, sizeof (fd_set)); in rpl_select() 509 memcpy (&handle_rfds, rfds, sizeof (fd_set)); in rpl_select() [all …]
|
| /netbsd-src/external/bsd/ipf/dist/samples/ |
| H A D | relay.c | 34 fd_set rfds, wfds; local 48 FD_ZERO(&rfds); 53 FD_SET(ifd, &rfds); 57 FD_SET(rfd, &rfds); 59 switch ((n = select(nfd + 1, &rfds, &wfds, NULL, NULL))) 65 if (FD_ISSET(ifd, &rfds)) { 81 if (n && FD_ISSET(rfd, &rfds)) {
|
| /netbsd-src/usr.sbin/mrouted/ |
| H A D | main.c | 104 fd_set rfds, readers; in main() local 287 bcopy((char *)&readers, (char *)&rfds, sizeof(rfds)); in main() 308 snmp_select_info(&nfds, &rfds, tvp, &block); in main() 311 if ((n = select(nfds, &rfds, NULL, NULL, tvp)) < 0) in main() 313 if ((n = select(nfds, &rfds, NULL, NULL, NULL)) < 0) in main() 321 if (FD_ISSET(igmp_socket, &rfds)) { in main() 345 if (FD_ISSET(ihandlers[i].fd, &rfds)) { in main() 346 (*ihandlers[i].func)(ihandlers[i].fd, &rfds); in main() 351 snmp_read(&rfds); in main()
|
| /netbsd-src/usr.sbin/altq/altqd/ |
| H A D | altqd.c | 118 fd_set fds, rfds; in main() local 251 FD_COPY(&fds, &rfds); in main() 252 if (select(maxfd, &rfds, NULL, NULL, NULL) < 0) { in main() 262 if (fp && FD_ISSET(fd, &rfds)) { in main() 270 } else if (qpsock >= 0 && FD_ISSET(qpsock, &rfds)) { in main() 299 if (FD_ISSET(fd1, &rfds)) { in main()
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/pipelined/ans5/ |
| H A D | ans.py | 93 rfds, _, _ = select.select( 96 if self.conn in rfds: 101 if self.cconn in rfds: 140 rfds, _, _ = select.select( 143 if self.sock in rfds: 151 if self.csock in rfds:
|
| /netbsd-src/external/bsd/nsd/dist/ |
| H A D | popen3.c | 101 fd_set rfds; in popen3() local 106 FD_ZERO(&rfds); in popen3() 107 FD_SET(fdsig[0], &rfds); in popen3() 108 ret = select(fdsig[0] + 1, &rfds, NULL, NULL, NULL); in popen3()
|
| /netbsd-src/external/mit/libuv/dist/src/win/ |
| H A 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()
|
| /netbsd-src/crypto/dist/ipsec-tools/src/racoon/ |
| H A D | schedule.c | 281 fd_set rfds; in main() local 293 rfds = mask0; in main() 297 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout); in main() 307 if (FD_ISSET(0, &rfds)) in main()
|
| /netbsd-src/libexec/identd/ |
| H A D | identd.c | 265 struct pollfd *rfds; in main() local 270 rfds = malloc(*socks * sizeof(struct pollfd)); in main() 271 if (rfds == NULL) in main() 275 rfds[i].fd = socks[i+1]; in main() 276 rfds[i].events = POLLIN; in main() 277 rfds[i].revents = 0; in main() 281 rv = poll(rfds, nfds, INFTIM); in main() 288 if (rfds[i].revents & POLLIN) { in main() 289 fd = accept(rfds[i].fd, NULL, NULL); in main()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/jit/ |
| H A D | jit-dejagnu.h | 58 fd_set rfds; in dg_wait() local 61 FD_ZERO (&rfds); in dg_wait() 65 select (0, &rfds, NULL, NULL, &tv); in dg_wait()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/jit/ |
| H A D | jit-dejagnu.h | 58 fd_set rfds; in dg_wait() local 61 FD_ZERO (&rfds); in dg_wait() 65 select (0, &rfds, NULL, NULL, &tv); in dg_wait()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| H A D | send_to_kdc.c | 931 fd_set rfds; member 973 FD_SET(h->fd, &wait_ctx->rfds); in wait_setup() 977 FD_SET(h->fd, &wait_ctx->rfds); in wait_setup() 1015 readable = FD_ISSET(h->fd, &wait_ctx->rfds); in wait_process() 1035 FD_ZERO(&wait_ctx.rfds); in wait_response() 1077 ret = select(wait_ctx.max_fd + 1, &wait_ctx.rfds, &wait_ctx.wfds, NULL, &tv); in wait_response()
|
| /netbsd-src/external/bsd/libbind/dist/isc/ |
| H A D | eventlib.c | 738 pselect(int nfds, void *rfds, void *wfds, void *efds, in pselect() argument 765 n = select(nfds, rfds, wfds, efds, tvp); in pselect() 772 if (rfds != NULL) in pselect() 773 ctx = ((__evEmulMask *)rfds)->ctx; in pselect()
|
| /netbsd-src/external/bsd/ntp/dist/sntp/m4/ |
| H A D | openldap-thread-check.m4 | 339 fd_set rfds; 344 FD_ZERO(&rfds); 345 FD_SET(fildes[0], &rfds); 348 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
|
| /netbsd-src/usr.bin/make/ |
| H A D | job.c | 2866 fd_set rfds, wfds; in Job_TokenWithdraw() 2871 FD_ZERO(&rfds); in Job_TokenWithdraw() 2879 FD_SET(fd[i].fd, &rfds); in Job_TokenWithdraw() 2902 nselect = select(maxfd + 1, &rfds, &wfds, NULL, tvp); in Job_RunTarget() 2909 if (FD_ISSET(fd[i].fd, &rfds)) in Job_RunTarget() 2916 fd_set rfds, wfds; emul_poll() local
|
| /netbsd-src/external/bsd/libbind/dist/resolv/ |
| H A D | res_send.c | 1089 pselect(int nfds, void *rfds, void *wfds, void *efds, in pselect() argument 1103 n = select(nfds, rfds, wfds, efds, tvp); in pselect()
|
| /netbsd-src/lib/libc/resolv/ |
| H A D | res_send.c | 1204 pselect(int nfds, void *rfds, void *wfds, void *efds, in pselect() argument 1218 n = select(nfds, rfds, wfds, efds, tvp); in pselect()
|
| /netbsd-src/external/bsd/openldap/dist/ |
| H A D | configure.ac | 1544 fd_set rfds; 1549 FD_ZERO(&rfds); 1550 FD_SET(fildes[0], &rfds); 1553 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
|
| H A D | configure | 21250 fd_set rfds; 21255 FD_ZERO(&rfds); 21256 FD_SET(fildes[0], &rfds);
|