Home
last modified time | relevance | path

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

12

/freebsd/lib/libc/rpc/
H A Dsvc_run.c54 fd_set readfds, cleanfds; in svc_run() local
62 readfds = svc_fdset; in svc_run()
65 switch (_select(svc_maxfd+1, &readfds, NULL, NULL, &timeout)) { in svc_run()
67 FD_ZERO(&readfds); in svc_run()
77 svc_getreqset(&readfds); in svc_run()
H A Drtime.c70 fd_set readfds; in rtime() local
104 FD_ZERO(&readfds); in rtime()
105 FD_SET(s, &readfds); in rtime()
106 res = _select(_rpc_dtablesize(), &readfds, in rtime()
H A Dsvc.c582 fd_set readfds; in svc_getreq() local
584 FD_ZERO(&readfds); in svc_getreq()
585 readfds.fds_bits[0] = rdfds; in svc_getreq()
586 svc_getreqset(&readfds); in svc_getreq()
590 svc_getreqset(fd_set *readfds) in svc_getreqset() argument
596 assert(readfds != NULL); in svc_getreqset()
598 maskp = readfds->fds_bits; in svc_getreqset()
H A Dauth_time.c395 fd_set readfds; in __rpc_get_time_offset() local
404 FD_ZERO(&readfds); in __rpc_get_time_offset()
405 FD_SET(s, &readfds); in __rpc_get_time_offset()
406 res = _select(_rpc_dtablesize(), &readfds, in __rpc_get_time_offset()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c51 fd_set readfds, writefds, exceptfds; in ppoll() local
63 FD_ZERO(&readfds); in ppoll()
71 FD_SET(fd, &readfds); in ppoll()
78 ret = pselect(maxfd + 1, &readfds, &writefds, &exceptfds, tmoutp, sigmask); in ppoll()
86 if ((fds[i].events & POLLIN) && FD_ISSET(fd, &readfds)) in ppoll()
H A Dbsd-pselect.c154 pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in pselect() argument
168 return select(nfds, readfds, writefds, exceptfds, tvp); in pselect()
190 pselect_notify_prepare(readfds); in pselect()
196 ret = select(nfds, readfds, writefds, exceptfds, tvp); in pselect()
201 pselect_notify_done(readfds); in pselect()
/freebsd/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/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/contrib/sendmail/libsm/
H A Dnotify.c173 fd_set readfds; local
180 FD_ZERO(&readfds);
181 SM_FD_SET(NotifyRDpipe, &readfds);
185 r = select(NotifyRDpipe + 1, FDSET_CAST &readfds, NULL, NULL, tval);
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/usr.sbin/ypserv/
H A Dyp_main.c133 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()
/freebsd/tests/sys/netpfil/common/
H A Ddivapp.c74 fd_set readfds; in recv_pkt() local
78 FD_ZERO(&readfds); in recv_pkt()
79 FD_SET(c->fd, &readfds); in recv_pkt()
83 s = select(c->fd + 1, &readfds, 0, 0, &timeout); in recv_pkt()
/freebsd/usr.sbin/rpc.tlsservd/
H A Drpc.tlscommon.c62 fd_set readfds; in rpctls_svc_run() local
103 readfds = svc_fdset; in rpctls_svc_run()
104 switch (select(svc_maxfd + 1, &readfds, NULL, NULL, &tv)) { in rpctls_svc_run()
118 svc_getreqset(&readfds); in rpctls_svc_run()
/freebsd/contrib/less/
H A Dos.c227 fd_set readfds; in iread() local
229 FD_ZERO(&readfds); in iread()
230 FD_SET(fd, &readfds); in iread()
231 if (select(fd+1, &readfds, 0, 0, 0) == -1) in iread()
/freebsd/libexec/bootpd/bootpgw/
H A Dbootpgw.c152 int nfound, readfds; in main() local
432 readfds = 1 << s; in main()
436 nfound = select(s + 1, (fd_set *)&readfds, NULL, NULL, in main()
444 if (!(readfds & (1 << s))) { in main()
/freebsd/crypto/openssl/apps/lib/
H A Ds_socket.c365 fd_set readfds; in do_server() local
406 FD_ZERO(&readfds); in do_server()
407 openssl_fdset(sock, &readfds); in do_server()
408 } while (select(sock + 1, &readfds, NULL, NULL, &timeout) > 0 in do_server()
/freebsd/usr.sbin/yppush/
H A Dyppush_main.c231 fd_set readfds; in yppush_svc_run() local
238 readfds = svc_fdset; in yppush_svc_run()
239 rc = select(svc_maxfd + 1, &readfds, NULL, NULL, &timeout); in yppush_svc_run()
250 svc_getreqset(&readfds); in yppush_svc_run()
/freebsd/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/crypto/openssl/apps/
H A Ds_client.c815 fd_set readfds, writefds; in s_client_main() local
892 FD_ZERO(&readfds); in s_client_main()
897 __msan_unpoison(&readfds, sizeof(readfds)); in s_client_main()
2369 FD_ZERO(&readfds); in s_client_main()
2370 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2383 && select(width, (void *)&readfds, NULL, NULL, in s_client_main()
2723 FD_ZERO(&readfds); in s_client_main()
2778 openssl_fdset(fileno_stdin(), &readfds); in s_client_main()
2785 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2791 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
[all …]
/freebsd/libexec/bootpd/tools/bootptest/
H A Dbootptest.c383 int readfds; in main() local
387 readfds = (1 << s); in main()
388 n = select(s + 1, (fd_set *) & readfds, NULL, NULL, &tv); in main()
/freebsd/stand/kboot/libkboot/
H A Dhost_syscalls.c135 host_select(int nfds, long *readfds, long *writefds, long *exceptfds, in host_select() argument
145 return host_syscall(SYS_pselect6, nfds, (uintptr_t)readfds, (uintptr_t)writefds, in host_select()
/freebsd/usr.sbin/lpr/lpd/
H A Dlpd.c359 fd_set readfds; in main() local
361 FD_COPY(&defreadfds, &readfds); in main()
362 nfds = select(20, &readfds, 0, 0, 0); in main()
370 if (FD_ISSET(funix, &readfds)) { in main()
376 if (FD_ISSET(finet[i], &readfds)) { in main()
/freebsd/tools/test/gpioevents/
H A Dgpioevents.c292 fd_set readfds; in run_select() local
297 FD_ZERO(&readfds); in run_select()
298 FD_SET(handle, &readfds); in run_select()
313 res = select(FD_SETSIZE, &readfds, NULL, NULL, tv_ptr); in run_select()
/freebsd/contrib/libpcap/
H A Dpcap-sita.c82 static fd_set readfds; /* a place to store the file descriptors for the connections to the IOPs… variable
750 if (FD_ISSET(fd, &readfds)) flag = 1; /* and see if there are any still set */ in wait_for_all_answers()
754 …memcpy(&working_set, &readfds, sizeof(readfds)); /* otherwise, we still have to listen for more… in wait_for_all_answers()
765 FD_CLR(fd, &readfds); /* and descriptors we listen to for errors */ in wait_for_all_answers()
796 FD_ZERO(&readfds); in acn_findalldevs()
808 FD_SET(u->find_fd, &readfds); /* we are going to want to read this guy's response to */ in acn_findalldevs()
/freebsd/libexec/bootpd/
H A Dbootpd.c180 fd_set readfds; in main() local
500 FD_ZERO(&readfds); in main()
504 FD_SET(s, &readfds); in main()
508 nfound = select(s + 1, &readfds, NULL, NULL, in main()
528 if (!FD_ISSET(s, &readfds)) { in main()

12