Home | History | Annotate | Download | only in toolbox

Lines Matching refs:ufds

16 static struct pollfd *ufds;
338 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
343 ufds = new_ufds;
379 ufds[nfds].fd = fd;
380 ufds[nfds].events = POLLIN;
397 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
589 ufds = calloc(1, sizeof(ufds[0]));
590 ufds[0].fd = inotify_init();
591 ufds[0].events = POLLIN;
603 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
618 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw);
632 pollres = poll(ufds, nfds, -1);
634 if(ufds[0].revents & POLLIN) {
635 read_notify(device_path, ufds[0].fd, print_flags);
638 if(ufds[i].revents) {
639 if(ufds[i].revents & POLLIN) {
640 res = read(ufds[i].fd, &event, sizeof(event));