Home | History | Annotate | Download | only in toolbox

Lines Matching full:ufds

36 static struct pollfd *ufds;
362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
367 ufds = new_ufds;
403 ufds[nfds].fd = fd;
404 ufds[nfds].events = POLLIN;
421 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
611 ufds = calloc(1, sizeof(ufds[0]));
612 ufds[0].fd = inotify_init();
613 ufds[0].events = POLLIN;
625 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
640 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw);
655 poll(ufds, nfds, -1);
657 if(ufds[0].revents & POLLIN) {
658 read_notify(device_path, ufds[0].fd, print_flags);
661 if(ufds[i].revents) {
662 if(ufds[i].revents & POLLIN) {
663 res = read(ufds[i].fd, &event, sizeof(event));