Home
last modified time | relevance | path

Searched refs:ufds (Results 1 – 1 of 1) sorted by relevance

/system/core/toolbox/
Dgetevent.c36 static struct pollfd *ufds; variable
362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
367 ufds = new_ufds; in open_device()
403 ufds[nfds].fd = fd; in open_device()
404 ufds[nfds].events = POLLIN; in open_device()
421 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); in close_device()
614 ufds = calloc(1, sizeof(ufds[0])); in getevent_main()
615 ufds[0].fd = inotify_init(); in getevent_main()
616 ufds[0].events = POLLIN; in getevent_main()
628 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main()
[all …]