Home
last modified time | relevance | path

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

/PHP-8.1/sapi/fpm/fpm/events/
H A Dpoll.c77 if (!pollfds) { in fpm_event_poll_init()
85 pollfds[i].fd = -1; in fpm_event_poll_init()
91 free(pollfds); in fpm_event_poll_init()
108 if (pollfds) { in fpm_event_poll_clean()
109 free(pollfds); in fpm_event_poll_clean()
110 pollfds = NULL; in fpm_event_poll_clean()
199 if (pollfds[i].fd != -1) { in fpm_event_poll_add()
205 pollfds[i].fd = ev->fd; in fpm_event_poll_add()
206 pollfds[i].events = POLLIN; in fpm_event_poll_add()
255 pollfds[i].fd = -1; in fpm_event_poll_remove()
[all …]
H A Ddevpoll.c48 static struct pollfd *pollfds = NULL; variable
84 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()
85 if (!pollfds) { in fpm_event_devpoll_init()
89 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init()
93 pollfds[i].fd = -1; in fpm_event_devpoll_init()
99 free(pollfds); in fpm_event_devpoll_init()
124 if (pollfds) { in fpm_event_devpoll_clean()
125 free(pollfds); in fpm_event_devpoll_clean()
126 pollfds = NULL; in fpm_event_devpoll_clean()

Completed in 8 milliseconds