/third_party/musl/libc-test/src/functionalext/supplement/select/ |
D | select.c | 42 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/ |
D | fs_select.c | 96 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/ |
D | select_var.h | 21 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()
|
D | select04.c | 29 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()
|
D | select01.c | 26 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()
|
D | select03.c | 29 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/ |
D | eventfd01.c | 292 fd_set readfds; in readfd_set_test() local 296 FD_ZERO(&readfds); in readfd_set_test() 297 FD_SET(fd, &readfds); in readfd_set_test() 306 ret = select(fd + 1, &readfds, NULL, NULL, &timeout); in readfd_set_test() 313 if (FD_ISSET(fd, &readfds)) in readfd_set_test() 326 fd_set readfds; in readfd_not_set_test() local 329 FD_ZERO(&readfds); in readfd_not_set_test() 330 FD_SET(fd, &readfds); in readfd_not_set_test() 338 ret = select(fd + 1, &readfds, NULL, NULL, &timeout); in readfd_not_set_test() 345 if (!FD_ISSET(fd, &readfds)) in readfd_not_set_test() [all …]
|
/third_party/rust/crates/nix/src/sys/ |
D | select.rs | 178 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/ |
D | asapi_02.c | 118 fd_set readfds, readfds_saved; in ic6_recv1() local 133 memcpy(&readfds, &readfds_saved, sizeof(readfds)); in ic6_recv1() 143 nfds = select(maxfd + 1, &readfds, 0, 0, &tv); in ic6_recv1() 151 if (FD_ISSET(sall, &readfds)) { in ic6_recv1() 162 if (FD_ISSET(sf, &readfds)) { in ic6_recv1() 173 memcpy(&readfds, &readfds_saved, sizeof(readfds)); in ic6_recv1()
|
/third_party/musl/Benchmark/musl/ |
D | libc_select.cpp | 29 fd_set readfds, writefds; 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/ |
D | pselect01.c | 14 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()
|
D | pselect03.c | 23 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()
|
D | pselect02.c | 24 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/ |
D | init_utils_run.c | 143 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/ |
D | freertos-service.c | 130 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()
|
D | freertos-sockets.c | 71 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/openssl/apps/lib/ |
D | s_socket.c | 365 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/ |
D | s_client.c | 815 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 …]
|
D | s_server.c | 2328 fd_set readfds; in sv_body() local 2526 FD_ZERO(&readfds); in sv_body() 2528 openssl_fdset(fileno_stdin(), &readfds); in sv_body() 2530 openssl_fdset(s, &readfds); in sv_body() 2547 i = select(width, (void *)&readfds, NULL, NULL, &timeout); in sv_body() 2558 i = select(width, (void *)&readfds, NULL, NULL, timeoutp); in sv_body() 2565 if (FD_ISSET(fileno_stdin(), &readfds)) in sv_body() 2568 if (FD_ISSET(s, &readfds)) in sv_body() 3047 fd_set readfds; in www_body() local 3188 FD_ZERO(&readfds); in www_body() [all …]
|
/third_party/libcoap/man/ |
D | coap_io.txt.in | 132 done on all the file descriptors (COAP_WANT_READ for readfds etc.), and any 233 fd_set readfds; 249 FD_ZERO(&readfds); 250 /* Set up readfds and nfds to handle other non libcoap FDs */ 257 int result = coap_io_process_with_fds(ctx, wait_ms, nfds, &readfds, NULL, NULL); 314 fd_set readfds = m_readfds; 317 result = select (nfds, &readfds, NULL, NULL, NULL); 325 if (FD_ISSET(coap_fd, &readfds)) {
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstpoll.c | 468 pollfd_to_fd_set (GstPoll * set, fd_set * readfds, fd_set * writefds, in pollfd_to_fd_set() argument 474 FD_ZERO (readfds); in pollfd_to_fd_set() 485 FD_SET (pfd->fd, readfds); in pollfd_to_fd_set() 501 fd_set_to_pollfd (GstPoll * set, fd_set * readfds, fd_set * writefds, in fd_set_to_pollfd() argument 513 if (FD_ISSET (pfd->fd, readfds)) in fd_set_to_pollfd() 1507 fd_set readfds; in gst_poll_wait() local 1512 max_fd = pollfd_to_fd_set (set, &readfds, &writefds, &errorfds); in gst_poll_wait() 1526 res = select (max_fd + 1, &readfds, &writefds, &errorfds, tvptr); in gst_poll_wait() 1542 pselect (max_fd + 1, &readfds, &writefds, &errorfds, tsptr, NULL); in gst_poll_wait() 1548 fd_set_to_pollfd (set, &readfds, &writefds, &errorfds); in gst_poll_wait()
|
/third_party/libwebsockets/lib/plat/windows/ |
D | windows-sockets.c | 66 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/src/ |
D | coap_io.c | 1379 static fd_set readfds, writefds, exceptfds; local 1385 fd_set readfds, writefds, exceptfds; 1413 readfds = *ereadfds; 1417 FD_ZERO(&readfds); 1437 FD_SET(sockets[i]->fd, &readfds); 1442 FD_SET(sockets[i]->fd, &readfds); 1460 result = select((int)nfds, &readfds, &writefds, &exceptfds, timeout > 0 ? &tv : NULL); 1478 if ((sockets[i]->flags & COAP_SOCKET_WANT_READ) && FD_ISSET(sockets[i]->fd, &readfds)) 1481 if ((sockets[i]->flags & COAP_SOCKET_WANT_ACCEPT) && FD_ISSET(sockets[i]->fd, &readfds)) 1494 *ereadfds = readfds;
|
D | coap_gnutls.c | 1990 fd_set readfds, writefds, exceptfds; in receive_timeout() local 2001 FD_ZERO(&readfds); in receive_timeout() 2004 FD_SET (c_session->sock.fd, &readfds); in receive_timeout() 2013 return select(nfds, &readfds, &writefds, &exceptfds, &tv); in receive_timeout()
|
/third_party/libcoap/include/coap3/ |
D | net.h | 596 int nfds, fd_set *readfds, fd_set *writefds,
|