Lines Matching refs:fds
218 pollfd fds[nfds];
220 // N.B. these fds could be -1, which poll() should skip
221 memset(&fds, 0, sizeof(fds));
222 fds[0].fd = s->fHttpdServer->listen4_fd;
223 fds[0].events = POLLIN;
224 fds[1].fd = s->fHttpdServer->listen6_fd;
225 fds[1].events = POLLIN;
229 retval = poll(fds, nfds, -1);
233 return -1; // fds no longer available
237 if (fds[fdi].fd < 0) {
240 if ((fds[fdi].revents & POLLIN) != POLLIN) {
248 retval = httpd_get_conn(s->fHttpdServer, fds[fdi].fd, hc);