Home
last modified time | relevance | path

Searched refs:POLLIN (Results 1 – 25 of 256) sorted by relevance

1234567891011

/external/grpc-grpc/test/core/iomgr/
Dwakeup_fd_cv_test.cc67 GPR_ASSERT(fds[0].events == (POLLIN | POLLHUP)); in mock_poll()
68 GPR_ASSERT(fds[1].events == (POLLIN | POLLHUP)); in mock_poll()
69 GPR_ASSERT(fds[2].events == POLLIN); in mock_poll()
79 fds[0].revents = POLLIN; in mock_poll()
125 pfds[1].events = POLLIN; in test_poll_cv_trigger()
126 pfds[2].events = POLLIN | POLLHUP; in test_poll_cv_trigger()
127 pfds[3].events = POLLIN | POLLHUP; in test_poll_cv_trigger()
128 pfds[4].events = POLLIN; in test_poll_cv_trigger()
129 pfds[5].events = POLLIN; in test_poll_cv_trigger()
162 GPR_ASSERT(pfds[2].revents == POLLIN); in test_poll_cv_trigger()
[all …]
/external/libevent/
Ddevpoll.c207 what |= POLLIN | POLLOUT; in devpoll_dispatch()
209 what |= POLLIN | POLLOUT; in devpoll_dispatch()
211 if (what & POLLIN) in devpoll_dispatch()
243 res |= POLLIN; in devpoll_add()
262 res |= POLLIN; in devpoll_del()
276 if ((res & (POLLIN|POLLOUT)) != (POLLIN|POLLOUT)) { in devpoll_del()
282 if ((res & POLLIN) && (old & EV_WRITE)) { in devpoll_del()
287 devpoll_queue(devpollop, fd, POLLIN); in devpoll_del()
Dpoll.c213 what |= POLLIN|POLLOUT; in poll_dispatch()
214 if (what & POLLIN) in poll_dispatch()
280 pfd->events |= POLLIN; in poll_add()
312 pfd->events &= ~POLLIN; in poll_del()
/external/rust/crates/nix/test/
Dtest_poll.rs23 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_poll()
28 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_poll()
35 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_poll()
53 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_ppoll()
59 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_ppoll()
66 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_ppoll()
/external/curl/lib/
Dselect.c266 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check()
272 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check()
290 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
297 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
379 ufds[i].revents |= POLLIN; in Curl_poll()
381 ufds[i].revents |= POLLIN|POLLOUT; in Curl_poll()
396 if(ufds[i].events & (POLLIN|POLLOUT|POLLPRI| in Curl_poll()
400 if(ufds[i].events & (POLLRDNORM|POLLIN)) in Curl_poll()
427 if(ufds[i].events & POLLIN) in Curl_poll()
428 ufds[i].revents |= POLLIN; in Curl_poll()
Dselect.h40 !defined(POLLIN)
42 #define POLLIN 0x01 macro
59 #define POLLRDNORM POLLIN
/external/libusb/libusb/os/
Devents_posix.h34 #define USBI_EVENT_POLL_EVENTS POLLIN
41 #define USBI_EVENT_POLL_EVENTS POLLIN
51 #define USBI_TIMER_POLL_EVENTS POLLIN
/external/strace/xlat/
Dpollflags.h6 #if defined(POLLIN) || (defined(HAVE_DECL_POLLIN) && HAVE_DECL_POLLIN)
8 static_assert((POLLIN) == (0x0001), "POLLIN != 0x0001");
11 # define POLLIN 0x0001
166 XLAT(POLLIN),
/external/openssh/
Datomicio.c62 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio6()
64 pfd.events = POLLIN|POLLOUT; in atomicio6()
124 pfd.events = f == readv ? POLLIN : POLLOUT; in atomiciov6()
126 pfd.events = POLLIN|POLLOUT; in atomiciov6()
/external/adhd/cras/src/tests/
Dhfp_info_unittest.cc264 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
276 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
308 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
322 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
397 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
412 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
425 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
442 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
458 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
490 thread_cb((struct hfp_info*)cb_data, POLLIN); in TEST()
[all …]
/external/python/cpython2/Lib/test/
Dtest_poll.py46 p.modify(rd, select.POLLIN)
64 ready_readers = find_ready_matching(ready, select.POLLIN)
129 pollster.register( p, select.POLLIN )
141 elif flags & select.POLLIN:
192 pollster.register(fd, select.POLLIN)
216 pollster.register(r, select.POLLIN)
/external/libwebsockets/include/libwebsockets/
Dlws-freertos.h45 #if !defined(POLLIN) && !defined(POLLOUT)
52 #define POLLIN 0x0001 macro
/external/python/cpython3/Lib/test/
Dtest_poll.py44 p.modify(rd, select.POLLIN)
62 ready_readers = find_ready_matching(ready, select.POLLIN)
128 pollster.register( p, select.POLLIN )
140 elif flags & select.POLLIN:
190 pollster.register(fd, select.POLLIN)
214 pollster.register(r, select.POLLIN)
Dtest_devpoll.py41 p.modify(rd, select.POLLIN)
59 ready_readers = find_ready_matching(ready, select.POLLIN)
110 self.assertRaises(ValueError, devpoll.modify, fd, select.POLLIN)
112 self.assertRaises(ValueError, devpoll.register, fd, select.POLLIN)
/external/strace/tests-m32/
Dpoll.c62 PRINT_EVENT(POLLIN, events); in print_pollfd_entering()
129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting()
186 { .fd = 0, .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
188 { .fd = fds[0], .events = POLLIN | POLLPRI }, in main()
246 { .fd = 1, .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
Dppoll.c121 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
123 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main()
193 { .fd = pipe_fd[1], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
/external/strace/tests-mx32/
Dpoll.c62 PRINT_EVENT(POLLIN, events); in print_pollfd_entering()
129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting()
186 { .fd = 0, .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
188 { .fd = fds[0], .events = POLLIN | POLLPRI }, in main()
246 { .fd = 1, .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
Dppoll.c121 { .fd = pipe_fd[0], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
123 { .fd = pipe_fd[2], .events = POLLIN | POLLPRI }, in main()
193 { .fd = pipe_fd[1], .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
/external/strace/tests/
Dpoll.c62 PRINT_EVENT(POLLIN, events); in print_pollfd_entering()
129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting()
186 { .fd = 0, .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
188 { .fd = fds[0], .events = POLLIN | POLLPRI }, in main()
246 { .fd = 1, .events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND }, in main()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc165 pollfds[0].events = POLLIN; in Run()
168 pollfds[1].events = POLLIN; in Run()
194 assert(POLLIN & revents); in ClientEvent()
292 assert(POLLIN & revents); in ControlEvent()
/external/libiio/src/iiod/
Dops.c77 pfd[0].events = POLLIN; in thd_entry_event_wait()
81 pfd[2].events = POLLIN; in thd_entry_event_wait()
86 if ((pfd[1].revents & POLLRDHUP) || (pfd[2].revents & POLLIN)) { in thd_entry_event_wait()
164 pfd[0].events = POLLIN; in async_io()
167 pfd[1].events = POLLIN; in async_io()
174 if (pfd[0].revents & POLLIN) { in async_io()
191 } else if ((num_pfds > 1 && pfd[1].revents & POLLIN)) { in async_io()
202 } while (!(pfd[0].revents & POLLIN)); in async_io()
237 pfd[0].events = POLLIN | POLLRDHUP; in readfd_io()
240 pfd[1].events = POLLIN; in readfd_io()
[all …]
/external/igt-gpu-tools/tests/
Dvc4_dmabuf_poll.c48 .events = POLLIN, in poll_write_bo_test()
80 poll_write_bo_test(fd, POLLIN);
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c51 {.fd = fildes[0], .events = POLLIN}, in verify_pollin()
63 if (infds[0].revents != POLLIN) { in verify_pollin()
/external/adhd/cras/src/server/
Dcras_dbus.c25 pollfd.events = POLLIN | POLLOUT; in dbus_watch_callback()
32 if (pollfd.revents & POLLIN) in dbus_watch_callback()
52 POLLIN); in dbus_watch_add()
/external/linux-kselftest/tools/testing/selftests/pidfd/
Dpidfd_poll_test.c33 fds.events = POLLIN; in main()
98 if (!(fds.revents & POLLIN)) in main()

1234567891011