Lines Matching refs:ndx
105 int ndx;
186 for (fd = 0, ndx = 0; fd < nfds; fd++)
199 pollset[ndx].fd = fd;
200 pollset[ndx].events |= (POLLIN | POLLRDNORM);
210 pollset[ndx].fd = fd;
211 pollset[ndx].events |= (POLLOUT | POLLWRNORM);
219 pollset[ndx].fd = fd;
223 ndx += incr;
226 DEBUGASSERT(ndx == npfds);
269 for (ndx = 0; ndx < npfds; ndx++)
279 if (pollset[ndx].revents & POLL_IN_SET)
281 FD_SET(pollset[ndx].fd, readfds);
290 if (pollset[ndx].revents & POLL_OUT_SET)
292 FD_SET(pollset[ndx].fd, writefds);
301 if (pollset[ndx].revents & POLL_EX_SET)
303 FD_SET(pollset[ndx].fd, exceptfds);