Home
last modified time | relevance | path

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

/external/dhcpcd-6.8.2/compat/
Dpselect.c42 fd_set read_fds; in pollts() local
46 FD_ZERO(&read_fds); in pollts()
50 FD_SET(fds[n].fd, &read_fds); in pollts()
56 r = pselect(maxfd + 1, &read_fds, NULL, NULL, ts, sigmask); in pollts()
60 FD_ISSET(fds[n].fd, &read_fds) ? POLLIN : 0; in pollts()
/external/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()
/external/c-ares/
Dahost.c69 fd_set read_fds, write_fds; in main() local
145 FD_ZERO(&read_fds); in main()
147 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
151 select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
152 ares_process(channel, &read_fds, &write_fds); in main()
Dares_fds.c27 int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds) in ares_fds() argument
45 FD_SET(server->udp_socket, read_fds); in ares_fds()
55 FD_SET(server->tcp_socket, read_fds); in ares_fds()
Dares_process.c76 static void read_tcp_data(ares_channel channel, fd_set *read_fds,
78 static void read_udp_packets(ares_channel channel, fd_set *read_fds,
145 fd_set *read_fds, ares_socket_t read_fd, in processfds() argument
151 read_tcp_data(channel, read_fds, read_fd, &now); in processfds()
152 read_udp_packets(channel, read_fds, read_fd, &now); in processfds()
160 void ares_process(ares_channel channel, fd_set *read_fds, fd_set *write_fds) in ares_process() argument
162 processfds(channel, read_fds, ARES_SOCKET_BAD, write_fds, ARES_SOCKET_BAD); in ares_process()
331 static void read_tcp_data(ares_channel channel, fd_set *read_fds, in read_tcp_data() argument
338 if(!read_fds && (read_fd == ARES_SOCKET_BAD)) in read_tcp_data()
349 if(read_fds) { in read_tcp_data()
[all …]
Dacountry.c205 fd_set read_fds, write_fds; in wait_ares() local
208 FD_ZERO(&read_fds); in wait_ares()
210 nfds = ares_fds(channel, &read_fds, &write_fds); in wait_ares()
214 select(nfds, &read_fds, &write_fds, NULL, tvp); in wait_ares()
215 ares_process(channel, &read_fds, &write_fds); in wait_ares()
Dadig.c204 fd_set read_fds, write_fds; in main() local
386 FD_ZERO(&read_fds); in main()
388 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
392 count = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
398 ares_process(channel, &read_fds, &write_fds); in main()
Dares.h387 fd_set *read_fds,
399 fd_set *read_fds,
/external/libchrome/base/
Dsync_socket_posix.cc161 fd_set read_fds; in ReceiveWithTimeout() local
166 FD_ZERO(&read_fds); in ReceiveWithTimeout()
167 FD_SET(handle_, &read_fds); in ReceiveWithTimeout()
173 select(handle_ + 1, &read_fds, NULL, NULL, &timeout_struct); in ReceiveWithTimeout()
182 DCHECK(FD_ISSET(handle_, &read_fds)); in ReceiveWithTimeout()
/external/boringssl/src/tool/
Dtransport_common.cc361 fd_set read_fds; in TransferData() local
362 FD_ZERO(&read_fds); in TransferData()
370 FD_SET(0, &read_fds); in TransferData()
372 FD_SET(sock, &read_fds); in TransferData()
374 int ret = select(sock + 1, &read_fds, NULL, NULL, NULL); in TransferData()
380 if (FD_ISSET(0, &read_fds)) { in TransferData()
389 FD_CLR(0, &read_fds); in TransferData()
421 if (FD_ISSET(sock, &read_fds)) { in TransferData()
Dclient.cc183 fd_set read_fds; in WaitForSession() local
184 FD_ZERO(&read_fds); in WaitForSession()
191 FD_SET(sock, &read_fds); in WaitForSession()
192 int ret = select(sock + 1, &read_fds, NULL, NULL, NULL); in WaitForSession()
/external/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()
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc367 fd_set read_fds;
369 FD_ZERO(&read_fds);
372 FD_SET(child_stdout_, &read_fds);
378 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) {
405 if (child_stdout_ != -1 && FD_ISSET(child_stdout_, &read_fds)) {
/external/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()
/external/libbrillo/brillo/streams/
Dfile_stream.cc127 fd_set read_fds; in WaitForDataBlocking() local
131 FD_ZERO(&read_fds); in WaitForDataBlocking()
136 FD_SET(fd_, &read_fds); in WaitForDataBlocking()
147 int res = HANDLE_EINTR(select(fd_ + 1, &read_fds, &write_fds, &error_fds, in WaitForDataBlocking()
150 *out_mode = stream_utils::MakeAccessMode(FD_ISSET(fd_, &read_fds), in WaitForDataBlocking()
/external/ltp/testcases/kernel/logging/kmsg/
Dkmsg01.c168 fd_set read_fds; in timed_read() local
170 FD_ZERO(&read_fds); in timed_read()
171 FD_SET(fd, &read_fds); in timed_read()
175 ret = select(fd + 1, &read_fds, 0, 0, &timeout); in timed_read()
/external/netperf/src/
Dnetserver.c1214 fd_set read_fds, write_fds, except_fds; in accept_connections() local
1229 high_fd = set_fdset(listen_list,&read_fds); in accept_connections()
1236 &read_fds, in accept_connections()
1254 if (FD_ISSET(candidate,&read_fds)) { in accept_connections()
1256 FD_CLR(candidate,&read_fds); in accept_connections()
/external/libmojo/third_party/catapult/devil/devil/utils/
Dcmd_helper.py227 read_fds, _, _ = select.select([child_fd], [], [], poll_interval)
228 if child_fd in read_fds:
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper.py247 read_fds, _, _ = select.select(
249 if child_fd in read_fds: