/third_party/ltp/testcases/network/lib6/ |
H A D | asapi_01.c | 380 int sd, nfds, maxfd, cc; in csum_test() local 409 while ((nfds = select(maxfd + 1, &rset, 0, 0, &tv)) >= 0) { in csum_test() 410 if (nfds < 0) { in csum_test() 414 } else if (nfds == 0) { in csum_test()
|
/third_party/toybox/toys/pending/ |
H A D | syslogd.c | 408 int nfds, retval, last_len=0; in syslogd_main() local 438 nfds = 0; in syslogd_main() 454 nfds++; in syslogd_main() 456 if (!nfds) { in syslogd_main()
|
/third_party/lwip/src/api/ |
H A D | sockets.c | 2265 * @param nfds number of structures in fds 2270 lwip_pollscan(struct pollfd *fds, nfds_t nfds, enum lwip_pollscan_opts opts) in lwip_pollscan() argument 2278 for (fdi = 0; fdi < nfds; fdi++) { in lwip_pollscan() 2361 lwip_poll_inc_sockets_used(struct pollfd *fds, nfds_t nfds) in lwip_poll_inc_sockets_used() argument 2367 for (fdi = 0; fdi < nfds; fdi++) { in lwip_poll_inc_sockets_used() 2376 lwip_poll_dec_sockets_used(struct pollfd *fds, nfds_t nfds) in lwip_poll_dec_sockets_used() argument 2382 for (fdi = 0; fdi < nfds; fdi++) { in lwip_poll_dec_sockets_used() 2391 #define lwip_poll_inc_sockets_used(fds, nfds) 2392 #define lwip_poll_dec_sockets_used(fds, nfds) 2396 lwip_poll(struct pollfd *fds, nfds_t nfds, in argument [all...] |
/third_party/libcoap/src/ |
H A D | coap_io.c | 1617 coap_fd_t nfds = 0; local 1638 nfds = enfds; 1644 nfds = enfds; 1650 nfds = enfds; 1655 if (ctx->sockets[i]->fd + 1 > nfds) 1656 nfds = ctx->sockets[i]->fd + 1; 1680 result = select((int)nfds, &ctx->readfds, &ctx->writefds, &ctx->exceptfds, 1751 nfds = epoll_wait(ctx->epfd, events, COAP_MAX_EPOLL_EVENTS, etimeout); 1752 if (nfds < 0) { 1755 coap_socket_strerror(), nfds); [all...] |
/third_party/pulseaudio/src/pulse/ |
H A D | mainloop.h | 127 typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
|
H A D | thread-mainloop.c | 60 static int poll_func(struct pollfd *ufds, unsigned long nfds, int timeout, void *userdata) { in poll_func() argument 70 r = pa_poll(ufds, nfds, timeout); in poll_func()
|
/third_party/libuv/src/unix/ |
H A D | loop.c | 71 loop->nfds = 0; in uv_loop_init() 214 assert(loop->nfds == 0); in uv__loop_close()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
H A D | epoll.rs | 225 let nfds = epoll_wait( in wait() 231 event_list.events.set_len(nfds); in wait()
|
/third_party/node/deps/cares/src/tools/ |
H A D | adig.c | 848 int nfds; in event_loop() local 857 nfds = ares_fds(channel, &read_fds, &write_fds); in event_loop() 858 if (nfds == 0) { in event_loop() 865 count = select(nfds, &read_fds, &write_fds, NULL, tvp); in event_loop()
|
/third_party/curl/tests/server/ |
H A D | sockfilt.c | 627 static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, in select_ws() argument 640 if(nfds < 0) { in select_ws() 654 if(!nfds) { in select_ws() 667 data = calloc(nfds, sizeof(struct select_ws_data)); in select_ws() 675 handles = calloc(nfds + 1, sizeof(HANDLE)); in select_ws() 687 for(fd = 0; fd < nfds; fd++) { in select_ws() 795 /* we allocated handles nfds + 1 for this */ in select_ws() 867 for(fd = 0; fd < nfds; fd++) { in select_ws()
|
/third_party/curl/lib/ |
H A D | select.h | 84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms);
|
/third_party/alsa-lib/src/control/ |
H A D | control_ext.c | 453 static int snd_ctl_ext_poll_revents(snd_ctl_t *handle, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) in snd_ctl_ext_poll_revents() argument 458 return ext->callback->poll_revents(ext, pfds, nfds, revents); in snd_ctl_ext_poll_revents() 459 if (nfds == 1) { in snd_ctl_ext_poll_revents()
|
H A D | control_local.h | 58 int (*poll_revents)(snd_ctl_t *handle, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
/third_party/ltp/include/ |
H A D | time64_variants.h | 50 int (*ppoll)(struct pollfd *fds, nfds_t nfds, void *tmo_p,
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_generic.c | 70 int snd_pcm_generic_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) in snd_pcm_generic_poll_revents() argument 73 return snd_pcm_poll_descriptors_revents(generic->slave, pfds, nfds, revents); in snd_pcm_generic_poll_revents()
|
H A D | pcm_generic.h | 120 int snd_pcm_generic_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
/third_party/alsa-lib/src/rawmidi/ |
H A D | ump.c | 168 * \param nfds count of poll descriptors 173 unsigned int nfds, unsigned short *revents) in snd_ump_poll_descriptors_revents() 175 return snd_rawmidi_poll_descriptors_revents(ump->rawmidi, pfds, nfds, in snd_ump_poll_descriptors_revents() 172 snd_ump_poll_descriptors_revents(snd_ump_t *ump, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) snd_ump_poll_descriptors_revents() argument
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
H A D | epoll.rs | 234 let nfds = ret_u32(c::epoll_wait( in wait() 240 event_list.events.set_len(nfds as usize); in wait()
|
/third_party/libcoap/examples/ |
H A D | oscore-interop-server.c | 584 int nfds = 0; in main() local 695 nfds = coap_fd + 1; in main() 719 result = select(nfds, &readfds, NULL, NULL, &tv); in main()
|
/third_party/lwip/src/include/lwip/ |
H A D | sockets.h | 604 int lwip_poll(struct pollfd *fds, nfds_t nfds, int timeout); 672 #define poll(fds,nfds,timeout) lwip_poll(fds,nfds,timeout)
|
/third_party/alsa-lib/include/ |
H A D | control_external.h | 253 int (*poll_revents)(snd_ctl_ext_t *ext, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
H A D | hwdep.h | 112 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
H A D | pcm_ioplug.h | 193 int (*poll_revents)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int nfds, unsigned short *revents);
|
H A D | ump.h | 29 int snd_ump_poll_descriptors_revents(snd_ump_t *ump, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
/third_party/rust/crates/nix/src/sys/ |
H A D | select.rs | 64 /// This can be used to calculate the `nfds` parameter of the [`select`] function. 162 /// * `nfds`: The highest file descriptor set in any of the passed `FdSet`s, plus 1. If `None`, this 177 nfds: N, in select() 195 let nfds = nfds.into().unwrap_or_else(|| { in select() 220 unsafe { libc::select(nfds, readfds, writefds, errorfds, timeout) }; in select() 241 /// * `nfds`: The highest file descriptor set in any of the passed `FdSet`s, plus 1. If `None`, this 259 pub fn pselect<'a, N, R, W, E, T, S>(nfds: N, in pselect() 279 let nfds = nfds in pselect() [all...] |