Home
last modified time | relevance | path

Searched refs:readfds (Results 1 – 25 of 53) sorted by relevance

123

/freebsd-12.1/contrib/amd/amd/
H A Dnfs_start.c163 fd_set readfds; in rpc_pending_now() local
165 FD_ZERO(&readfds); in rpc_pending_now()
166 FD_SET(fwd_sock, &readfds); in rpc_pending_now()
202 fd_set readfds; in run_rpc() local
207 FD_ZERO(&readfds); in run_rpc()
211 readfds = svc_fds; in run_rpc()
214 FD_SET(fwd_sock, &readfds); in run_rpc()
240 autofs_add_fdset(&readfds); in run_rpc()
271 FD_CLR(fwd_sock, &readfds); in run_rpc()
289 svc_getreqset(&readfds); in run_rpc()
[all …]
/freebsd-12.1/lib/libc/rpc/
H A Dsvc_run.c61 fd_set readfds, cleanfds; in svc_run() local
69 readfds = svc_fdset; in svc_run()
72 switch (_select(svc_maxfd+1, &readfds, NULL, NULL, &timeout)) { in svc_run()
74 FD_ZERO(&readfds); in svc_run()
84 svc_getreqset(&readfds); in svc_run()
H A Drtime.c76 fd_set readfds; in rtime() local
110 FD_ZERO(&readfds); in rtime()
111 FD_SET(s, &readfds); in rtime()
112 res = _select(_rpc_dtablesize(), &readfds, in rtime()
H A Dsvc.c589 fd_set readfds; in svc_getreq() local
591 FD_ZERO(&readfds); in svc_getreq()
592 readfds.fds_bits[0] = rdfds; in svc_getreq()
593 svc_getreqset(&readfds); in svc_getreq()
597 svc_getreqset(fd_set *readfds) in svc_getreqset() argument
603 assert(readfds != NULL); in svc_getreqset()
605 maskp = readfds->fds_bits; in svc_getreqset()
H A Dauth_time.c400 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()
/freebsd-12.1/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c45 fd_set *readfds = NULL, *writefds = NULL, *exceptfds = NULL; in poll() local
59 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll()
73 FD_SET(fd, readfds); in poll()
89 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp); in poll()
98 if (FD_ISSET(fd, readfds)) { in poll()
110 free(readfds); in poll()
/freebsd-12.1/usr.sbin/rpc.ypupdated/
H A Dypupdated_main.c125 fd_set readfds; in ypupdated_svc_run() local
127 int readfds; in ypupdated_svc_run()
138 readfds = svc_fdset; in ypupdated_svc_run()
140 readfds = svc_fds; in ypupdated_svc_run()
142 switch (select(fd_setsize, &readfds, NULL, NULL, in ypupdated_svc_run()
153 svc_getreqset(&readfds); in ypupdated_svc_run()
/freebsd-12.1/usr.sbin/rpc.ypxfrd/
H A Dypxfrd_main.c128 fd_set readfds; in ypxfrd_svc_run() local
130 int readfds; in ypxfrd_svc_run()
141 readfds = svc_fdset; in ypxfrd_svc_run()
143 readfds = svc_fds; in ypxfrd_svc_run()
145 switch (select(fd_setsize, &readfds, NULL, NULL, in ypxfrd_svc_run()
156 svc_getreqset(&readfds); in ypxfrd_svc_run()
/freebsd-12.1/usr.sbin/ypserv/
H A Dyp_main.c135 fd_set readfds; in yp_svc_run() local
137 int readfds; in yp_svc_run()
147 readfds = svc_fdset; in yp_svc_run()
149 readfds = svc_fds; in yp_svc_run()
152 FD_SET(resfd, &readfds); in yp_svc_run()
156 switch (select(fd_setsize, &readfds, NULL, NULL, in yp_svc_run()
170 if (FD_ISSET(resfd, &readfds)) { in yp_svc_run()
172 FD_CLR(resfd, &readfds); in yp_svc_run()
174 svc_getreqset(&readfds); in yp_svc_run()
/freebsd-12.1/contrib/gdb/gdb/
H A Dremote-st.c680 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))
H A Dinflow.c641 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()
H A Dser-unix.c447 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()
/freebsd-12.1/contrib/sendmail/libsm/
H A Dstdio.c360 fd_set readfds; local
368 FD_ZERO(&readfds);
369 SM_FD_SET(fp->f_file, &readfds);
372 if (select(fp->f_file + 1, FDSET_CAST &readfds,
374 SM_FD_ISSET(fp->f_file, &readfds))
/freebsd-12.1/contrib/less/
H A Dos.c122 fd_set readfds; local
124 FD_ZERO(&readfds);
125 FD_SET(fd, &readfds);
126 if (select(fd+1, &readfds, 0, 0, 0) == -1)
/freebsd-12.1/contrib/compiler-rt/lib/fuzzer/
H A DFuzzerUtilFuchsia.cpp73 fd_set readfds; in InterruptHandler() local
76 FD_ZERO(&readfds); in InterruptHandler()
77 FD_SET(STDIN_FILENO, &readfds); in InterruptHandler()
78 select(STDIN_FILENO + 1, &readfds, nullptr, nullptr, nullptr); in InterruptHandler()
79 } while(!FD_ISSET(STDIN_FILENO, &readfds) || getchar() != 0x03); in InterruptHandler()
/freebsd-12.1/crypto/openssl/apps/
H A Ds_socket.c326 fd_set readfds; in do_server() local
367 FD_ZERO(&readfds); in do_server()
368 openssl_fdset(sock, &readfds); in do_server()
369 } while (select(sock + 1, &readfds, NULL, NULL, &timeout) > 0 in do_server()
H A Ds_client.c911 fd_set readfds, writefds; in s_client_main() local
986 FD_ZERO(&readfds); in s_client_main()
991 __msan_unpoison(&readfds, sizeof(readfds)); in s_client_main()
2400 FD_ZERO(&readfds); in s_client_main()
2401 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2741 FD_ZERO(&readfds); in s_client_main()
2797 openssl_fdset(fileno_stdin(), &readfds); in s_client_main()
2804 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
3015 else if (FD_ISSET(fileno_stdin(), &readfds)) in s_client_main()
3106 FD_ZERO(&readfds); in s_client_main()
[all …]
/freebsd-12.1/usr.sbin/yppush/
H A Dyppush_main.c234 fd_set readfds; in yppush_svc_run() local
241 readfds = svc_fdset; in yppush_svc_run()
242 rc = select(svc_maxfd + 1, &readfds, NULL, NULL, &timeout); in yppush_svc_run()
253 svc_getreqset(&readfds); in yppush_svc_run()
/freebsd-12.1/libexec/bootpd/bootpgw/
H A Dbootpgw.c165 int nfound, readfds; local
445 readfds = 1 << s;
449 nfound = select(s + 1, (fd_set *)&readfds, NULL, NULL,
457 if (!(readfds & (1 << s))) {
/freebsd-12.1/contrib/ofed/librdmacm/
H A Dpreload.c914 fd_set *readfds, fd_set *writefds, fd_set *exceptfds) in select_to_rpoll() argument
919 events = (readfds && FD_ISSET(fd, readfds)) ? POLLIN : 0; in select_to_rpoll()
933 fd_set *readfds, fd_set *writefds, fd_set *exceptfds) in rpoll_to_select() argument
942 if (readfds && (fds[i].revents & POLLIN)) { in rpoll_to_select()
943 FD_SET(fd, readfds); in rpoll_to_select()
967 int select(int nfds, fd_set *readfds, fd_set *writefds, in select() argument
977 select_to_rpoll(fds, &nfds, readfds, writefds, exceptfds); in select()
980 if (readfds) in select()
981 FD_ZERO(readfds); in select()
988 ret = rpoll_to_select(fds, nfds, readfds, writefds, exceptfds); in select()
/freebsd-12.1/libexec/bootpd/tools/bootptest/
H A Dbootptest.c387 int readfds; local
391 readfds = (1 << s);
392 n = select(s + 1, (fd_set *) & readfds, NULL, NULL, &tv);
/freebsd-12.1/usr.sbin/lpr/lpd/
H A Dlpd.c365 fd_set readfds; in main() local
367 FD_COPY(&defreadfds, &readfds); in main()
368 nfds = select(20, &readfds, 0, 0, 0); in main()
376 if (FD_ISSET(funix, &readfds)) { in main()
382 if (FD_ISSET(finet[i], &readfds)) { in main()
/freebsd-12.1/contrib/libpcap/
H A Dpcap-sita.c76 static fd_set readfds; /* a place to store the file descriptors for the connections to the IOPs… variable
751 if (FD_ISSET(fd, &readfds)) flag = 1; /* and see if there are any still set */ in wait_for_all_answers()
755 …memcpy(&working_set, &readfds, sizeof(readfds)); /* otherwise, we still have to listen for more… in wait_for_all_answers()
766 FD_CLR(fd, &readfds); /* and descriptors we listen to for errors */ in wait_for_all_answers()
797 FD_ZERO(&readfds); in acn_findalldevs()
809 FD_SET(u->find_fd, &readfds); /* we are going to want to read this guy's response to */ in acn_findalldevs()
/freebsd-12.1/libexec/bootpd/
H A Dbootpd.c193 fd_set readfds; local
513 FD_ZERO(&readfds);
517 FD_SET(s, &readfds);
521 nfound = select(s + 1, &readfds, NULL, NULL,
541 if (!FD_ISSET(s, &readfds)) {
/freebsd-12.1/usr.bin/top/
H A Dtop.c256 fd_set readfds; in main() local
713 FD_ZERO(&readfds); in main()
714 FD_SET(0, &readfds); /* for standard input */ in main()
761 sel_ret = select(2, &readfds, NULL, NULL, &timeout); in main()

123