Home
last modified time | relevance | path

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

/openbsd/gnu/lib/libreadline/
H A Dinput.c174 fd_set readfds, exceptfds; in rl_gather_tyi() local
181 FD_ZERO (&readfds); in rl_gather_tyi()
183 FD_SET (tty, &readfds); in rl_gather_tyi()
187 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
267 fd_set readfds, exceptfds; in _rl_input_available() local
278 FD_ZERO (&readfds); in _rl_input_available()
280 FD_SET (tty, &readfds); in _rl_input_available()
284 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
H A Dparens.c116 fd_set readfds; local
127 FD_ZERO (&readfds);
128 FD_SET (fileno (rl_instream), &readfds);
135 ready = select (1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer);
/openbsd/gnu/usr.bin/binutils/gdb/
H A 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))
H A 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()
H A Dser-unix.c445 fd_set readfds; in wait_for() local
455 FD_ZERO (&readfds); in wait_for()
456 FD_SET (scb->fd, &readfds); in wait_for()
459 numfds = select (scb->fd + 1, &readfds, 0, 0, &tv); in wait_for()
461 numfds = select (scb->fd + 1, &readfds, 0, 0, 0); in wait_for()
903 fd_set readfds, exceptfds; in ser_unix_wait_for() local
912 FD_ZERO (&readfds); in ser_unix_wait_for()
914 FD_SET (scb->fd, &readfds); in ser_unix_wait_for()
918 numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, &tv); in ser_unix_wait_for()
920 numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, 0); in ser_unix_wait_for()
H A DChangeLog-19922271 zero out readfds when select() returns zero.
/openbsd/games/hunt/hunt/
H A Dplayit.c185 fd_set readfds, s_readfds; in getchr() local
197 readfds = s_readfds; in getchr()
199 nfds = select(nfds, &readfds, NULL, NULL, NULL); in getchr()
202 if (FD_ISSET(STDIN_FILENO, &readfds)) in getchr()
204 if (!FD_ISSET(Socket, &readfds)) in getchr()
/openbsd/lib/libc/sys/
H A Dw_select.c22 select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in select() argument
28 ret = HIDDEN(select)(nfds, readfds, writefds, exceptfds, timeout); in select()
H A Dw_pselect.c23 pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in pselect() argument
36 ret = HIDDEN(pselect)(nfds, readfds, writefds, exceptfds, timeout, in pselect()
/openbsd/usr.sbin/lpr/lpd/
H A Dlpd.c300 fd_set readfds; in main() local
315 FD_COPY(&defreadfds, &readfds); in main()
316 nfds = select(maxfd + 1, &readfds, NULL, NULL, NULL); in main()
322 if (FD_ISSET(funix, &readfds)) { in main()
331 if (FD_ISSET(finet[i], &readfds)) { in main()
/openbsd/lib/libc/rpc/
H A Dsvc.c518 svc_getreqset(fd_set *readfds) in svc_getreqset() argument
520 svc_getreqset2(readfds, FD_SETSIZE); in svc_getreqset()
524 svc_getreqset2(fd_set *readfds, int width) in svc_getreqset2() argument
529 maskp = readfds->fds_bits; in svc_getreqset2()
/openbsd/gnu/usr.bin/texinfo/info/
H A 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()
H A Dsession.c4568 fd_set readfds; in info_get_another_input_char() local
4570 FD_ZERO (&readfds); in info_get_another_input_char()
4571 FD_SET (fileno (info_input_stream), &readfds); in info_get_another_input_char()
4574 … ready = select (fileno(info_input_stream)+1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer); in info_get_another_input_char()
/openbsd/gnu/usr.bin/cvs/src/
H A Dserver.c3021 fd_set readfds; local
3046 FD_ZERO (&readfds);
3069 FD_SET (stdout_pipe[0], &readfds);
3073 FD_SET (stderr_pipe[0], &readfds);
3081 FD_SET (protocol_pipe[0], &readfds);
3109 FD_ZERO (&readfds);
3193 && (FD_ISSET (stdout_pipe[0], &readfds)))
3218 && (FD_ISSET (stderr_pipe[0], &readfds)))
5089 struct fd_set_wrapper readfds; local
5096 readfds = command_fds_to_drain;
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp1464 int __dfsw_select(int nfds, fd_set *readfds, fd_set *writefds, in __dfsw_select() argument
1469 int ret = select(nfds, readfds, writefds, exceptfds, timeout); in __dfsw_select()
1472 if (readfds) { in __dfsw_select()
1473 dfsan_set_label(0, readfds, sizeof(fd_set)); in __dfsw_select()
1487 int __dfso_select(int nfds, fd_set *readfds, fd_set *writefds, in __dfso_select() argument
1495 return __dfsw_select(nfds, readfds, writefds, exceptfds, timeout, nfds_label, in __dfso_select()
/openbsd/gnu/usr.bin/perl/os2/
H A Dos2ish.h779 my_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) in my_select() argument
787 return select(nfds, readfds, writefds, exceptfds, timeout); in my_select()
/openbsd/gnu/usr.bin/perl/win32/
H A Dperlhost.h1397 PerlSockSelect(struct IPerlSock* piPerl, int nfds, char* readfds, char* writefds, char* exceptfds, … in PerlSockSelect() argument
1399 …return win32_select(nfds, (Perl_fd_set*)readfds, (Perl_fd_set*)writefds, (Perl_fd_set*)exceptfds, … in PerlSockSelect()
/openbsd/usr.bin/dig/lib/isc/unix/
H A Dsocket.c1732 process_fds(isc_socketmgr_t *manager, int maxfd, fd_set *readfds, in process_fds() argument
1740 process_fd(manager, i, FD_ISSET(i, readfds), in process_fds()