Lines Matching refs:nfds
16 static int nfds;
165 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
171 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1));
179 printf("add device %d: %s\n", nfds, device);
199 ufds[nfds].fd = fd;
200 ufds[nfds].events = POLLIN;
201 device_names[nfds] = strdup(device);
202 nfds++;
210 for(i = 1; i < nfds; i++) {
212 int count = nfds - i - 1;
218 nfds--;
393 nfds = 1;
420 for(i = 1; i < nfds; i++) {
436 pollres = poll(ufds, nfds, -1);
437 //printf("poll %d, returned %d\n", nfds, pollres);
441 for(i = 1; i < nfds; i++) {