Lines Matching refs:nfds
58 int nfds; /* Size of event_* */
126 for (i = 0; i < pop->nfds; ++i) {
138 int res, i, j, msec = -1, nfds;
146 nfds = pop->nfds;
147 res = poll(pop->event_set, nfds, msec);
163 if (res == 0 || nfds == 0)
166 i = random() % nfds;
167 for (j = 0; j < nfds; j++) {
170 if (++i == nfds)
217 if (pop->nfds + 1 >= pop->event_count) {
283 i = pop->nfds++;
345 --pop->nfds;
346 if (i != pop->nfds) {
351 memcpy(&pop->event_set[i], &pop->event_set[pop->nfds],
353 pop->event_r_back[i] = pop->event_r_back[pop->nfds];
354 pop->event_w_back[i] = pop->event_w_back[pop->nfds];