Home
last modified time | relevance | path

Searched refs:readfds (Results 1 – 25 of 41) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/fortify/
Dselect_test.c33 fd_set readfds; in fd_set_0010() local
34 FD_ZERO(&readfds); in fd_set_0010()
36 FD_SET(sockfd, &readfds); in fd_set_0010()
37 EXPECT_EQ(fd_set_0010, (&readfds)->fds_bits[0], 1); in fd_set_0010()
56 fd_set readfds; in fd_set_0020() local
63 FD_ZERO(&readfds); in fd_set_0020()
64 FD_SET(sockfd, &readfds); in fd_set_0020()
92 fd_set readfds; in fd_set_0030() local
99 FD_ZERO(&readfds); in fd_set_0030()
100 FD_SET(sockfd, &readfds); in fd_set_0030()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/select/
Dselect.c42 fd_set readfds, writefds; in select_0100() local
43 FD_ZERO(&readfds); in select_0100()
45 FD_SET(0, &readfds); in select_0100()
48 result = select(2, &readfds, &writefds, 0, &timeout); in select_0100()
62 fd_set readfds, writefds; in select_0200() local
63 FD_ZERO(&readfds); in select_0200()
65 FD_SET(0, &readfds); in select_0200()
68 result = select(2, &readfds, &writefds, 0, &timeout); in select_0200()
82 fd_set readfds, writefds; in select_0300() local
84 FD_ZERO(&readfds); in select_0300()
[all …]
/third_party/NuttX/fs/vfs/
Dfs_select.c96 int do_select(int nfds, fd_set *readfds, fd_set *writefds, in do_select() argument
122 if ((readfds && FD_ISSET(fd, readfds)) || in do_select()
197 if (readfds && FD_ISSET(fd, readfds)) in do_select()
249 if (readfds) in do_select()
251 (void)memset_s(readfds, sizeof(fd_set), 0, sizeof(fd_set)); in do_select()
277 if (readfds) in do_select()
281 FD_SET(pollset[ndx].fd, readfds); in do_select()
317 int select(int nfds, fd_set *readfds, fd_set *writefds, in select() argument
320 return do_select(nfds, readfds, writefds, exceptfds, timeout, poll); in select()
/third_party/ltp/testcases/kernel/syscalls/select/
Dselect_var.h21 static int do_select_faulty_to(int nfds, fd_set *readfds, fd_set *writefds, in do_select_faulty_to() argument
26 return select(nfds, readfds, writefds, exceptfds, timeout); in do_select_faulty_to()
30 return tst_syscall(__NR_select, nfds, readfds, writefds, exceptfds, timeout); in do_select_faulty_to()
34 ._inp = (long)readfds, in do_select_faulty_to()
56 ret = tst_syscall(__NR_pselect6, nfds, readfds, writefds, exceptfds, ts, NULL); in do_select_faulty_to()
77 ret = tst_syscall(__NR_pselect6_time64, nfds, readfds, writefds, exceptfds, ts, NULL); in do_select_faulty_to()
89 return tst_syscall(__NR__newselect, nfds, readfds, writefds, exceptfds, timeout); in do_select_faulty_to()
99 static inline int do_select(int nfds, fd_set *readfds, fd_set *writefds, in do_select() argument
102 return do_select_faulty_to(nfds, readfds, writefds, exceptfds, timeout, 0); in do_select()
Dselect04.c29 fd_set *readfds; member
45 TEST(do_select(*tc->fd + 1, tc->readfds, tc->writefds, NULL, &timeout)); in run()
52 if ((tc->readfds && FD_ISSET(*tc->fd, tc->readfds)) || in run()
Dselect01.c26 fd_set *readfds; member
52 TEST(do_select(*tc->nfds + 1, tc->readfds, tc->writefds, 0, &timeout)); in run()
72 if (FD_ISSET(*tc->readfd, tc->readfds)) in run()
Dselect03.c29 fd_set **readfds; member
49 TEST(do_select_faulty_to(*tc->nfds, *tc->readfds, *tc->writefds, in verify_select()
/third_party/ltp/testcases/kernel/syscalls/eventfd/
Deventfd03.c25 fd_set readfds; in run() local
31 FD_ZERO(&readfds); in run()
32 FD_SET(fd, &readfds); in run()
35 TEST(select(fd + 1, &readfds, NULL, NULL, &timeout)); in run()
39 TST_EXP_EQ_LI(FD_ISSET(fd, &readfds), 1); in run()
42 TEST(select(fd + 1, &readfds, NULL, NULL, &timeout)); in run()
46 TST_EXP_EQ_LI(FD_ISSET(fd, &readfds), 0); in run()
Deventfd06.c90 fd_set readfds; in test_select() local
97 FD_ZERO(&readfds); in test_select()
98 FD_SET(fd, &readfds); in test_select()
102 TEST(select(fd + 1, NULL, &readfds, NULL, &timeout)); in test_select()
106 TST_EXP_EQ_LI(FD_ISSET(fd, &readfds), 1); in test_select()
/third_party/rust/crates/nix/src/sys/
Dselect.rs178 readfds: R, in select()
190 let mut readfds = readfds.into(); in select() localVariable
196 readfds in select()
206 let readfds = readfds in select() localVariable
220 unsafe { libc::select(nfds, readfds, writefds, errorfds, timeout) }; in select()
260 readfds: R,
273 let mut readfds = readfds.into(); localVariable
280 readfds.iter_mut()
288 let readfds = readfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); localVariable
295 libc::pselect(nfds, readfds, writefds, errorfds, timeout, sigmask)
/third_party/ltp/testcases/network/lib6/
Dasapi_02.c109 fd_set readfds, readfds_saved; in ic6_recv() local
122 memcpy(&readfds, &readfds_saved, sizeof(readfds)); in ic6_recv()
129 nfds = select(maxfd + 1, &readfds, 0, 0, &tv); in ic6_recv()
139 if (FD_ISSET(sall, &readfds)) { in ic6_recv()
145 if (FD_ISSET(sf, &readfds)) { in ic6_recv()
150 memcpy(&readfds, &readfds_saved, sizeof(readfds)); in ic6_recv()
/third_party/musl/Benchmark/musl/
Dlibc_select.cpp28 fd_set readfds; in Bm_function_Select() local
30 FD_ZERO(&readfds); in Bm_function_Select()
32 FD_SET(0, &readfds); in Bm_function_Select()
35 benchmark::DoNotOptimize(select(MAX_MONITOR_FDS, &readfds, &writefds, 0, 0)); in Bm_function_Select()
/third_party/ltp/testcases/kernel/syscalls/pselect/
Dpselect01.c14 fd_set readfds; in sample_fn() local
17 FD_ZERO(&readfds); in sample_fn()
18 FD_SET(0, &readfds); in sample_fn()
21 TEST(pselect(0, &readfds, NULL, NULL, &tv, NULL)); in sample_fn()
Dpselect03.c23 fd_set readfds; in verify_pselect() local
26 FD_ZERO(&readfds); in verify_pselect()
27 FD_SET(fd, &readfds); in verify_pselect()
29 TEST(pselect(fd, &readfds, 0, 0, &tv, NULL)); in verify_pselect()
Dpselect02.c24 fd_set *readfds; member
52 TST_EXP_FAIL(pselect(tc->nfds, tc->readfds, NULL, NULL, tc->timeout, NULL), in pselect_verify()
54 tc->nfds, tc->readfds, tc->timeout); in pselect_verify()
/third_party/alsa-utils/alsactl/
Dinit_utils_run.c143 fd_set readfds; in run_program0() local
145 FD_ZERO(&readfds); in run_program0()
147 FD_SET(outpipe[READ_END], &readfds); in run_program0()
149 FD_SET(errpipe[READ_END], &readfds); in run_program0()
150 fdcount = select(MY_MAX(outpipe[READ_END], errpipe[READ_END])+1, &readfds, NULL, NULL, NULL); in run_program0()
159 if (outpipe[READ_END] > 0 && FD_ISSET(outpipe[READ_END], &readfds)) { in run_program0()
193 if (errpipe[READ_END] > 0 && FD_ISSET(errpipe[READ_END], &readfds)) { in run_program0()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-service.c130 fd_set readfds, writefds, errfds; in _lws_plat_service_tsi() local
134 FD_ZERO(&readfds); in _lws_plat_service_tsi()
143 FD_SET(pt->fds[n].fd, &readfds); in _lws_plat_service_tsi()
151 n = select(max_fd + 1, &readfds, &writefds, &errfds, ptv); in _lws_plat_service_tsi()
158 if (FD_ISSET(pt->fds[m].fd, &readfds)) { in _lws_plat_service_tsi()
Dfreertos-sockets.c71 fd_set readfds; in lws_poll_listen_fd() local
74 FD_ZERO(&readfds); in lws_poll_listen_fd()
75 FD_SET(fd->fd, &readfds); in lws_poll_listen_fd()
77 return select(fd->fd + 1, &readfds, NULL, NULL, &tv); in lws_poll_listen_fd()
/third_party/node/deps/openssl/openssl/apps/lib/
Ds_socket.c365 fd_set readfds; in do_server() local
406 FD_ZERO(&readfds); in do_server()
407 openssl_fdset(sock, &readfds); in do_server()
408 } while (select(sock + 1, &readfds, NULL, NULL, &timeout) > 0 in do_server()
/third_party/openssl/apps/lib/
Ds_socket.c365 fd_set readfds; in do_server() local
406 FD_ZERO(&readfds); in do_server()
407 openssl_fdset(sock, &readfds); in do_server()
408 } while (select(sock + 1, &readfds, NULL, NULL, &timeout) > 0 in do_server()
/third_party/node/deps/openssl/openssl/apps/
Ds_client.c815 fd_set readfds, writefds; in s_client_main() local
892 FD_ZERO(&readfds); in s_client_main()
897 __msan_unpoison(&readfds, sizeof(readfds)); in s_client_main()
2369 FD_ZERO(&readfds); in s_client_main()
2370 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2383 && select(width, (void *)&readfds, NULL, NULL, in s_client_main()
2723 FD_ZERO(&readfds); in s_client_main()
2778 openssl_fdset(fileno_stdin(), &readfds); in s_client_main()
2785 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2791 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
[all …]
/third_party/openssl/apps/
Ds_client.c815 fd_set readfds, writefds; in s_client_main() local
892 FD_ZERO(&readfds); in s_client_main()
897 __msan_unpoison(&readfds, sizeof(readfds)); in s_client_main()
2369 FD_ZERO(&readfds); in s_client_main()
2370 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2383 && select(width, (void *)&readfds, NULL, NULL, in s_client_main()
2723 FD_ZERO(&readfds); in s_client_main()
2778 openssl_fdset(fileno_stdin(), &readfds); in s_client_main()
2785 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
2791 openssl_fdset(SSL_get_fd(con), &readfds); in s_client_main()
[all …]
/third_party/curl/lib/
Damigaos.c182 int Curl_amiga_select(int nfds, fd_set *readfds, fd_set *writefds, in Curl_amiga_select() argument
185 int r = WaitSelect(nfds, readfds, writefds, errorfds, timeout, 0); in Curl_amiga_select()
/third_party/libwebsockets/lib/plat/windows/
Dwindows-sockets.c66 fd_set readfds; in lws_poll_listen_fd() local
71 FD_ZERO(&readfds); in lws_poll_listen_fd()
72 FD_SET(fd->fd, &readfds); in lws_poll_listen_fd()
74 return select(((int)fd->fd) + 1, &readfds, NULL, NULL, &tv); in lws_poll_listen_fd()
/third_party/libcoap/man/
Dcoap_io.txt.in153 done on all the file descriptors (COAP_WANT_READ for readfds etc.), and any
284 fd_set readfds;
303 FD_ZERO(&readfds);
304 /* Set up readfds and nfds to handle other non libcoap FDs */
311 int result = coap_io_process_with_fds(ctx, wait_ms, nfds, &readfds, NULL, NULL);
373 fd_set readfds = m_readfds;
376 result = select (nfds, &readfds, NULL, NULL, NULL);
384 if (FD_ISSET(coap_fd, &readfds)) {

12