Home
last modified time | relevance | path

Searched refs:poll (Results 1 - 25 of 377) sorted by relevance

12345678910>>...16

/third_party/python/Lib/test/
H A Dtest_poll.py1 # Test case for the os.poll() function
18 select.poll
20 raise unittest.SkipTest("select.poll not defined")
34 # Basic functional test of poll object
35 # Create a bunch of pipe and test that poll works with them.
37 p = select.poll()
60 ready = p.poll()
67 ready = p.poll()
87 p = select.poll()
89 r = p.poll()
[all...]
H A Dtest_devpoll.py25 # Basic functional test of poll object
26 # Create a bunch of pipe and test that poll works with them.
51 ready = p.poll()
58 ready = p.poll()
79 pollster.poll(-1)
80 self.assertRaises(OverflowError, pollster.poll, -2)
81 self.assertRaises(OverflowError, pollster.poll, -1 << 31)
82 self.assertRaises(OverflowError, pollster.poll, -1 << 64)
84 pollster.poll(0)
85 pollster.poll(
[all...]
H A Dtest_epoll.py150 events = ep.poll(1, 4)
151 events2 = ep2.poll(0.9, 4)
156 ep2.poll(1, 4)
173 events = ep.poll(1, 4)
182 events = ep.poll(timeout=0.1, maxevents=4)
190 events = ep.poll(1.0, 4)
202 events = ep.poll(1, 4)
221 events = ep.poll(1, 4)
251 self.assertRaises(ValueError, epoll.poll, 1.0)
/third_party/skia/tests/
H A DMessageBusTest.cpp42 inbox1.poll(&messages); in DEF_TEST()
50 inbox1.poll(&messages); in DEF_TEST()
55 inbox1.poll(&messages); in DEF_TEST()
59 inbox2.poll(&messages); in DEF_TEST()
96 inbox1.poll(&messages); in DEF_TEST()
106 inbox1.poll(&messages); in DEF_TEST()
116 inbox1.poll(&messages); in DEF_TEST()
156 inbox1.poll(&messages); in DEF_TEST()
162 inbox2.poll(&messages); in DEF_TEST()
/third_party/node/test/wasi/c/
H A Dpoll.c2 #include <poll.h>
26 // Test poll() timeout behavior. in main()
29 ret = poll(fds, 1, 2000); in main()
41 ret = poll(fds, 2, -1); in main()
46 // Make a poll() call with duplicate file descriptors. in main()
52 ret = poll(fds, 2, -1); in main()
60 // zero. In the Node test suite, STDIN is not a TTY, and poll() returns one, in main()
61 // with revents = POLLHUP | POLLIN, except on AIX whose poll() does not in main()
64 ret = poll(fds, 1, 2000); in main()
/third_party/rust/crates/nix/test/
H A Dtest_poll.rs3 poll::{poll, PollFd, PollFlags},
25 let nfds = loop_while_eintr!(poll(&mut fds, 100)); in test_poll()
32 let nfds = poll(&mut fds, 100).unwrap(); in test_poll()
37 // ppoll(2) is the same as poll except for how it handles timeouts and signals.
38 // Repeating the test for poll(2) should be sufficient to check that our
48 use nix::poll::ppoll; in test_ppoll()
/third_party/curl/src/
H A Dtool_sleep.c33 # include <poll.h>
35 # include <sys/poll.h>
53 (void)poll((void *)0, 0, (int)ms); in tool_go_sleep()
/third_party/musl/porting/linux/user/include/
H A Dpoll.h10 #include <bits/poll.h>
37 int poll (struct pollfd *, nfds_t, int);
53 #include <fortify/poll.h>
/third_party/rust/crates/rustix/tests/net/
H A Dpoll.rs1 //! The same as v6.rs, but with `poll` calls.
5 use rustix::io::{poll, PollFd, PollFlags};
44 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in server()
54 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in server()
83 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in client()
90 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in client()
/third_party/musl/include/
H A Dpoll.h10 #include <bits/poll.h>
37 int poll (struct pollfd *, nfds_t, int);
54 #include <fortify/poll.h>
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dpoll.c16 #include <poll.h>
31 * @tc.desc : test poll normal condition
37 TEST(poll(NULL, 0, 1) == 0); in poll_0010()
44 * @tc.desc : test poll suppress compiler optimizations
65 poll(buf, fd_count, 0); in poll_0020()
81 * @tc.desc : test poll with buf's size greater than fd_count, return fd_count
105 int result = poll(buf, 1, 100); in poll_0030()
171 * @tc.desc : test poll with buf's size greater than fd_count, return fd_count
/third_party/rust/crates/rustix/tests/io/
H A Dpoll.rs3 use rustix::io::{poll, retry_on_intr};
16 // `poll` should say there's nothing ready to be read from the pipe. in test_poll()
17 let num = retry_on_intr(|| poll(&mut poll_fds, 0)).unwrap(); in test_poll()
25 // `poll` should now say there's data to be read. in test_poll()
26 let num = retry_on_intr(|| poll(&mut poll_fds, -1)).unwrap(); in test_poll()
43 let num = retry_on_intr(|| poll(&mut poll_fds, 0)).unwrap(); in test_poll()
/third_party/ltp/testcases/kernel/syscalls/poll/
H A Dpoll01.c9 * Check that poll() works for POLLOUT and POLLIN and that revents is set
16 #include <sys/poll.h>
30 TEST(poll(outfds, 1, -1)); in verify_pollout()
33 tst_res(TFAIL | TTERRNO, "poll() POLLOUT failed"); in verify_pollout()
38 tst_res(TFAIL | TTERRNO, "poll() failed to set POLLOUT"); in verify_pollout()
42 tst_res(TPASS, "poll() POLLOUT"); in verify_pollout()
56 TEST(poll(infds, 1, -1)); in verify_pollin()
59 tst_res(TFAIL | TTERRNO, "poll() POLLIN failed"); in verify_pollin()
64 tst_res(TFAIL, "poll() failed to set POLLIN"); in verify_pollin()
69 tst_res(TPASS, "poll() POLLI in verify_pollin()
[all...]
H A Dpoll02.c7 * Check that poll() timeouts correctly.
12 #include <sys/poll.h>
27 TEST(poll(pfds, 1, sleep_ms)); in sample_fn()
32 tst_res(TFAIL | TTERRNO, "poll() returned %li", TST_RET); in sample_fn()
54 .scall = "poll()",
/third_party/musl/libc-test/src/functionalext/supplement/select/
H A Dpoll_sup.c17 #include <poll.h>
65 int ret = poll(fds, 2, time_delay); in poll_0100()
67 t_error("%s poll failed\n", __func__); in poll_0100()
105 int result = poll(NULL, 1, 0); in poll_0200()
107 t_error("%s poll should be failed\n", __func__); in poll_0200()
/third_party/alsa-utils/axfer/
H A Dwaiter-poll.c3 // waiter-poll.c - Waiter for event notification by poll(2).
14 #include <poll.h>
26 err = poll(waiter->pfds, waiter->pfd_count, timeout_msec); in poll_wait_event()
/third_party/musl/src/select/
H A Dpoll.c1 #include <poll.h>
6 int poll(struct pollfd *fds, nfds_t n, int timeout) in poll() function
/third_party/musl/Benchmark/musl/
H A Dlibc_poll.cpp2 #include <poll.h>
11 perror("open poll"); in Bm_function_Poll()
19 benchmark::DoNotOptimize(poll(&pfd, 1, 0)); in Bm_function_Poll()
/third_party/musl/libc-test/src/functionalext/supplement/select/select_gtest/
H A Dselect_poll_test.cpp3 #include <poll.h>
15 * @tc.desc: This test verifies the behavior of the poll() function when passing an empty pollfd array and a timeout of
22 int emptyPoll = poll(nullptr, 0, 1); in HWTEST_F()
/third_party/musl/porting/uniproton/kernel/include/
H A Dpoll.h10 #include <bits/poll.h>
37 int poll (struct pollfd *, nfds_t, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dpoll.h10 #include <bits/poll.h>
37 int poll (struct pollfd *, nfds_t, int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dpoll.h10 #include <bits/poll.h>
37 int poll (struct pollfd *, nfds_t, int);
/third_party/ltp/testcases/kernel/syscalls/pidfd_open/
H A Dpidfd_open03.c10 * fork(). It then uses poll to monitor the file descriptor for process exit, as
13 #include <poll.h>
42 ready = poll(&pollfd, 1, -1); in run()
48 tst_res(TFAIL, "poll() returned %d", ready); in run()
/third_party/musl/libc-test/src/api/
H A Dpoll.c1 #include <poll.h>
24 {int(*p)(struct pollfd[],nfds_t,int) = poll;} in f()
/third_party/pulseaudio/src/pulsecore/
H A Dpoll.h26 #include <poll.h>
47 int fd; /* File descriptor to poll. */
61 #define pa_poll(fds,nfds,timeout) poll((fds),(nfds),(timeout))

Completed in 7 milliseconds

12345678910>>...16