Home | History | Annotate | Download | only in debuggerd

Lines Matching refs:ufds

15 static struct pollfd *ufds;
57 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
62 ufds = new_ufds;
69 ufds[nfds].fd = fd;
70 ufds[nfds].events = POLLIN;
85 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
165 ufds = calloc(1, sizeof(ufds[0]));
166 ufds[0].fd = inotify_init();
167 ufds[0].events = POLLIN;
169 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
184 close(ufds[i].fd);
186 free(ufds);
187 ufds = 0;
198 pollres = poll(ufds, nfds, timeout);
202 if(ufds[0].revents & POLLIN) {
203 read_notify(device_path, ufds[0].fd);
206 if(ufds[i].revents) {
207 if(ufds[i].revents & POLLIN) {
208 res = read(ufds[i].fd, event, sizeof(*event));