Lines Matching full:poll
26 #include <poll.h>
37 * poll system call and the DP_POLL ioctl on /dev/poll.
45 * java.nio.channels.Selector select logic is implemented via /dev/poll.
46 * The selector opens /dev/poll, writes the file descriptors it wants to
51 * according to man poll.7d the ioctl should block until events are ready,
64 * the implementation for poll.2 as well.
76 * blocked processing a poll request or a DP_POLL ioctl. The test spawns
79 * a second thread that issues poll / DP_POLL on an fd set that will
168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); in poll_wrapper()
170 ret = poll(fds, nfds, timeout); in poll_wrapper()
174 debug_log("POLL end: (0x%p, %d, %d) returns %d (elapse=%d)\n", in poll_wrapper()
227 * TEST: poll with no FDs set, verify we wait the appropriate amount of time.
237 test_start(testName, "poll for %d sec with no fds\n", timeout); in poll_no_fd_test()
242 test_failed(testName, "POLL returns %d (expected 0)\n", ret); in poll_no_fd_test()
254 * TEST: POLL with a valid FD set, verify that we wait the appropriate amount
270 test_start(testName, "poll for %d sec with fds\n", timeout); in poll_with_fds_test()
275 test_failed(testName, "POLL returns %d (expected 0)\n", ret); in poll_with_fds_test()
298 test_start(testName, "poll for %d sec with no fds\n", timeout); in dev_poll_no_fd_test()
327 test_start(testName, "poll for %d sec with fds\n", timeout); in dev_poll_with_fds_test()
375 pollfd = open("/dev/poll", O_RDWR); in poll_thread()
378 perror("Failed to open /dev/poll: "); in poll_thread()
523 (void) printf("Failed to create poll thread: %s", in run_tests()