Lines Matching refs:nfds
266 add_pollfd(struct pollfd **ufds, int *nfds, int connfd)
271 for (ii = 0; ii < *nfds; ii++) {
276 if (ii == *nfds) {
278 (*nfds+1)*sizeof(struct pollfd));
280 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1);
285 (*nfds)++;
296 adj_pollfds(struct pollfd **ufds, int *nfds)
301 for (ii = 0; ii < *nfds; ii++) {
308 *nfds = jj;
312 process_events(struct pollfd **ufds, int *nfds)
317 for (ii = 0; ii < *nfds; ii++) {
330 if (add_pollfd(ufds, nfds, connfd)) {
377 adj_pollfds(ufds, nfds);
389 int nfds = 1;
416 ret = poll(ufds, nfds, -1);
425 ret = process_events(&ufds, &nfds);