Home | History | Annotate | Download | only in debuggerd

Lines Matching full:ufds

31 static struct pollfd* ufds;
69 new_ufds = reinterpret_cast<pollfd*>(realloc(ufds, sizeof(ufds[0]) * (nfds + 1)));
74 ufds = new_ufds;
82 ufds[nfds].fd = fd;
83 ufds[nfds].events = POLLIN;
97 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
170 ufds = reinterpret_cast<pollfd*>(calloc(1, sizeof(ufds[0])));
171 ufds[0].fd = inotify_init();
172 ufds[0].events = POLLIN;
174 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
188 close(ufds[i].fd);
190 free(ufds);
191 ufds = 0;
201 pollres = poll(ufds, nfds, timeout);
205 if (ufds[0].revents & POLLIN) {
206 read_notify(device_path, ufds[0].fd);
209 if (ufds[i].revents) {
210 if (ufds[i].revents & POLLIN) {
211 res = read(ufds[i].fd, event, sizeof(*event));