Home
last modified time | relevance | path

Searched refs:read_fds (Results 1 – 23 of 23) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/pselect/
Dpselect02.c37 static fd_set read_fds; variable
46 {128, &read_fds, NULL, EBADF},
87 FD_ZERO(&read_fds); in setup()
88 FD_SET(fd, &read_fds); in setup()
/third_party/mbedtls/library/
Dnet_sockets.c520 fd_set read_fds; in mbedtls_net_poll() local
534 memset( &read_fds, 0, sizeof( read_fds ) ); in mbedtls_net_poll()
539 FD_ZERO( &read_fds ); in mbedtls_net_poll()
543 FD_SET( fd, &read_fds ); in mbedtls_net_poll()
561 ret = select( fd + 1, &read_fds, &write_fds, NULL, in mbedtls_net_poll()
570 if( FD_ISSET( fd, &read_fds ) ) in mbedtls_net_poll()
643 fd_set read_fds; in mbedtls_net_recv_timeout() local
650 FD_ZERO( &read_fds ); in mbedtls_net_recv_timeout()
651 FD_SET( fd, &read_fds ); in mbedtls_net_recv_timeout()
656 ret = select( fd + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv ); in mbedtls_net_recv_timeout()
/third_party/cares/
Dahost.c59 fd_set read_fds, write_fds; in main() local
147 FD_ZERO(&read_fds); in main()
149 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
153 res = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
156 ares_process(channel, &read_fds, &write_fds); in main()
Dares_fds.c23 int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds) in ares_fds() argument
41 FD_SET(server->udp_socket, read_fds); in ares_fds()
51 FD_SET(server->tcp_socket, read_fds); in ares_fds()
Dares_process.c67 static void read_tcp_data(ares_channel channel, fd_set *read_fds,
69 static void read_udp_packets(ares_channel channel, fd_set *read_fds,
124 fd_set *read_fds, ares_socket_t read_fd, in processfds() argument
130 read_tcp_data(channel, read_fds, read_fd, &now); in processfds()
131 read_udp_packets(channel, read_fds, read_fd, &now); in processfds()
139 void ares_process(ares_channel channel, fd_set *read_fds, fd_set *write_fds) in ares_process() argument
141 processfds(channel, read_fds, ARES_SOCKET_BAD, write_fds, ARES_SOCKET_BAD); in ares_process()
362 static void read_tcp_data(ares_channel channel, fd_set *read_fds, in read_tcp_data() argument
369 if(!read_fds && (read_fd == ARES_SOCKET_BAD)) in read_tcp_data()
380 if(read_fds) { in read_tcp_data()
[all …]
Dacountry.c199 fd_set read_fds, write_fds; in wait_ares() local
202 FD_ZERO(&read_fds); in wait_ares()
204 nfds = ares_fds(channel, &read_fds, &write_fds); in wait_ares()
208 nfds = select(nfds, &read_fds, &write_fds, NULL, tvp); in wait_ares()
211 ares_process(channel, &read_fds, &write_fds); in wait_ares()
Dadig.c188 fd_set read_fds, write_fds; in main() local
370 FD_ZERO(&read_fds); in main()
372 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
376 count = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
382 ares_process(channel, &read_fds, &write_fds); in main()
Dares.h460 fd_set *read_fds,
472 fd_set *read_fds,
/third_party/gn/src/gn/
Dexec_process.cc266 fd_set read_fds;
267 FD_ZERO(&read_fds);
268 FD_SET(out_read.get(), &read_fds);
269 FD_SET(err_read.get(), &read_fds);
272 &read_fds, nullptr, nullptr, nullptr));
275 if (FD_ISSET(out_read.get(), &read_fds))
277 if (FD_ISSET(err_read.get(), &read_fds))
/third_party/node/deps/cares/src/lib/
Dares_fds.c23 int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds) in ares_fds() argument
41 FD_SET(server->udp_socket, read_fds); in ares_fds()
51 FD_SET(server->tcp_socket, read_fds); in ares_fds()
Dares_process.c61 static void read_tcp_data(ares_channel channel, fd_set *read_fds,
63 static void read_udp_packets(ares_channel channel, fd_set *read_fds,
119 fd_set *read_fds, ares_socket_t read_fd, in processfds() argument
125 read_tcp_data(channel, read_fds, read_fd, &now); in processfds()
126 read_udp_packets(channel, read_fds, read_fd, &now); in processfds()
134 void ares_process(ares_channel channel, fd_set *read_fds, fd_set *write_fds) in ares_process() argument
136 processfds(channel, read_fds, ARES_SOCKET_BAD, write_fds, ARES_SOCKET_BAD); in ares_process()
357 static void read_tcp_data(ares_channel channel, fd_set *read_fds, in read_tcp_data() argument
364 if(!read_fds && (read_fd == ARES_SOCKET_BAD)) in read_tcp_data()
375 if(read_fds) { in read_tcp_data()
[all …]
/third_party/node/deps/cares/src/tools/
Dahost.c60 fd_set read_fds, write_fds; in main() local
153 FD_ZERO(&read_fds); in main()
155 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
159 res = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
162 ares_process(channel, &read_fds, &write_fds); in main()
Dacountry.c204 fd_set read_fds, write_fds; in wait_ares() local
207 FD_ZERO(&read_fds); in wait_ares()
209 nfds = ares_fds(channel, &read_fds, &write_fds); in wait_ares()
213 nfds = select(nfds, &read_fds, &write_fds, NULL, tvp); in wait_ares()
216 ares_process(channel, &read_fds, &write_fds); in wait_ares()
Dadig.c166 fd_set read_fds, write_fds; in main() local
360 FD_ZERO(&read_fds); in main()
362 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
366 count = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
372 ares_process(channel, &read_fds, &write_fds); in main()
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-udpserver.c198 fd_set read_fds; /* list of file descriptor for reading */ in main() local
339 FD_ZERO(&read_fds); in main()
340 FD_SET(sock_fd, &read_fds); in main()
351 active_fds = read_fds; in main()
Dns-tcpserver.c384 fd_set read_fds; /* list of file descriptor for reading */ in handle_client() local
388 FD_ZERO(&read_fds); in handle_client()
389 FD_SET(info_p->listen_sd, &read_fds); in handle_client()
416 active_fds = read_fds; in handle_client()
/third_party/mbedtls/programs/test/
Dudp_proxy.c808 fd_set read_fds; in main() local
948 FD_ZERO( &read_fds ); in main()
949 FD_SET( server_fd.fd, &read_fds ); in main()
950 FD_SET( client_fd.fd, &read_fds ); in main()
951 FD_SET( listen_fd.fd, &read_fds ); in main()
953 if( ( ret = select( nb_fds, &read_fds, NULL, NULL, tm_ptr ) ) < 0 ) in main()
959 if( FD_ISSET( listen_fd.fd, &read_fds ) ) in main()
962 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main()
969 if( FD_ISSET( server_fd.fd, &read_fds ) ) in main()
/third_party/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc378 fd_set read_fds; in Communicate() local
380 FD_ZERO(&read_fds); in Communicate()
383 FD_SET(child_stdout_, &read_fds); in Communicate()
389 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) { in Communicate()
416 if (child_stdout_ != -1 && FD_ISSET(child_stdout_, &read_fds)) { in Communicate()
/third_party/boringssl/src/tool/
Dclient.cc189 fd_set read_fds; in WaitForSession() local
190 FD_ZERO(&read_fds); in WaitForSession()
202 FD_SET(static_cast<SOCKET>(sock), &read_fds); in WaitForSession()
204 FD_SET(sock, &read_fds); in WaitForSession()
206 int ret = select(sock + 1, &read_fds, NULL, NULL, NULL); in WaitForSession()
Dtransport_common.cc393 fd_set read_fds, write_fds; in Wait() local
394 FD_ZERO(&read_fds); in Wait()
399 FD_SET(STDIN_FILENO, &read_fds); in Wait()
401 FD_SET(sock_, &read_fds); in Wait()
402 if (select(sock_ + 1, &read_fds, &write_fds, NULL, NULL) <= 0) { in Wait()
407 if (FD_ISSET(STDIN_FILENO, &read_fds) || FD_ISSET(sock_, &write_fds)) { in Wait()
410 if (FD_ISSET(sock_, &read_fds)) { in Wait()
/third_party/ltp/testcases/kernel/logging/kmsg/
Dkmsg01.c142 fd_set read_fds; in timed_read() local
144 FD_ZERO(&read_fds); in timed_read()
145 FD_SET(fd, &read_fds); in timed_read()
149 ret = select(fd + 1, &read_fds, 0, 0, &timeout); in timed_read()
/third_party/node/deps/cares/include/
Dares.h460 fd_set *read_fds,
472 fd_set *read_fds,
/third_party/python/Lib/test/
Dtest_subprocess.py2512 read_fds = list(map(int, read_bytes.decode('ascii')))
2518 self.assertEqual([to_fd], read_fds, msg)