/third_party/rust/crates/nix/test/ |
H A D | test_poll.rs | 22 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_poll() 27 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_poll() 34 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_poll() 54 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_ppoll() 60 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_ppoll() 67 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_ppoll() 80 let mut pfd = PollFd::new(-1, PollFlags::POLLIN); in test_pollfd_events() 81 assert_eq!(pfd.events(), PollFlags::POLLIN); in test_pollfd_events()
|
/third_party/musl/libc-test/src/functionalext/fortify/ |
H A D | poll.c | 55 struct pollfd buf[1] = {{0, POLLIN, 0}}; in poll_0020() 104 struct pollfd buf[2] = {{fd[0], POLLIN, 0}, {fd[0], POLLIN, 0}}; in poll_0030() 143 struct pollfd buf[1] = {{0, POLLIN, 0}}; in ppoll_0020() 195 struct pollfd buf[2] = {{fd[0], POLLIN, 0}, {fd[0], POLLIN, 0}}; in ppoll_0030()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | poll-posix.c | 93 if (f->events & POLLIN) in pa_poll() 99 if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI))) in pa_poll() 131 if (f->events & POLLIN) in pa_poll() 137 if (f->events & (POLLIN|POLLOUT|POLLPRI)) { in pa_poll() 144 if (f->events & POLLIN) in pa_poll() 150 if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI))) in pa_poll() 165 if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI))) { in pa_poll() 220 f->revents |= POLLIN; in pa_poll()
|
H A D | poll-win32.c | 182 happened |= *p_sought & (POLLIN | POLLRDNORM); in windows_compute_revents() 220 *p_sought &= POLLIN | POLLRDNORM; in windows_compute_revents() 260 happened |= (POLLIN | POLLRDNORM) & sought; in windows_compute_revents_socket() 273 happened |= (POLLIN | POLLRDNORM) & sought; in windows_compute_revents_socket() 325 happened |= (POLLIN | POLLRDNORM) & sought; in compute_revents() 334 happened |= (POLLIN | POLLRDNORM) & sought; in compute_revents() 422 if (pfd[i].events & (POLLIN | POLLRDNORM)) in pa_poll() 433 && (pfd[i].events & (POLLIN | POLLOUT | POLLPRI in pa_poll() 495 if (!(sought & (POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLWRBAND in pa_poll() 506 if (sought & (POLLIN | POLLRDNOR in pa_poll() [all...] |
/third_party/curl/lib/ |
H A D | select.c | 212 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check() 218 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check() 236 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check() 243 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check() 329 ufds[i].revents |= POLLIN; in Curl_poll() 331 ufds[i].revents |= POLLIN|POLLOUT; in Curl_poll() 346 if(ufds[i].events & (POLLIN|POLLOUT|POLLPRI| in Curl_poll() 350 if(ufds[i].events & (POLLRDNORM|POLLIN)) in Curl_poll() 381 if(ufds[i].events & POLLIN) in Curl_poll() 382 ufds[i].revents |= POLLIN; in Curl_poll() [all...] |
H A D | select.h | 41 !defined(POLLIN) 43 #define POLLIN 0x01 macro 60 #define POLLRDNORM POLLIN
|
/third_party/node/test/wasi/c/ |
H A D | poll.c | 50 fds[3] = (struct pollfd){.fd = 1, .events = POLLIN, .revents = 0}; in main() 61 // with revents = POLLHUP | POLLIN, except on AIX whose poll() does not in main() 63 fds[0] = (struct pollfd){.fd = 0, .events = POLLIN, .revents = 0}; in main() 68 assert(fds[0].revents == POLLIN); in main() 70 assert(fds[0].revents == (POLLHUP | POLLIN)); in main()
|
/third_party/libuv/src/unix/ |
H A D | poll.c | 48 uv__io_stop(loop, w, POLLIN | POLLOUT | UV__POLLRDHUP | UV__POLLPRI); in uv__poll_io() 55 if (events & POLLIN) in uv__poll_io() 106 POLLIN | POLLOUT | UV__POLLRDHUP | UV__POLLPRI); in uv__poll_stop() 142 events |= POLLIN; in uv_poll_start()
|
H A D | kqueue.c | 175 if ((w->events & POLLIN) == 0 && (w->pevents & POLLIN) != 0) { in uv__io_poll() 338 assert(w->events == POLLIN); in uv__io_poll() 339 assert(w->pevents == POLLIN); in uv__io_poll() 349 if (w->pevents & POLLIN) in uv__io_poll() 350 revents |= POLLIN; in uv__io_poll() 405 loop->signal_io_watcher.cb(loop, &loop->signal_io_watcher, POLLIN); in uv__io_poll() 587 uv__io_start(handle->loop, &handle->event_watcher, POLLIN); in uv_fs_event_start()
|
H A D | stream.c | 173 if (uv__io_active(&stream->io_watcher, POLLIN)) in uv__stream_osx_select() 216 events |= POLLIN; in uv__stream_osx_select() 247 assert(events == (events & (POLLIN | POLLOUT))); in uv__stream_osx_select_cb() 250 if ((events & POLLIN) && uv__io_active(&stream->io_watcher, POLLIN)) in uv__stream_osx_select_cb() 251 uv__stream_io(stream->loop, &stream->io_watcher, POLLIN); in uv__stream_osx_select_cb() 456 assert(!uv__io_active(&stream->io_watcher, POLLIN | POLLOUT)); in uv__stream_destroy() 514 assert(events & POLLIN); in uv__server_io() 532 uv__io_stop(loop, &stream->io_watcher, POLLIN); in uv__server_io() 595 uv__io_start(server->loop, &server->io_watcher, POLLIN); in uv_accept() [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | poll.c | 48 uv__io_stop(loop, w, POLLIN | POLLOUT | UV__POLLRDHUP | UV__POLLPRI); in uv__poll_io() 55 if (events & POLLIN) in uv__poll_io() 106 POLLIN | POLLOUT | UV__POLLRDHUP | UV__POLLPRI); in uv__poll_stop() 142 events |= POLLIN; in uv_poll_start()
|
H A D | stream.c | 163 if (uv__io_active(&stream->io_watcher, POLLIN)) in uv__stream_osx_select() 206 events |= POLLIN; in uv__stream_osx_select() 237 assert(events == (events & (POLLIN | POLLOUT))); in uv__stream_osx_select_cb() 240 if ((events & POLLIN) && uv__io_active(&stream->io_watcher, POLLIN)) in uv__stream_osx_select_cb() 241 uv__stream_io(stream->loop, &stream->io_watcher, POLLIN); in uv__stream_osx_select_cb() 446 assert(!uv__io_active(&stream->io_watcher, POLLIN | POLLOUT)); in uv__stream_destroy() 510 assert(events & POLLIN); in uv__server_io() 514 uv__io_start(stream->loop, &stream->io_watcher, POLLIN); in uv__server_io() 551 uv__io_stop(loop, &stream->io_watcher, POLLIN); in uv__server_io() [all...] |
H A D | kqueue.c | 153 if ((w->events & POLLIN) == 0 && (w->pevents & POLLIN) != 0) { in uv__io_poll() 323 assert(w->events == POLLIN); in uv__io_poll() 324 assert(w->pevents == POLLIN); in uv__io_poll() 334 if (w->pevents & POLLIN) { in uv__io_poll() 335 revents |= POLLIN; in uv__io_poll() 408 loop->signal_io_watcher.cb(loop, &loop->signal_io_watcher, POLLIN); in uv__io_poll() 569 uv__io_start(handle->loop, &handle->event_watcher, POLLIN); in uv_fs_event_start()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | ppoll.c | 34 struct pollfd pollfds[] = {{.fd = fd, .events = POLLIN, .revents = 0}}; in ppoll_0100() 41 EXPECT_EQ("ppoll_0100", pollfds[0].revents, POLLIN); in ppoll_0100() 57 struct pollfd pollfds[] = {{.fd = -1, .events = POLLIN, .revents = 0}}; in ppoll_0200()
|
/third_party/python/Lib/test/ |
H A D | test_poll.py | 50 p.modify(rd, select.POLLIN) 68 ready_readers = find_ready_matching(ready, select.POLLIN) 134 pollster.register( p, select.POLLIN ) 146 elif flags & select.POLLIN: 196 pollster.register(fd, select.POLLIN) 220 pollster.register(r, select.POLLIN)
|
H A D | test_devpoll.py | 41 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)
|
/third_party/skia/third_party/externals/tint/src/utils/io/ |
H A D | command_posix.cc | 200 poll_fds[0].events = POLLIN; in Exec() 202 poll_fds[1].events = POLLIN; in Exec() 212 if (poll_fds[0].revents & POLLIN) { in Exec() 221 if (poll_fds[1].revents & POLLIN) { in Exec()
|
/third_party/libwebsockets/include/libwebsockets/ |
H A D | lws-freertos.h | 39 * protected by the same test as used here... if POLLIN / POLLOUT already exist 45 #if !defined(POLLIN) && !defined(POLLOUT) 52 #define POLLIN 0x0001 macro
|
/third_party/alsa-utils/alsamixer/ |
H A D | mainloop.c | 95 pollfds[0].events = POLLIN; in mainloop() 111 if (pollfds[0].revents & POLLIN) in mainloop() 119 else if (revents & POLLIN) in mainloop()
|
/third_party/alsa-utils/axfer/ |
H A D | waiter-select.c | 21 # define POLLIN_SET (POLLRDNORM | POLLRDBAND | POLLIN | POLLHUP) 25 # define POLLIN_SET (POLLIN | POLLHUP) 87 pfd->revents |= POLLIN; in select_wait_event()
|
/third_party/alsa-utils/seq/aseqnet/ |
H A D | aseqnet.c | 248 counti = seqifds_count = snd_seq_poll_descriptors_count(handle, POLLIN); in init_seq() 256 err = snd_seq_poll_descriptors(handle, seqifds, counti, POLLIN); in init_seq() 495 pollfds[width].events = POLLIN; in do_loop() 502 pollfds[width].events = POLLIN; in do_loop() 514 if (pollfds[sockfd_ptr].revents & (POLLIN|POLLOUT)) in do_loop() 518 if (pollfds[seqifd_ptr + i].revents & (POLLIN|POLLOUT)) { in do_loop() 526 if (pollfds[netfd_ptr + i].revents & (POLLIN|POLLOUT)) { in do_loop()
|
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/ |
H A D | fortify_poll_chk_test.cpp | 27 fds[0].events = POLLIN; in HWTEST_F() 41 fds[0].events = POLLIN; in HWTEST_F()
|
/third_party/ltp/testcases/kernel/syscalls/poll/ |
H A D | poll01.c | 9 * Check that poll() works for POLLOUT and POLLIN and that revents is set 51 {.fd = fildes[0], .events = POLLIN}, in verify_pollin() 59 tst_res(TFAIL | TTERRNO, "poll() POLLIN failed"); in verify_pollin() 63 if (infds[0].revents != POLLIN) { in verify_pollin() 64 tst_res(TFAIL, "poll() failed to set POLLIN"); in verify_pollin() 69 tst_res(TPASS, "poll() POLLIN"); in verify_pollin()
|
/third_party/toybox/toys/net/ |
H A D | microcom.c | 56 fds[0].events = POLLIN; in microcom_main() 58 fds[1].events = POLLIN; in microcom_main()
|
/third_party/toybox/lib/ |
H A D | net.c | 105 pollfds[0].events = pollfds[1].events = POLLIN; in pollinate() 114 if (pollfds[i].revents & POLLIN) { in pollinate() 164 pfd.events = POLLIN; in xrecvwait()
|