Home
last modified time | relevance | path

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

/external/virglrenderer/vtest/
Dutil.c32 fd_set read_fds; in vtest_wait_for_fd_read() local
35 FD_ZERO(&read_fds); in vtest_wait_for_fd_read()
36 FD_SET(fd, &read_fds); in vtest_wait_for_fd_read()
38 ret = select(fd + 1, &read_fds, NULL, NULL, NULL); in vtest_wait_for_fd_read()
42 if (FD_ISSET(fd, &read_fds)) { in vtest_wait_for_fd_read()
Dvtest_server.c72 fd_set read_fds; in wait_for_socket_accept() local
75 FD_ZERO(&read_fds); in wait_for_socket_accept()
76 FD_SET(sock, &read_fds); in wait_for_socket_accept()
78 ret = select(sock + 1, &read_fds, NULL, NULL, NULL); in wait_for_socket_accept()
82 if (FD_ISSET(sock, &read_fds)) { in wait_for_socket_accept()
/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/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/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()
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper.py275 read_fds, _, _ = select.select(
277 if child_fd in read_fds:
287 read_fds, _, _ = select.select(
289 if child_fd in read_fds:
/external/ltp/testcases/kernel/logging/kmsg/
Dkmsg01.c161 fd_set read_fds; in timed_read() local
163 FD_ZERO(&read_fds); in timed_read()
164 FD_SET(fd, &read_fds); in timed_read()
168 ret = select(fd + 1, &read_fds, 0, 0, &timeout); in timed_read()
/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/python/cpython3/Lib/test/
Dtest_subprocess.py2186 read_fds = list(map(int, read_bytes.decode('ascii')))
2192 self.assertEqual([to_fd], read_fds, msg)