Lines Matching refs:ndx
53 int ndx; in select() local
80 for (fd = 0, ndx = 0; fd < nfds; fd++) in select()
93 pollset[ndx].fd = fd; in select()
94 pollset[ndx].events |= POLLIN; in select()
100 pollset[ndx].fd = fd; in select()
101 pollset[ndx].events |= POLLOUT; in select()
107 pollset[ndx].fd = fd; in select()
111 ndx += incr; in select()
114 RT_ASSERT(ndx == npfds); in select()
151 for (ndx = 0; ndx < npfds; ndx++) in select()
161 if (pollset[ndx].revents & (POLLIN | POLLHUP)) in select()
163 FD_SET(pollset[ndx].fd, readfds); in select()
171 if (pollset[ndx].revents & POLLOUT) in select()
173 FD_SET(pollset[ndx].fd, writefds); in select()
181 if (pollset[ndx].revents & POLLERR) in select()
183 FD_SET(pollset[ndx].fd, exceptfds); in select()