Home
last modified time | relevance | path

Searched refs:nfds (Results 51 - 75 of 131) sorted by relevance

123456

/third_party/ltp/testcases/network/lib6/
H A Dasapi_01.c380 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 Dsyslogd.c408 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 Dsockets.c2265 * @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 Dcoap_io.c1617 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 Dmainloop.h127 typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
H A Dthread-mainloop.c60 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 Dloop.c71 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 Depoll.rs225 let nfds = epoll_wait( in wait()
231 event_list.events.set_len(nfds); in wait()
/third_party/node/deps/cares/src/tools/
H A Dadig.c848 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 Dsockfilt.c627 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 Dselect.h84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms);
/third_party/alsa-lib/src/control/
H A Dcontrol_ext.c453 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 Dcontrol_local.h58 int (*poll_revents)(snd_ctl_t *handle, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
/third_party/ltp/include/
H A Dtime64_variants.h50 int (*ppoll)(struct pollfd *fds, nfds_t nfds, void *tmo_p,
/third_party/alsa-lib/src/pcm/
H A Dpcm_generic.c70 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 Dpcm_generic.h120 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 Dump.c168 * \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 Depoll.rs234 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 Doscore-interop-server.c584 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 Dsockets.h604 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 Dcontrol_external.h253 int (*poll_revents)(snd_ctl_ext_t *ext, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
H A Dhwdep.h112 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
H A Dpcm_ioplug.h193 int (*poll_revents)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int nfds, unsigned short *revents);
H A Dump.h29 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 Dselect.rs64 /// 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...]

Completed in 21 milliseconds

123456