Searched refs:pollfds (Results 1 – 2 of 2) sorted by relevance
696 struct pollfd pollfds[2] = {}; in os_poll() local700 if (n > ARRAY_SIZE(pollfds)) in os_poll()704 pollfds[i].fd = fds[i]; in os_poll()705 pollfds[i].events = POLLIN; in os_poll()708 ret = poll(pollfds, n, -1); in os_poll()714 if (pollfds[i].revents) in os_poll()
904 struct pollfd pollfds[2]; in main() local968 pollfds[0].fd = fd; in main()969 pollfds[0].events = POLLIN; in main()970 pollfds[1].fd = STDIN_FILENO; in main()971 pollfds[1].events = POLLIN; in main()979 poll(pollfds, 2, -1); in main()980 if (pollfds[1].revents) { in main()990 if (pollfds[0].revents) in main()