Home
last modified time | relevance | path

Searched refs:read_fds (Results 1 - 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/pselect/
H A 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/
H A Dexec_process.cc270 fd_set read_fds;
271 FD_ZERO(&read_fds);
272 FD_SET(out_read.get(), &read_fds);
273 FD_SET(err_read.get(), &read_fds);
276 &read_fds, nullptr, nullptr, nullptr));
279 if (FD_ISSET(out_read.get(), &read_fds))
281 if (FD_ISSET(err_read.get(), &read_fds))
/third_party/node/deps/cares/src/lib/
H A Dares_event_select.c78 fd_set read_fds; in ares_evsys_select_wait() local
84 FD_ZERO(&read_fds); in ares_evsys_select_wait()
91 FD_SET(ev->fd, &read_fds); in ares_evsys_select_wait()
107 rv = select(nfds, &read_fds, &write_fds, NULL, tout); in ares_evsys_select_wait()
118 if (FD_ISSET(fdlist[i], &read_fds)) { in ares_evsys_select_wait()
H A Dares_fds.c33 int ares_fds(ares_channel_t *channel, fd_set *read_fds, fd_set *write_fds) in ares_fds() argument
40 if (channel == NULL || read_fds == NULL || write_fds == NULL) { in ares_fds()
68 FD_SET(conn->fd, read_fds); in ares_fds()
H A Dares_process.c56 static void read_packets(ares_channel_t *channel, fd_set *read_fds,
139 static void processfds(ares_channel_t *channel, fd_set *read_fds, in processfds() argument
152 read_packets(channel, read_fds, read_fd, &now); in processfds()
163 void ares_process(ares_channel_t *channel, fd_set *read_fds, fd_set *write_fds) in ares_process() argument
165 processfds(channel, read_fds, ARES_SOCKET_BAD, write_fds, ARES_SOCKET_BAD); in ares_process()
478 static void read_packets(ares_channel_t *channel, fd_set *read_fds, in read_packets() argument
487 if (!read_fds && (read_fd == ARES_SOCKET_BAD)) { in read_packets()
493 if (!read_fds) { in read_packets()
516 if (!FD_ISSET(socketlist[i], read_fds)) { in read_packets()
525 FD_CLR(socketlist[i], read_fds); in read_packets()
[all...]
/third_party/mbedtls/library/
H A Dnet_sockets.c499 fd_set read_fds; local
511 /* Ensure that memory sanitizers consider read_fds and write_fds as
514 memset(&read_fds, 0, sizeof(read_fds));
519 FD_ZERO(&read_fds);
522 FD_SET((SOCKET) fd, &read_fds);
539 ret = select(fd + 1, &read_fds, &write_fds, NULL,
548 if (FD_ISSET(fd, &read_fds)) {
631 fd_set read_fds; local
639 FD_ZERO(&read_fds);
[all...]
/third_party/node/deps/cares/src/tools/
H A Dahost.c75 fd_set read_fds; in main() local
188 FD_ZERO(&read_fds); in main()
190 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
198 res = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
202 ares_process(channel, &read_fds, &write_fds); in main()
H A Dadig.c846 fd_set read_fds; in event_loop() local
853 FD_ZERO(&read_fds); in event_loop()
857 nfds = ares_fds(channel, &read_fds, &write_fds); in event_loop()
865 count = select(nfds, &read_fds, &write_fds, NULL, tvp); in event_loop()
877 ares_process(channel, &read_fds, &write_fds); in event_loop()
/third_party/mbedtls/programs/test/
H A Dudp_proxy.c774 fd_set read_fds; in main() local
911 FD_ZERO(&read_fds); in main()
912 FD_SET(server_fd.fd, &read_fds); in main()
913 FD_SET(client_fd.fd, &read_fds); in main()
914 FD_SET(listen_fd.fd, &read_fds); in main()
916 if ((ret = select(nb_fds, &read_fds, NULL, NULL, tm_ptr)) < 0) { in main()
921 if (FD_ISSET(listen_fd.fd, &read_fds)) { in main()
925 if (FD_ISSET(client_fd.fd, &read_fds)) { in main()
932 if (FD_ISSET(server_fd.fd, &read_fds)) { in main()
/third_party/ltp/testcases/network/stress/ns-tools/
H A 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()
H A 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/protobuf/src/google/protobuf/compiler/
H A Dsubprocess.cc378 fd_set read_fds;
380 FD_ZERO(&read_fds);
383 FD_SET(child_stdout_, &read_fds);
389 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) {
416 if (child_stdout_ != -1 && FD_ISSET(child_stdout_, &read_fds)) {
/third_party/ltp/testcases/kernel/logging/kmsg/
H A 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/cares/include/
H A Dares.h459 fd_set *read_fds,
471 fd_set *read_fds,
/third_party/node/deps/cares/include/
H A Dares.h497 CARES_EXTERN int ares_fds(ares_channel_t *channel, fd_set *read_fds,
507 CARES_EXTERN void ares_process(ares_channel_t *channel, fd_set *read_fds,
/third_party/backends/backend/
H A Davision.c6874 if (s->read_fds >= 0) { in do_eof()
6875 close (s->read_fds); in do_eof()
6876 s->read_fds = -1; in do_eof()
6900 if (s->read_fds >= 0) { in do_cancel()
6901 close(s->read_fds); in do_cancel()
6902 s->read_fds = -1; in do_cancel()
7458 close (s->read_fds); in reader_process()
7459 s->read_fds = -1; in reader_process()
8600 s->read_fds = -1; in sane_open()
9320 s->read_fds in sane_start()
[all...]
H A Davision.h515 int read_fds; /* pipe reading end */ member
/third_party/python/Lib/test/
H A Dtest_subprocess.py2632 read_fds = list(map(int, read_bytes.decode('ascii')))
2636 to descriptor(s) {read_fds} instead of descriptor {to_fd}.
2638 self.assertEqual([to_fd], read_fds, msg)

Completed in 28 milliseconds