Searched refs:pollfds (Results 1 – 2 of 2) sorted by relevance
82 if (!pollfds) { in fpm_event_poll_init()90 pollfds[i].fd = -1; in fpm_event_poll_init()96 free(pollfds); in fpm_event_poll_init()114 if (pollfds) { in fpm_event_poll_clean()115 free(pollfds); in fpm_event_poll_clean()116 pollfds = NULL; in fpm_event_poll_clean()206 if (pollfds[i].fd != -1) { in fpm_event_poll_add()212 pollfds[i].fd = ev->fd; in fpm_event_poll_add()213 pollfds[i].events = POLLIN; in fpm_event_poll_add()262 pollfds[i].fd = -1; in fpm_event_poll_remove()[all …]
52 static struct pollfd *pollfds = NULL; variable89 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()90 if (!pollfds) { in fpm_event_devpoll_init()94 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init()98 pollfds[i].fd = -1; in fpm_event_devpoll_init()104 free(pollfds); in fpm_event_devpoll_init()129 if (pollfds) { in fpm_event_devpoll_clean()130 free(pollfds); in fpm_event_devpoll_clean()131 pollfds = NULL; in fpm_event_devpoll_clean()
Completed in 7 milliseconds