Home | History | Annotate | Download | only in toolbox

Lines Matching refs:ufds

35 static struct pollfd *ufds;
363 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
368 ufds = new_ufds;
404 ufds[nfds].fd = fd;
405 ufds[nfds].events = POLLIN;
422 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
612 ufds = calloc(1, sizeof(ufds[0]));
613 ufds[0].fd = inotify_init();
614 ufds[0].events = POLLIN;
626 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
641 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw);
656 poll(ufds, nfds, -1);
658 if(ufds[0].revents & POLLIN) {
659 read_notify(device_path, ufds[0].fd, print_flags);
662 if(ufds[i].revents) {
663 if(ufds[i].revents & POLLIN) {
664 res = read(ufds[i].fd, &event, sizeof(event));