Home
last modified time | relevance | path

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

123456789

/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.c202 what |= POLLIN|POLLOUT; in poll_dispatch()
203 if (what & POLLIN) in poll_dispatch()
267 pfd->events |= POLLIN; in poll_add()
297 pfd->events &= ~POLLIN; in poll_del()
/external/curl/lib/
Dselect.c194 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check()
200 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check()
240 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
247 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
463 ufds[i].revents |= POLLIN; in Curl_poll()
465 ufds[i].revents |= (POLLIN|POLLOUT); in Curl_poll()
480 if(ufds[i].events & (POLLIN|POLLOUT|POLLPRI| in Curl_poll()
484 if(ufds[i].events & (POLLRDNORM|POLLIN)) in Curl_poll()
553 ufds[i].revents |= POLLIN; in Curl_poll()
Dselect.h40 !defined(POLLIN)
42 #define POLLIN 0x01 macro
59 #define POLLRDNORM 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/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/python/cpython3/Lib/test/
Dtest_poll.py44 p.modify(rd, select.POLLIN)
62 ready_readers = find_ready_matching(ready, select.POLLIN)
129 pollster.register( p, select.POLLIN )
141 elif flags & select.POLLIN:
191 pollster.register(fd, select.POLLIN)
215 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, 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()
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/libusb/libusb/os/
Dlinux_udev.c168 .events = POLLIN}, in linux_udev_event_thread_main()
170 .events = POLLIN}, in linux_udev_event_thread_main()
176 if (fds[0].revents & POLLIN) { in linux_udev_event_thread_main()
184 if (fds[1].revents & POLLIN) { in linux_udev_event_thread_main()
Dlinux_netlink.c362 .events = POLLIN }, in linux_netlink_event_thread_main()
364 .events = POLLIN }, in linux_netlink_event_thread_main()
372 if (fds[0].revents & POLLIN) { in linux_netlink_event_thread_main()
379 if (fds[1].revents & POLLIN) { in linux_netlink_event_thread_main()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc162 pollfds[0].events = POLLIN; in Run()
165 pollfds[1].events = POLLIN; in Run()
191 assert(POLLIN & revents); in ClientEvent()
289 assert(POLLIN & revents); in ControlEvent()
/external/adhd/cras/src/server/
Dcras_server.c556 pollfds[0].events = POLLIN; in cras_server_run()
561 pollfds[num_pollfds].events = POLLIN; in cras_server_run()
569 pollfds[num_pollfds].events = POLLIN; in cras_server_run()
600 if (pollfds[0].revents & POLLIN) in cras_server_run()
604 if (elm->pollfd && elm->pollfd->revents & POLLIN) in cras_server_run()
610 (client_cb->pollfd->revents & POLLIN)) in cras_server_run()
/external/libkmsxx/utils/
Dwbm2m.cpp114 fds[0].events = POLLIN; in main()
116 fds[1].events = POLLIN; in main()
118 fds[2].events = POLLIN; in main()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c64 {.fd = fildes[0], .events = POLLIN}, in verify_pollin()
76 if (infds[0].revents != POLLIN) { in verify_pollin()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_rx.c60 pfd.events = POLLIN; in do_poll()
70 if (pfd.revents != POLLIN) in do_poll()
72 pfd.revents, POLLIN); in do_poll()
/external/toybox/toys/net/
Dmicrocom.c56 fds[0].events = POLLIN; in microcom_main()
58 fds[1].events = POLLIN; in microcom_main()
/external/toybox/lib/
Dnet.c95 pollfds[0].events = pollfds[1].events = POLLIN; in pollinate()
104 if (pollfds[i].revents & POLLIN) { in pollinate()
154 pfd.events = POLLIN; in xrecvwait()
/external/toybox/toys/other/
Dwatch.c87 pfd[0].events = pfd[1].events = POLLIN; in watch_main()
137 if (pfd[0].revents&POLLIN) { in watch_main()
146 if (pfd[1].revents&POLLIN) len = read(fds[1], toybuf, sizeof(toybuf)-1); in watch_main()

123456789