Home
last modified time | relevance | path

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

12

/mirbsd/src/gnu/usr.bin/cvs/lib/
Dsunos57-select.c60 rpl_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in rpl_select() argument
90 bool isread = (readfds && FD_ISSET (fd, readfds)); in rpl_select()
114 FD_CLR (fd, readfds); in rpl_select()
163 ret = select (maxfd + 1, readfds, writefds, exceptfds, &ztime); in rpl_select()
169 if (readfds) in rpl_select()
170 FD_ZERO (readfds); in rpl_select()
179 ret = select (maxfd + 1, readfds, writefds, exceptfds, timeout); in rpl_select()
215 FD_SET (fd, readfds); in rpl_select()
229 ret = select (nfds, readfds, writefds, exceptfds, timeout); in rpl_select()
/mirbsd/src/usr.sbin/faithd/
Dtcp.c58 static fd_set readfds, writefds, exceptfds; variable
189 FD_SET(s_rcv, &readfds); in send_data()
206 FD_ZERO(&readfds); in relay()
210 oreadfds = readfds; owritefds = writefds; oexceptfds = exceptfds; in relay()
213 FD_SET(s_rcv, &readfds); in relay()
221 oreadfds = readfds; in relay()
224 error = select(maxfd + 1, &readfds, &writefds, &exceptfds, &tv); in relay()
230 readfds = oreadfds; in relay()
263 if (FD_ISSET(s_rcv, &readfds)) { in relay()
286 FD_CLR(s_rcv, &readfds); in relay()
/mirbsd/src/lib/libpthread/uthread/
Duthread_select.c54 select(int numfds, fd_set * readfds, fd_set * writefds, in select() argument
92 if (numfds && (readfds || writefds || exceptfds)) { in select()
94 rmask = readfds ? readfds->fds_bits[i] : 0; in select()
137 rmask = readfds ? readfds->fds_bits[i] : 0; in select()
198 if (readfds != NULL) { in select()
199 if (FD_ISSET(data.fds[i].fd, readfds)) { in select()
205 FD_CLR(data.fds[i].fd, readfds); in select()
/mirbsd/src/gnu/usr.bin/cvs/m4/
Dsunos57-select.m44 dnl Also check to see that /dev/null is in the readfds set returned.
7 dnl If /dev/null is in the readfds set, it will never be marked as
27 fd_set readfds;
31 FD_ZERO (&readfds);
32 FD_SET (fd, &readfds);
36 while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dremote-st.c681 fd_set readfds;
700 FD_ZERO (&readfds);
706 FD_SET (0, &readfds);
707 FD_SET (deprecated_serial_fd (st2000_desc), &readfds);
708 numfds = select (sizeof (readfds) * 8, &readfds, 0, 0, 0);
715 if (FD_ISSET (0, &readfds))
742 if (FD_ISSET (deprecated_serial_fd (st2000_desc), &readfds))
Dser-base.c190 fd_set readfds, exceptfds; in ser_base_wait_for() local
199 FD_ZERO (&readfds); in ser_base_wait_for()
201 FD_SET (scb->fd, &readfds); in ser_base_wait_for()
205 numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, &tv); in ser_base_wait_for()
207 numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, 0); in ser_base_wait_for()
Dinflow.c640 fd_set readfds; in handle_sigio() local
644 FD_ZERO (&readfds); in handle_sigio()
645 FD_SET (target_activity_fd, &readfds); in handle_sigio()
646 numfds = select (target_activity_fd + 1, &readfds, NULL, NULL, NULL); in handle_sigio()
647 if (numfds >= 0 && FD_ISSET (target_activity_fd, &readfds)) in handle_sigio()
Dser-unix.c437 fd_set readfds; in wait_for() local
447 FD_ZERO (&readfds); in wait_for()
448 FD_SET (scb->fd, &readfds); in wait_for()
451 numfds = select (scb->fd + 1, &readfds, 0, 0, &tv); in wait_for()
453 numfds = select (scb->fd + 1, &readfds, 0, 0, 0); in wait_for()
Devent-loop.c741 gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in gdb_select() argument
762 if (FD_ISSET (fd, readfds)) in gdb_select()
790 if (!FD_ISSET (fd, readfds)) in gdb_select()
797 FD_CLR (fd, readfds); in gdb_select()
808 return select (n, readfds, writefds, exceptfds, timeout); in gdb_select()
/mirbsd/src/usr.bin/less/
Dos.c82 fd_set readfds; local
84 FD_ZERO(&readfds);
85 FD_SET(fd, &readfds);
86 if (select(fd+1, &readfds, 0, 0, 0) == -1)
/mirbsd/src/gnu/usr.sbin/sendmail/libsm/
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))
/mirbsd/src/gnu/usr.bin/lynx/WWW/Library/Implementation/
DHTTCP.c49 fd_set * readfds,
708 fd_set readfds; in setup_nsl_fork() local
851 FD_ZERO(&readfds); in setup_nsl_fork()
866 FD_SET(kbd_fd, &readfds); in setup_nsl_fork()
872 FD_SET(pfd[0], &readfds); in setup_nsl_fork()
881 selret = Rselect(pfd[0] + 1, &readfds, NULL, NULL, &one_second); in setup_nsl_fork()
884 selret = select(pfd[0] + 1, &readfds, NULL, NULL, &one_second); in setup_nsl_fork()
886 if ((selret > 0) && FD_ISSET(pfd[0], &readfds)) { in setup_nsl_fork()
2197 fd_set readfds; in HTDoRead() local
2261 FD_ZERO(&readfds); in HTDoRead()
[all …]
/mirbsd/src/lib/libssl/src/apps/
Ds_client.c249 fd_set readfds,writefds; in MAIN() local
665 FD_ZERO(&readfds); in MAIN()
708 if (read_tty) FD_SET(fileno(stdin),&readfds); in MAIN()
712 FD_SET(SSL_get_fd(con),&readfds); in MAIN()
718 FD_SET(SSL_get_fd(con),&readfds); in MAIN()
745 i=select(width,(void *)&readfds,(void *)&writefds, in MAIN()
752 } else i=select(width,(void *)&readfds,(void *)&writefds, in MAIN()
756 i=select(width,(void *)&readfds,(void *)&writefds, in MAIN()
862 else if (ssl_pending || FD_ISSET(SSL_get_fd(con),&readfds)) in MAIN()
923 else if (FD_ISSET(fileno(stdin),&readfds)) in MAIN()
Ds_time.c660 fd_set readfds; in doConnection() local
692 FD_ZERO(&readfds); in doConnection()
693 FD_SET(i,&readfds); in doConnection()
700 select(width,(void *)&readfds,NULL,NULL,NULL); in doConnection()
Ds_server.c913 fd_set readfds; in sv_body() local
992 FD_ZERO(&readfds); in sv_body()
994 FD_SET(fileno(stdin),&readfds); in sv_body()
996 FD_SET(s,&readfds); in sv_body()
1011 i=select(width,(void *)&readfds,NULL,NULL,&tv); in sv_body()
1016 i=select(width,(void *)&readfds,NULL,NULL,NULL); in sv_body()
1018 if (FD_ISSET(fileno(stdin),&readfds)) in sv_body()
1021 if (FD_ISSET(s,&readfds)) in sv_body()
/mirbsd/src/usr.sbin/lpr/lpd/
Dlpd.c357 fd_set readfds; in main() local
372 FD_COPY(&defreadfds, &readfds); in main()
373 nfds = select(maxfd + 1, &readfds, NULL, NULL, NULL); in main()
379 if (FD_ISSET(funix, &readfds)) { in main()
388 if (FD_ISSET(finet[i], &readfds)) { in main()
/mirbsd/src/lib/libc/rpc/
Dsvc.c510 svc_getreqset(fd_set *readfds) in svc_getreqset() argument
512 svc_getreqset2(readfds, FD_SETSIZE); in svc_getreqset()
516 svc_getreqset2(fd_set *readfds, int width) in svc_getreqset2() argument
521 maskp = readfds->fds_bits; in svc_getreqset2()
/mirbsd/src/gnu/usr.bin/cvs/src/
Dserver.c2467 fd_set readfds, writefds; in become_proxy() local
2473 FD_ZERO (&readfds); in become_proxy()
2508 FD_SET (from_net_fd, &readfds); in become_proxy()
2513 FD_SET (from_primary_fd, &readfds); in become_proxy()
2526 numfds = select (numfds, &readfds, &writefds, in become_proxy()
2542 FD_ZERO (&readfds); in become_proxy()
2554 if (from_net_fd >= 0 && (FD_ISSET (from_net_fd, &readfds))) in become_proxy()
2598 if (from_primary_fd >= 0 && FD_ISSET (from_primary_fd, &readfds)) in become_proxy()
3883 fd_set readfds; in do_cvs_command() local
3908 FD_ZERO (&readfds); in do_cvs_command()
[all …]
Dbuffer.c1822 fd_set readfds; in fd_buffer_input() local
1828 FD_ZERO (&readfds); in fd_buffer_input()
1829 FD_SET (fb->fd, &readfds); in fd_buffer_input()
1838 numfds = fd_select (fb->fd + 1, &readfds, NULL, NULL, NULL); in fd_buffer_input()
/mirbsd/src/usr.sbin/ppp/ppp/
Dradlib.c755 fd_set readfds; in rad_send_request() local
757 FD_ZERO(&readfds); in rad_send_request()
758 FD_SET(fd, &readfds); in rad_send_request()
760 n = select(fd + 1, &readfds, NULL, NULL, &tv); in rad_send_request()
767 if (!FD_ISSET(fd, &readfds)) { in rad_send_request()
/mirbsd/src/sys/compat/linux/
Dlinux_types.h120 fd_set *readfds; member
Dlinux_misc.c1160 return linux_select1(p, retval, ls.nfds, ls.readfds, ls.writefds,
1183 return linux_select1(p, retval, SCARG(uap, nfds), SCARG(uap, readfds),
1194 linux_select1(p, retval, nfds, readfds, writefds, exceptfds, timeout) in linux_select1() argument
1198 fd_set *readfds, *writefds, *exceptfds;
1211 SCARG(&bsa, in) = readfds;
/mirbsd/src/gnu/usr.bin/texinfo/info/
Decho-area.c1487 fd_set readfds; in pause_or_input() local
1490 FD_ZERO (&readfds); in pause_or_input()
1491 FD_SET (fileno (stdin), &readfds); in pause_or_input()
1494 ready = select (fileno (stdin) + 1, &readfds, (fd_set *) NULL, in pause_or_input()
/mirbsd/src/share/doc/psd/21.ipc/
Dspell.ok272 readfds
/mirbsd/src/gnu/usr.sbin/sendmail/sendmail/
Ddaemon.c307 fd_set readfds; local
311 FD_ZERO(&readfds);
328 &readfds);
337 SM_FD_SET(ControlSocket, &readfds);
344 t = select(highest + 1, FDSET_CAST &readfds,
391 &readfds))
425 SM_FD_ISSET(ControlSocket, &readfds))

12