Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/pselect/
Dpselect02.c19 static fd_set read_fds; variable
28 {128, &read_fds, NULL, EBADF},
39 FD_ZERO(&read_fds); in setup()
40 FD_SET(fd, &read_fds); in setup()
/third_party/gn/src/gn/
Dexec_process.cc267 fd_set read_fds;
268 FD_ZERO(&read_fds);
269 FD_SET(out_read.get(), &read_fds);
270 FD_SET(err_read.get(), &read_fds);
273 &read_fds, nullptr, nullptr, nullptr));
276 if (FD_ISSET(out_read.get(), &read_fds))
278 if (FD_ISSET(err_read.get(), &read_fds))
/third_party/mbedtls/library/
Dnet_sockets.c489 fd_set read_fds; in mbedtls_net_poll() local
503 memset( &read_fds, 0, sizeof( read_fds ) ); in mbedtls_net_poll()
508 FD_ZERO( &read_fds ); in mbedtls_net_poll()
512 FD_SET( fd, &read_fds ); in mbedtls_net_poll()
530 ret = select( fd + 1, &read_fds, &write_fds, NULL, in mbedtls_net_poll()
539 if( FD_ISSET( fd, &read_fds ) ) in mbedtls_net_poll()
612 fd_set read_fds; in mbedtls_net_recv_timeout() local
619 FD_ZERO( &read_fds ); in mbedtls_net_recv_timeout()
620 FD_SET( fd, &read_fds ); in mbedtls_net_recv_timeout()
625 ret = select( fd + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv ); in mbedtls_net_recv_timeout()
/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/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/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.c816 fd_set read_fds; in main() local
956 FD_ZERO( &read_fds ); in main()
957 FD_SET( server_fd.fd, &read_fds ); in main()
958 FD_SET( client_fd.fd, &read_fds ); in main()
959 FD_SET( listen_fd.fd, &read_fds ); in main()
961 if( ( ret = select( nb_fds, &read_fds, NULL, NULL, tm_ptr ) ) < 0 ) in main()
967 if( FD_ISSET( listen_fd.fd, &read_fds ) ) in main()
970 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main()
977 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/iptables/libipq/
Dlibipq.c140 fd_set read_fds; in ipq_netlink_recvfrom() local
151 FD_ZERO(&read_fds); in ipq_netlink_recvfrom()
152 FD_SET(h->fd, &read_fds); in ipq_netlink_recvfrom()
153 ret = select(h->fd+1, &read_fds, NULL, NULL, &tv); in ipq_netlink_recvfrom()
162 if (!FD_ISSET(h->fd, &read_fds)) { in ipq_netlink_recvfrom()
/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.py2561 read_fds = list(map(int, read_bytes.decode('ascii')))
2567 self.assertEqual([to_fd], read_fds, msg)