Searched refs:pollfds (Results 1 – 3 of 3) sorted by relevance
174 struct pollfd pollfds[2]; in main() local201 pollfds[0].fd = signals[0]; in main()202 pollfds[0].events = POLLIN; in main()203 pollfds[1].fd = the_socket; in main()204 pollfds[1].events = POLLIN; in main()207 if (poll(pollfds, 2, timeout ? timeout : -1) == -1 && errno != EINTR) { in main()211 if (pollfds[0].revents) { in main()214 timeout = pollfds[1].revents ? in main()
228 static struct pollfd pollfds[MAX_POLLFDS]; variable1371 if (poll(pollfds, n_pollfds, t) < 0 && errno != EINTR)1384 if (pollfds[n].fd == fd)1387 pollfds[n_pollfds].fd = fd;1388 pollfds[n_pollfds].events = POLLIN | POLLPRI | POLLHUP;1403 if (pollfds[n].fd == fd) {1405 pollfds[n-1] = pollfds[n];
2884 changed pollfds, unlock context.4207 * gmain.c (g_source_destroy_internal): Remove pollfds