| /NextBSD/contrib/amd/amd/ |
| HD | nfs_start.c | 168 fd_set readfds; in rpc_pending_now() local 170 FD_ZERO(&readfds); in rpc_pending_now() 171 FD_SET(fwd_sock, &readfds); in rpc_pending_now() 174 nsel = select(FD_SETSIZE, &readfds, (fd_set *) 0, (fd_set *) 0, &tvv); in rpc_pending_now() 177 if (FD_ISSET(fwd_sock, &readfds)) in rpc_pending_now() 207 fd_set readfds; in run_rpc() local 210 memmove(&readfds, &svc_fdset, sizeof(svc_fdset)); in run_rpc() 212 FD_ZERO(&readfds); in run_rpc() 214 readfds.fds_bits[0] = svc_fds; in run_rpc() 216 readfds = svc_fds; in run_rpc() [all …]
|
| /NextBSD/lib/libc/rpc/ |
| HD | svc_run.c | 59 fd_set readfds, cleanfds; in svc_run() local 67 readfds = svc_fdset; in svc_run() 70 switch (_select(svc_maxfd+1, &readfds, NULL, NULL, &timeout)) { in svc_run() 72 FD_ZERO(&readfds); in svc_run() 82 svc_getreqset(&readfds); in svc_run()
|
| HD | rtime.c | 74 fd_set readfds; in rtime() local 108 FD_ZERO(&readfds); in rtime() 109 FD_SET(s, &readfds); in rtime() 110 res = _select(_rpc_dtablesize(), &readfds, in rtime()
|
| HD | svc.c | 585 fd_set readfds; in svc_getreq() local 587 FD_ZERO(&readfds); in svc_getreq() 588 readfds.fds_bits[0] = rdfds; in svc_getreq() 589 svc_getreqset(&readfds); in svc_getreq() 593 svc_getreqset(fd_set *readfds) in svc_getreqset() argument 599 assert(readfds != NULL); in svc_getreqset() 601 maskp = readfds->fds_bits; in svc_getreqset()
|
| HD | auth_time.c | 400 fd_set readfds; in __rpc_get_time_offset() local 409 FD_ZERO(&readfds); in __rpc_get_time_offset() 410 FD_SET(s, &readfds); in __rpc_get_time_offset() 411 res = _select(_rpc_dtablesize(), &readfds, in __rpc_get_time_offset()
|
| /NextBSD/crypto/openssh/openbsd-compat/ |
| HD | bsd-poll.c | 47 fd_set *readfds = NULL, *writefds = NULL, *exceptfds = NULL; in poll() local 61 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll() 75 FD_SET(fd, readfds); in poll() 91 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp); in poll() 100 if (FD_ISSET(fd, readfds)) { in poll() 112 free(readfds); in poll()
|
| /NextBSD/usr.sbin/rpc.ypupdated/ |
| HD | ypupdated_main.c | 123 fd_set readfds; in ypupdated_svc_run() local 125 int readfds; in ypupdated_svc_run() 136 readfds = svc_fdset; in ypupdated_svc_run() 138 readfds = svc_fds; in ypupdated_svc_run() 140 switch (select(fd_setsize, &readfds, NULL, NULL, in ypupdated_svc_run() 151 svc_getreqset(&readfds); in ypupdated_svc_run()
|
| /NextBSD/usr.sbin/rpc.ypxfrd/ |
| HD | ypxfrd_main.c | 126 fd_set readfds; in ypxfrd_svc_run() local 128 int readfds; in ypxfrd_svc_run() 139 readfds = svc_fdset; in ypxfrd_svc_run() 141 readfds = svc_fds; in ypxfrd_svc_run() 143 switch (select(fd_setsize, &readfds, NULL, NULL, in ypxfrd_svc_run() 154 svc_getreqset(&readfds); in ypxfrd_svc_run()
|
| /NextBSD/contrib/libreadline/ |
| HD | input.c | 181 fd_set readfds, exceptfds; in rl_gather_tyi() local 189 FD_ZERO (&readfds); in rl_gather_tyi() 191 FD_SET (tty, &readfds); in rl_gather_tyi() 195 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi() 293 fd_set readfds, exceptfds; in _rl_input_available() local 304 FD_ZERO (&readfds); in _rl_input_available() 306 FD_SET (tty, &readfds); in _rl_input_available() 310 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
|
| HD | parens.c | 120 fd_set readfds; local 131 FD_ZERO (&readfds); 132 FD_SET (fileno (rl_instream), &readfds); 139 ready = select (1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer);
|
| /NextBSD/usr.sbin/ypserv/ |
| HD | yp_main.c | 133 fd_set readfds; in yp_svc_run() local 135 int readfds; in yp_svc_run() 145 readfds = svc_fdset; in yp_svc_run() 147 readfds = svc_fds; in yp_svc_run() 150 FD_SET(resfd, &readfds); in yp_svc_run() 154 switch (select(fd_setsize, &readfds, NULL, NULL, in yp_svc_run() 168 if (FD_ISSET(resfd, &readfds)) { in yp_svc_run() 170 FD_CLR(resfd, &readfds); in yp_svc_run() 172 svc_getreqset(&readfds); in yp_svc_run()
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | remote-st.c | 680 fd_set readfds; 699 FD_ZERO (&readfds); 705 FD_SET (0, &readfds); 706 FD_SET (deprecated_serial_fd (st2000_desc), &readfds); 707 numfds = select (sizeof (readfds) * 8, &readfds, 0, 0, 0); 714 if (FD_ISSET (0, &readfds)) 741 if (FD_ISSET (deprecated_serial_fd (st2000_desc), &readfds))
|
| HD | inflow.c | 641 fd_set readfds; in handle_sigio() local 645 FD_ZERO (&readfds); in handle_sigio() 646 FD_SET (target_activity_fd, &readfds); in handle_sigio() 647 numfds = select (target_activity_fd + 1, &readfds, NULL, NULL, NULL); in handle_sigio() 648 if (numfds >= 0 && FD_ISSET (target_activity_fd, &readfds)) in handle_sigio()
|
| HD | ser-unix.c | 447 fd_set readfds; in wait_for() local 457 FD_ZERO (&readfds); in wait_for() 458 FD_SET (scb->fd, &readfds); in wait_for() 461 numfds = select (scb->fd + 1, &readfds, 0, 0, &tv); in wait_for() 463 numfds = select (scb->fd + 1, &readfds, 0, 0, 0); in wait_for() 904 fd_set readfds, exceptfds; in ser_unix_wait_for() local 913 FD_ZERO (&readfds); in ser_unix_wait_for() 915 FD_SET (scb->fd, &readfds); in ser_unix_wait_for() 919 numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, &tv); in ser_unix_wait_for() 921 numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, 0); in ser_unix_wait_for()
|
| /NextBSD/contrib/less/ |
| HD | os.c | 122 fd_set readfds; local 124 FD_ZERO(&readfds); 125 FD_SET(fd, &readfds); 126 if (select(fd+1, &readfds, 0, 0, 0) == -1)
|
| /NextBSD/contrib/ofed/libsdp/src/ |
| HD | port.c | 143 fd_set * readfds, 148 fd_set * readfds, 1994 fd_set * readfds, in select() argument 2014 if (readfds == NULL) { in select() 2015 ret = _socket_funcs.select(n, readfds, writefds, exceptfds, timeout); in select() 2026 if (FD_ISSET(current, readfds)) { in select() 2053 if (FD_ISSET(current, readfds) && in select() 2055 FD_CLR(current, readfds); in select() 2058 if (FD_ISSET(current, readfds) && FD_ISSET(current, &new_fds) in select() 2062 if (FD_ISSET(current, readfds) && in select() [all …]
|
| /NextBSD/usr.sbin/yppush/ |
| HD | yppush_main.c | 232 fd_set readfds; in yppush_svc_run() local 239 readfds = svc_fdset; in yppush_svc_run() 240 rc = select(svc_maxfd + 1, &readfds, NULL, NULL, &timeout); in yppush_svc_run() 251 svc_getreqset(&readfds); in yppush_svc_run()
|
| /NextBSD/libexec/bootpd/bootpgw/ |
| HD | bootpgw.c | 164 int nfound, readfds; local 441 readfds = 1 << s; 445 nfound = select(s + 1, (fd_set *)&readfds, NULL, NULL, 453 if (!(readfds & (1 << s))) {
|
| /NextBSD/crypto/openssl/apps/ |
| HD | s_time.c | 585 fd_set readfds; in doConnection() local 615 FD_ZERO(&readfds); in doConnection() 616 openssl_fdset(i, &readfds); in doConnection() 623 select(width, (void *)&readfds, NULL, NULL, NULL); in doConnection()
|
| HD | s_client.c | 674 fd_set readfds, writefds; in MAIN() local 1660 FD_ZERO(&readfds); in MAIN() 1728 openssl_fdset(fileno(stdin), &readfds); in MAIN() 1733 openssl_fdset(SSL_get_fd(con), &readfds); in MAIN() 1739 openssl_fdset(SSL_get_fd(con), &readfds); in MAIN() 1767 i = select(width, (void *)&readfds, (void *)&writefds, in MAIN() 1782 i = select(width, (void *)&readfds, (void *)&writefds, in MAIN() 1790 i = select(width, (void *)&readfds, (void *)&writefds, in MAIN() 1793 i = select(width, (void *)&readfds, (void *)&writefds, in MAIN() 1805 i = select(width, (void *)&readfds, (void *)&writefds, in MAIN() [all …]
|
| /NextBSD/usr.sbin/asl/ |
| HD | remote.c | 136 fd_set readfds, errfds; in session() local 194 FD_ZERO(&readfds); in session() 195 FD_SET(s, &readfds); in session() 202 FD_SET(wfd, &readfds); in session() 206 status = select(nfd + 1, &readfds, NULL, &errfds, NULL); in session() 220 if ((wfd != -1) && (FD_ISSET(wfd, &readfds))) in session() 231 if (FD_ISSET(s, &readfds)) in session()
|
| /NextBSD/libexec/bootpd/tools/bootptest/ |
| HD | bootptest.c | 390 int readfds; local 394 readfds = (1 << s); 395 n = select(s + 1, (fd_set *) & readfds, NULL, NULL, &tv);
|
| /NextBSD/usr.sbin/lpr/lpd/ |
| HD | lpd.c | 363 fd_set readfds; in main() local 365 FD_COPY(&defreadfds, &readfds); in main() 366 nfds = select(20, &readfds, 0, 0, 0); in main() 374 if (FD_ISSET(funix, &readfds)) { in main() 380 if (FD_ISSET(finet[i], &readfds)) { in main()
|
| /NextBSD/contrib/libpcap/ |
| HD | pcap-sita.c | 76 static fd_set readfds; /* a place to store the file descriptors for the connections to the IOPs… variable 727 if (FD_ISSET(fd, &readfds)) flag = 1; /* and see if there are any still set */ 731 …memcpy(&working_set, &readfds, sizeof(readfds)); /* otherwise, we still have to listen for more… 742 FD_CLR(fd, &readfds); /* and descriptors we listen to for errors */ 773 FD_ZERO(&readfds); 785 FD_SET(u->find_fd, &readfds); /* we are going to want to read this guy's response to */
|
| /NextBSD/libexec/bootpd/ |
| HD | bootpd.c | 192 fd_set readfds; local 509 FD_ZERO(&readfds); 513 FD_SET(s, &readfds); 517 nfound = select(s + 1, &readfds, NULL, NULL, 537 if (!FD_ISSET(s, &readfds)) {
|