Lines Matching refs:nfds
38 static int nfds; variable
362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
368 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()
376 printf("add device %d: %s\n", nfds, device); in open_device()
403 ufds[nfds].fd = fd; in open_device()
404 ufds[nfds].events = POLLIN; in open_device()
405 device_names[nfds] = strdup(device); in open_device()
406 nfds++; in open_device()
414 for(i = 1; i < nfds; i++) { in close_device()
416 int count = nfds - i - 1; in close_device()
422 nfds--; in close_device()
613 nfds = 1; in getevent_main()
641 for(i = 1; i < nfds; i++) { in getevent_main()
658 poll(ufds, nfds, -1); in getevent_main()
663 for(i = 1; i < nfds; i++) { in getevent_main()