Lines Matching defs:nfds
2265 * @param nfds number of structures in fds
2270 lwip_pollscan(struct pollfd *fds, nfds_t nfds, enum lwip_pollscan_opts opts)
2278 for (fdi = 0; fdi < nfds; fdi++) {
2361 lwip_poll_inc_sockets_used(struct pollfd *fds, nfds_t nfds)
2367 for (fdi = 0; fdi < nfds; fdi++) {
2376 lwip_poll_dec_sockets_used(struct pollfd *fds, nfds_t nfds)
2382 for (fdi = 0; fdi < nfds; fdi++) {
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, int timeout)
2406 (void*)fds, (int)nfds, timeout));
2407 LWIP_ERROR("lwip_poll: invalid fds", ((fds != NULL && nfds > 0) || (fds == NULL && nfds == 0)),
2410 lwip_poll_inc_sockets_used(fds, nfds);
2414 nready = lwip_pollscan(fds, nfds, LWIP_POLLSCAN_CLEAR);
2417 lwip_poll_dec_sockets_used(fds, nfds);
2429 API_SELECT_CB_VAR_ALLOC(select_cb, set_errno(EAGAIN); lwip_poll_dec_sockets_used(fds, nfds); return -1);
2438 API_SELECT_CB_VAR_REF(select_cb).poll_nfds = nfds;
2445 lwip_poll_dec_sockets_used(fds, nfds);
2456 nready = lwip_pollscan(fds, nfds, LWIP_POLLSCAN_INC_WAIT);
2476 nready = lwip_pollscan(fds, nfds, LWIP_POLLSCAN_DEC_WAIT);
2492 lwip_poll_dec_sockets_used(fds, nfds);
2505 lwip_poll_dec_sockets_used(fds, nfds);