Lines Matching refs:nfds
37 static int nfds;
363 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
369 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1));
377 printf("add device %d: %s\n", nfds, device);
404 ufds[nfds].fd = fd;
405 ufds[nfds].events = POLLIN;
406 device_names[nfds] = strdup(device);
407 nfds++;
415 for(i = 1; i < nfds; i++) {
417 int count = nfds - i - 1;
423 nfds--;
611 nfds = 1;
639 for(i = 1; i < nfds; i++) {
656 poll(ufds, nfds, -1);
657 //printf("poll %d, returned %d\n", nfds, pollres);
661 for(i = 1; i < nfds; i++) {