Searched refs:pollfds (Results 1 – 2 of 2) sorted by relevance
80 if (!pollfds) { in fpm_event_poll_init()88 pollfds[i].fd = -1; in fpm_event_poll_init()94 free(pollfds); in fpm_event_poll_init()112 if (pollfds) { in fpm_event_poll_clean()113 free(pollfds); in fpm_event_poll_clean()114 pollfds = NULL; in fpm_event_poll_clean()204 if (pollfds[i].fd != -1) { in fpm_event_poll_add()210 pollfds[i].fd = ev->fd; in fpm_event_poll_add()211 pollfds[i].events = POLLIN; in fpm_event_poll_add()260 pollfds[i].fd = -1; in fpm_event_poll_remove()[all …]
50 static struct pollfd *pollfds = NULL; variable87 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()88 if (!pollfds) { in fpm_event_devpoll_init()92 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init()96 pollfds[i].fd = -1; in fpm_event_devpoll_init()102 free(pollfds); in fpm_event_devpoll_init()127 if (pollfds) { in fpm_event_devpoll_clean()128 free(pollfds); in fpm_event_devpoll_clean()129 pollfds = NULL; in fpm_event_devpoll_clean()
Completed in 6 milliseconds