Home
last modified time | relevance | path

Searched refs:readfds (Results 226 – 250 of 2308) sorted by relevance

12345678910>>...93

/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/
H A Dusleep.c67 fd_set readfds, writefds, exceptfds; in usleep() local
69 int nfds, readfds, writefds, exceptfds; in usleep() local
77 nfds = readfds = writefds = exceptfds = 0; in usleep()
91 if (select( nfds, &readfds, &writefds, &exceptfds, &Timer ) < 0) { in usleep()
/dports/devel/cvs-devel/cvs-1.12.13/m4/
H A 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
/dports/audio/timidity/timidity-0.2i/
H A Dbag.c59 fd_set readfds, writefds, brokefds; in main() local
105 FD_ZERO(&readfds); in main()
110 FD_SET(STDIN_FILENO, &readfds); in main()
124 if ((c=select(FD_SETSIZE,(int *) &readfds,(int *) &writefds, (int *) &brokefds, &tmo))<0) in main()
126 if ((c=select(FD_SETSIZE, &readfds, &writefds, &brokefds, &tmo))<0) in main()
139 if (FD_ISSET(STDIN_FILENO, &readfds)) in main()
/dports/net/openslp/openslp-2.0.0/common/
H A Dslp_xcast.c233 struct pollfd readfds[SLP_MAX_IFACES]; in SLPXcastRecvMessage() local
235 fd_set readfds; in SLPXcastRecvMessage()
255 readfds[i].fd = sockets->sock[i]; in SLPXcastRecvMessage()
256 readfds[i].events = POLLIN; in SLPXcastRecvMessage()
257 readfds[i].revents = 0; in SLPXcastRecvMessage()
259 …readable = poll(readfds, sockets->sock_count, timeout ? timeout->tv_sec * 1000 + timeout->tv_usec … in SLPXcastRecvMessage()
262 FD_ZERO(&readfds); in SLPXcastRecvMessage()
266 FD_SET(sockets->sock[i],&readfds); in SLPXcastRecvMessage()
272 readable = select((int)(highfd + 1), &readfds, 0, 0, timeout); in SLPXcastRecvMessage()
280 if ((readfds[i].revents & POLLIN) != 0) in SLPXcastRecvMessage()
[all …]
/dports/databases/mysql55-client/mysql-5.5.62/storage/ndb/src/common/portlib/win32/
H A DNdbTCP.c42 fd_set readfds, writefds, errorfds; in Ndb_check_socket_hup() local
47 FD_ZERO(&readfds); in Ndb_check_socket_hup()
51 FD_SET(sock, &readfds); in Ndb_check_socket_hup()
55 if(select(1, &readfds, &writefds, &errorfds, &tv)==SOCKET_ERROR) in Ndb_check_socket_hup()
/dports/security/dropbear/dropbear-2020.81/
H A Dfuzz-wrapfd.c169 int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds, in wrapfd_select() argument
176 return select(nfds, readfds, writefds, exceptfds, timeout); in wrapfd_select()
187 if (readfds != NULL && erand48(rand_state) < CHANCE_READ1) { in wrapfd_select()
189 if (FD_ISSET(i, readfds)) { in wrapfd_select()
195 DROPBEAR_FD_ZERO(readfds); in wrapfd_select()
200 FD_SET(sel, readfds); in wrapfd_select()
205 if (!FD_ISSET(sel, readfds)) { in wrapfd_select()
206 FD_SET(sel, readfds); in wrapfd_select()
/dports/www/kannel/gateway-1.4.4/gwlib/
H A Dgwpoll.c72 fd_set readfds, *rfdp; in gw_poll() local
78 FD_ZERO(&readfds); in gw_poll()
105 FD_SET(fd, &readfds); in gw_poll()
106 rfdp = &readfds; in gw_poll()
135 if (rfdp && FD_ISSET(fdarray[i].fd, &readfds)) in gw_poll()
/dports/mail/libmilter/sendmail-8.16.1/libsm/
H A Dnotify.c169 fd_set readfds; local
176 FD_ZERO(&readfds);
177 SM_FD_SET(NotifyRDpipe, &readfds);
182 r = select(NotifyRDpipe + 1, FDSET_CAST &readfds, NULL, NULL, &timeout);
194 if (!FD_ISSET(NotifyRDpipe, &readfds))
/dports/chinese/ve/ve-1.1/
H A Dio.c99 fd_set readfds; in igetch() local
103 FD_ZERO(&readfds); in igetch()
104 FD_SET(0, &readfds); in igetch()
106 FD_SET(i_newfd, &readfds); in igetch()
107 if ((ch = select(FD_SETSIZE, &readfds, NULL, NULL, &to)) <= 0) in igetch()
117 FD_ZERO(&readfds); in igetch()
118 FD_SET(0, &readfds); in igetch()
120 FD_SET(i_newfd, &readfds); in igetch()
122 while ((ch = select(FD_SETSIZE, &readfds, NULL, NULL, i_top)) < 0) in igetch()
135 if (i_newfd && FD_ISSET(i_newfd, &readfds)) in igetch()
/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client_sdk/src/tests/nacl_io_test/
H A Djspipe_test.cc413 fd_set readfds; in IsReadable() local
415 FD_ZERO(&readfds); in IsReadable()
417 FD_SET(fd, &readfds); in IsReadable()
426 if (!FD_ISSET(fd, &readfds)) in IsReadable()
433 fd_set readfds; in TEST_F() local
440 FD_ZERO(&readfds); in TEST_F()
442 FD_SET(pipe_fd, &readfds); in TEST_F()
450 ASSERT_FALSE(FD_ISSET(pipe_fd, &readfds)); in TEST_F()
453 FD_ZERO(&readfds); in TEST_F()
456 FD_SET(pipe_fd, &readfds); in TEST_F()
[all …]
/dports/devel/libfixposix/libfixposix-0.4.3/src/tests/
H A Dsignalfd.c24 fd_set readfds; in do_read() local
25 lfp_fd_zero(&readfds); in do_read()
28 lfp_fd_set(fd,&readfds); in do_read()
29 lfp_select(fd+1, &readfds, NULL, NULL, NULL, NULL); in do_read()
/dports/mail/greylite/greylite-2.3/
H A Ddnsblenv.c48 fd_set readfds, writefds; in main() local
82 FD_ZERO(&readfds); in main()
101 ares_fds(dnschan, &readfds, & writefds); in main()
108 ares_process(dnschan, & readfds, & writefds); in main()
123 ares_fds(dnschan, &readfds, & writefds); in main()
124 ares_process(dnschan, & readfds, & writefds); in main()
/dports/sysutils/busybox/busybox-1.26.2/networking/
H A Dnc.c120 fd_set readfds, testfds; in nc_main()
240 FD_ZERO(&readfds); in nc_main()
241 FD_SET(cfd, &readfds); in nc_main()
242 FD_SET(STDIN_FILENO, &readfds); in nc_main()
251 testfds = readfds; in nc_main()
269 FD_CLR(STDIN_FILENO, &readfds); in nc_main()
/dports/net-p2p/c-lightning/lightning-0.10.2/common/
H A Dread_peer_msg.c21 fd_set readfds; in peer_or_gossip_sync_read() local
34 FD_ZERO(&readfds); in peer_or_gossip_sync_read()
35 FD_SET(pps->peer_fd, &readfds); in peer_or_gossip_sync_read()
36 FD_SET(pps->gossip_fd, &readfds); in peer_or_gossip_sync_read()
40 &readfds, NULL, NULL, tptr) != 0) in peer_or_gossip_sync_read()
51 if (FD_ISSET(pps->peer_fd, &readfds)) { in peer_or_gossip_sync_read()
/dports/chinese/tin/tin-2.4.5/src/
H A Dread.c83 fd_set readfds; in wait_for_input() local
90 FD_ZERO(&readfds); in wait_for_input()
91 FD_SET(STDIN_FILENO, &readfds); in wait_for_input()
99 if ((nfds = select(STDIN_FILENO + 1, (int *) &readfds, NULL, NULL, &tv)) == -1) in wait_for_input()
101 if ((nfds = select(STDIN_FILENO + 1, &readfds, NULL, NULL, &tv)) == -1) in wait_for_input()
125 if (FD_ISSET(STDIN_FILENO, &readfds)) { in wait_for_input()
162 if (FD_ISSET(fileno(NEED_NNTP_FD_HERE), &readfds)) in wait_for_input()
/dports/news/tin/tin-2.4.5/src/
H A Dread.c83 fd_set readfds; in wait_for_input() local
90 FD_ZERO(&readfds); in wait_for_input()
91 FD_SET(STDIN_FILENO, &readfds); in wait_for_input()
99 if ((nfds = select(STDIN_FILENO + 1, (int *) &readfds, NULL, NULL, &tv)) == -1) in wait_for_input()
101 if ((nfds = select(STDIN_FILENO + 1, &readfds, NULL, NULL, &tv)) == -1) in wait_for_input()
125 if (FD_ISSET(STDIN_FILENO, &readfds)) { in wait_for_input()
162 if (FD_ISSET(fileno(NEED_NNTP_FD_HERE), &readfds)) in wait_for_input()
/dports/irc/undernet-ircu/ircu2.10.12.19/tools/Bounce/
H A DBounce.cpp160 fd_set readfds; in checkSockets() local
169 FD_ZERO(&readfds); in checkSockets()
179 FD_SET(tempFd, &readfds); in checkSockets()
194 FD_SET(tempFd, &readfds); in checkSockets()
196 FD_SET(tempFd2, &readfds); in checkSockets()
201 select(highestFd+1, &readfds, NULL, NULL, &tv); in checkSockets()
217 if (FD_ISSET(tempFd, &readfds)) in checkSockets()
247 if (FD_ISSET(tempFd, &readfds)) in checkSockets()
277 if (FD_ISSET(tempFd, &readfds)) in checkSockets()
/dports/misc/visp/visp-3.4.0/modules/io/src/tools/
H A DvpKeyboard.cpp78 fd_set readfds; in kbhit() local
80 FD_ZERO(&readfds); in kbhit()
81 FD_SET(STDIN_FILENO, &readfds); in kbhit()
83 return select(STDIN_FILENO + 1, &readfds, NULL, NULL, &tv) == 1; in kbhit()
/dports/net-mgmt/net-snmp/net-snmp-5.9/include/net-snmp/library/
H A Dfd_event_manager.h92 void netsnmp_external_event_info(int *numfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds);
96 netsnmp_large_fd_set *readfds,
125 void netsnmp_dispatch_external_events(int *count, fd_set *readfds, fd_set *writefds, fd_set *except…
128 netsnmp_large_fd_set *readfds,
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gdb/readline/
H A Dinput.c168 fd_set readfds, exceptfds; in rl_gather_tyi() local
175 FD_ZERO (&readfds); in rl_gather_tyi()
177 FD_SET (tty, &readfds); in rl_gather_tyi()
181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
261 fd_set readfds, exceptfds; in _rl_input_available() local
272 FD_ZERO (&readfds); in _rl_input_available()
274 FD_SET (tty, &readfds); in _rl_input_available()
278 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
/dports/cad/magic/magic-8.3.245/readline/readline-4.3/
H A Dinput.c168 fd_set readfds, exceptfds; in rl_gather_tyi() local
175 FD_ZERO (&readfds); in rl_gather_tyi()
177 FD_SET (tty, &readfds); in rl_gather_tyi()
181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
261 fd_set readfds, exceptfds; in _rl_input_available() local
272 FD_ZERO (&readfds); in _rl_input_available()
274 FD_SET (tty, &readfds); in _rl_input_available()
278 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
/dports/security/gvmd/gvmd-21.4.4/src/
H A Dgmpd.c496 fd_set readfds, writefds; in serve_gmp() local
502 FD_ZERO (&readfds); in serve_gmp()
509 FD_SET (client_connection->socket, &readfds); in serve_gmp()
523 && FD_ISSET (client_connection->socket, &readfds) in serve_gmp()
526 FD_ZERO (&readfds); in serve_gmp()
529 FD_SET (client_connection->socket, &readfds); in serve_gmp()
533 ret = select (nfds, &readfds, &writefds, NULL, NULL); in serve_gmp()
546 && FD_ISSET (client_connection->socket, &readfds)) in serve_gmp()
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gdb/readline/
H A Dinput.c168 fd_set readfds, exceptfds; in rl_gather_tyi() local
175 FD_ZERO (&readfds); in rl_gather_tyi()
177 FD_SET (tty, &readfds); in rl_gather_tyi()
181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
261 fd_set readfds, exceptfds; in _rl_input_available() local
272 FD_ZERO (&readfds); in _rl_input_available()
274 FD_SET (tty, &readfds); in _rl_input_available()
278 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
/dports/databases/gqlplus/gqlplus-1.16/gqlplus-1.15/readline/
H A Dinput.c168 fd_set readfds, exceptfds; in rl_gather_tyi() local
175 FD_ZERO (&readfds); in rl_gather_tyi()
177 FD_SET (tty, &readfds); in rl_gather_tyi()
181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
261 fd_set readfds, exceptfds; in _rl_input_available() local
272 FD_ZERO (&readfds); in _rl_input_available()
274 FD_SET (tty, &readfds); in _rl_input_available()
278 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
/dports/databases/gqlplus/gqlplus-1.16/readline/
H A Dinput.c168 fd_set readfds, exceptfds; in rl_gather_tyi() local
175 FD_ZERO (&readfds); in rl_gather_tyi()
177 FD_SET (tty, &readfds); in rl_gather_tyi()
181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
261 fd_set readfds, exceptfds; in _rl_input_available() local
272 FD_ZERO (&readfds); in _rl_input_available()
274 FD_SET (tty, &readfds); in _rl_input_available()
278 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()

12345678910>>...93