/third_party/node/test/wasi/c/ |
D | poll.c | 27 fds[0] = (struct pollfd){.fd = -1, .events = 0, .revents = 0}; in main() 38 fds[0] = (struct pollfd){.fd = 1, .events = POLLOUT, .revents = 0}; in main() 39 fds[1] = (struct pollfd){.fd = 2, .events = POLLOUT, .revents = 0}; in main() 43 assert(fds[0].revents == POLLOUT); in main() 44 assert(fds[1].revents == POLLOUT); in main() 47 fds[0] = (struct pollfd){.fd = 1, .events = POLLOUT, .revents = 0}; in main() 48 fds[1] = (struct pollfd){.fd = 2, .events = POLLOUT, .revents = 0}; in main() 49 fds[2] = (struct pollfd){.fd = 1, .events = POLLOUT, .revents = 0}; in main() 50 fds[3] = (struct pollfd){.fd = 1, .events = POLLIN, .revents = 0}; in main() 54 assert(fds[0].revents == POLLOUT); in main() [all …]
|
/third_party/alsa-utils/alsamixer/ |
D | mainloop.c | 74 unsigned short revents; in mainloop() local 100 pollfds[0].revents = 0; in mainloop() 106 if (pollfds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) in mainloop() 108 if (pollfds[0].revents & POLLIN) in mainloop() 111 err = snd_mixer_poll_descriptors_revents(mixer, &pollfds[1], nfds - 1, &revents); in mainloop() 114 if (revents & (POLLERR | POLLNVAL)) in mainloop() 116 else if (revents & POLLIN) in mainloop()
|
/third_party/pulseaudio/src/pulsecore/ |
D | poll-posix.c | 154 f->revents |= POLLNVAL; in pa_poll() 193 f->revents = 0; in pa_poll() 208 f->revents |= POLLHUP; in pa_poll() 214 f->revents |= POLLHUP; in pa_poll() 219 if (f->revents == 0) in pa_poll() 220 f->revents |= POLLIN; in pa_poll() 223 f->revents |= POLLOUT; in pa_poll() 225 f->revents |= POLLPRI; in pa_poll() 227 if (f->revents) in pa_poll()
|
/third_party/rust/crates/rustix/tests/net/ |
D | poll.rs | 45 assert!(fds[0].revents().intersects(PollFlags::IN)); in server() 46 assert!(!fds[0].revents().intersects(PollFlags::OUT)); in server() 55 assert!(!fds[0].revents().intersects(PollFlags::IN)); in server() 56 assert!(fds[0].revents().intersects(PollFlags::OUT)); in server() 84 assert!(!fds[0].revents().intersects(PollFlags::IN)); in client() 85 assert!(fds[0].revents().intersects(PollFlags::OUT)); in client() 91 assert!(fds[0].revents().intersects(PollFlags::IN)); in client() 92 assert!(!fds[0].revents().intersects(PollFlags::OUT)); in client()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | poll_fd.rs | 43 pub(crate) revents: u16, field 62 self.revents = 0; in clear_revents() 75 revents: 0, in from_borrowed_fd() 81 pub fn revents(&self) -> PollFlags { in revents() method 84 PollFlags::from_bits(self.revents).unwrap() in revents()
|
/third_party/rust/crates/rustix/tests/io/ |
D | poll.rs | 19 assert!(poll_fds[0].revents().is_empty()); in test_poll() 28 assert_eq!(poll_fds[0].revents(), PollFlags::IN); in test_poll() 32 assert_eq!(temp.revents(), PollFlags::IN); in test_poll() 34 assert!(temp.revents().is_empty()); in test_poll() 45 assert!(poll_fds[0].revents().is_empty()); in test_poll()
|
/third_party/pulseaudio/src/utils/ |
D | pacmd.c | 273 if (watch_stdin->revents & POLLIN) { in main() 288 } else if (watch_stdin->revents & POLLHUP) in main() 293 if (watch_socket->revents & POLLIN) { in main() 308 } else if (watch_socket->revents & POLLHUP) in main() 313 if (watch_stdout->revents & POLLHUP) { in main() 316 } else if (watch_stdout->revents & POLLOUT) { in main() 331 if (watch_socket->revents & POLLHUP) { in main() 334 } else if (watch_socket->revents & POLLOUT) { in main()
|
/third_party/rust/crates/nix/src/ |
D | poll.rs | 29 revents: PollFlags::empty().bits(), in new() 36 pub fn revents(self) -> Option<PollFlags> { in revents() method 37 PollFlags::from_bits(self.pollfd.revents) in revents() 47 Some(self.revents()? != PollFlags::empty()) in any() 57 Some(self.revents()? & self.events() == self.events()) in all()
|
/third_party/libwebsockets/lib/roles/raw-file/ |
D | ops-raw-file.c | 33 if (pollfd->revents & LWS_POLLOUT) { in rops_handle_POLLIN_raw_file() 43 if (pollfd->revents & LWS_POLLIN) { in rops_handle_POLLIN_raw_file() 52 if (pollfd->revents & LWS_POLLHUP) in rops_handle_POLLIN_raw_file() 53 if (!(pollfd->revents & LWS_POLLIN)) in rops_handle_POLLIN_raw_file()
|
/third_party/libwebsockets/lib/event-libs/libev/ |
D | libev.c | 33 lws_ev_hrtimer_cb(struct ev_loop *loop, struct ev_timer *watcher, int revents) in lws_ev_hrtimer_cb() argument 51 lws_ev_idle_cb(struct ev_loop *loop, struct ev_idle *handle, int revents) in lws_ev_idle_cb() argument 88 lws_accept_cb(struct ev_loop *loop, struct ev_io *watcher, int revents) in lws_accept_cb() argument 98 if (revents & EV_ERROR) in lws_accept_cb() 103 eventfd.revents = EV_NONE; in lws_accept_cb() 105 if (revents & EV_READ) { in lws_accept_cb() 107 eventfd.revents |= LWS_POLLIN; in lws_accept_cb() 109 if (revents & EV_WRITE) { in lws_accept_cb() 111 eventfd.revents |= LWS_POLLOUT; in lws_accept_cb() 124 lws_ev_sigint_cb(struct ev_loop *loop, struct ev_signal *watcher, int revents) in lws_ev_sigint_cb() argument
|
/third_party/libuv/src/unix/ |
D | os390-syscalls.c | 225 lst->items[lst->size - 1].revents = 0; in epoll_create1() 263 lst->items[fd].revents = 0; in epoll_ctl() 271 lst->items[fd].revents = 0; in epoll_ctl() 329 if (pfd->fd == -1 || pfd->revents == 0) in epoll_wait() 333 ev.events = pfd->revents; in epoll_wait() 335 if (pfd->revents & POLLIN && pfd->revents & POLLOUT) in epoll_wait() 337 else if (pfd->revents & (POLLIN | POLLOUT)) in epoll_wait() 340 pfd->revents = 0; in epoll_wait() 344 if (msg_fd.revents != 0 && msg_fd.fd != -1) in epoll_wait()
|
D | posix-poll.c | 72 loop->poll_fds[i].revents = 0; in uv__pollfds_maybe_resize() 117 loop->poll_fds[loop->poll_fds_used].revents = 0; in uv__pollfds_del() 280 pe->revents &= w->pevents | POLLERR | POLLHUP; in uv__io_poll() 282 if (pe->revents != 0) { in uv__io_poll() 288 w->cb(loop, w, pe->revents); in uv__io_poll() 347 loop->poll_fds[i].revents = 0; in uv__platform_invalidate_fd() 370 if (p[0].revents & POLLNVAL) in uv__io_check_fd()
|
D | kqueue.c | 117 unsigned int revents; in uv__io_poll() local 331 revents = 0; in uv__io_poll() 335 revents |= POLLIN; in uv__io_poll() 346 revents |= UV__POLLRDHUP; in uv__io_poll() 351 revents |= UV__POLLPRI; in uv__io_poll() 365 revents |= POLLOUT; in uv__io_poll() 378 revents |= POLLERR; in uv__io_poll() 380 if (revents == 0) in uv__io_poll() 390 w->cb(loop, w, revents); in uv__io_poll()
|
/third_party/libwebsockets/lib/roles/raw-skt/ |
D | ops-raw-skt.c | 40 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_skt() 63 !!(pollfd->revents & pollfd->events & LWS_POLLIN))) in rops_handle_POLLIN_raw_skt() 70 if ((pollfd->revents & pollfd->events & LWS_POLLIN) && in rops_handle_POLLIN_raw_skt() 72 (pollfd->revents & pollfd->events & LWS_POLLOUT))) { in rops_handle_POLLIN_raw_skt() 170 (pollfd->revents & pollfd->events & LWS_POLLOUT)) in rops_handle_POLLIN_raw_skt() 176 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_skt()
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | poll_fd.rs | 68 .field("revents", &self.pollfd.revents) in fmt() 89 self.pollfd.revents = 0; in clear_revents() 103 revents: 0, in from_borrowed_fd() 111 pub fn revents(&self) -> PollFlags { in revents() method 114 PollFlags::from_bits(self.pollfd.revents).unwrap() in revents()
|
/third_party/libwebsockets/lib/roles/raw-proxy/ |
D | ops-raw-proxy.c | 37 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy() 54 if ((pollfd->revents & pollfd->events & LWS_POLLIN) && in rops_handle_POLLIN_raw_proxy() 58 (pollfd->revents & pollfd->events & LWS_POLLOUT))) { in rops_handle_POLLIN_raw_proxy() 102 (pollfd->revents & pollfd->events & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy() 108 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy()
|
/third_party/libwebsockets/lib/core-net/ |
D | service.c | 536 pfd.revents = LWS_POLLIN; in lws_service_do_ripe_rxflow() 615 pt->fds[wsi->position_in_fds_table].revents = (short)( in lws_service_flag_pending() 616 pt->fds[wsi->position_in_fds_table].revents | in lws_service_flag_pending() 619 if (pt->fds[wsi->position_in_fds_table].revents & in lws_service_flag_pending() 690 if ((pollfd->revents & LWS_POLLHUP) == LWS_POLLHUP) { in lws_service_fd_tsi() 693 if (!(pollfd->revents & pollfd->events & LWS_POLLIN)) { in lws_service_fd_tsi() 720 if (pollfd->revents & LWS_POLLOUT) in lws_service_fd_tsi() 740 if ((pollfd->revents & LWS_POLLOUT) == LWS_POLLOUT && in lws_service_fd_tsi() 750 pollfd->revents &= ~(LWS_POLLOUT); in lws_service_fd_tsi() 751 pollfd->revents |= LWS_POLLIN; in lws_service_fd_tsi() [all …]
|
/third_party/alsa-utils/axfer/ |
D | waiter-select.c | 85 pfd->revents = 0; in select_wait_event() 87 pfd->revents |= POLLIN; in select_wait_event() 89 pfd->revents |= POLLOUT; in select_wait_event() 91 pfd->revents |= POLLHUP; in select_wait_event()
|
/third_party/libwebsockets/lib/plat/freertos/ |
D | freertos-service.c | 139 pt->fds[n].revents = 0; in _lws_plat_service_tsi() 159 pt->fds[m].revents |= LWS_POLLIN; in _lws_plat_service_tsi() 163 pt->fds[m].revents |= LWS_POLLOUT; in _lws_plat_service_tsi() 168 pt->fds[m].revents |= LWS_POLLHUP; in _lws_plat_service_tsi() 198 if (!pt->fds[n].revents) in _lws_plat_service_tsi()
|
/third_party/pulseaudio/src/tests/ |
D | alsa-time-test.c | 159 unsigned short revents; in main() local 168 r = snd_pcm_poll_descriptors_revents(pcm, pollfds, n_pollfd, &revents); in main() 172 assert((revents & ~POLLOUT) == 0); in main() 174 assert((revents & ~POLLIN) == 0); in main() 193 assert(!revents || avail > 0); in main() 235 revents, in main()
|
/third_party/rust/crates/nix/test/ |
D | test_poll.rs | 27 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_poll() 34 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_poll() 60 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_ppoll() 67 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); in test_ppoll()
|
/third_party/libwebsockets/lib/event-libs/libevent/ |
D | libevent.c | 103 lws_event_cb(evutil_socket_t sock_fd, short revents, void *ctx) in lws_event_cb() argument 113 if (revents & EV_TIMEOUT) in lws_event_cb() 118 if (revents & EV_CLOSED) { in lws_event_cb() 127 eventfd.revents = 0; in lws_event_cb() 128 if (revents & EV_READ) { in lws_event_cb() 130 eventfd.revents |= LWS_POLLIN; in lws_event_cb() 132 if (revents & EV_WRITE) { in lws_event_cb() 134 eventfd.revents |= LWS_POLLOUT; in lws_event_cb() 161 lws_event_sigint_cb(evutil_socket_t sock_fd, short revents, void *ctx) in lws_event_sigint_cb() argument
|
/third_party/libwebsockets/lib/event-libs/uloop/ |
D | uloop.c | 96 lws_uloop_cb(struct uloop_fd *ufd, unsigned int revents) in lws_uloop_cb() argument 106 eventfd.revents = 0; in lws_uloop_cb() 108 if (revents & ULOOP_READ) { in lws_uloop_cb() 110 eventfd.revents = LWS_POLLIN; in lws_uloop_cb() 112 if (revents & ULOOP_WRITE) { in lws_uloop_cb() 114 eventfd.revents |= LWS_POLLOUT; in lws_uloop_cb()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
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/libwebsockets/lib/roles/h1/ |
D | ops-h1.c | 340 if (!(pollfd->revents & pollfd->events & LWS_POLLIN)) in lws_h1_server_socket_service() 351 (pollfd->revents & pollfd->events & LWS_POLLOUT)) { in lws_h1_server_socket_service() 471 if (pollfd->revents & LWS_POLLOUT) in lws_h1_server_socket_service() 482 if (pollfd->revents & LWS_POLLOUT) in lws_h1_server_socket_service() 489 if (!(pollfd->revents & LWS_POLLOUT)) in lws_h1_server_socket_service() 584 if (wsi->http.cgi && (pollfd->revents & LWS_POLLOUT)) { in rops_handle_POLLIN_h1() 637 if (pollfd->revents & LWS_POLLHUP && in rops_handle_POLLIN_h1() 647 !!(pollfd->revents & LWS_POLLIN))) in rops_handle_POLLIN_h1() 655 if ((pollfd->revents & LWS_POLLIN) && in rops_handle_POLLIN_h1() 693 if ((pollfd->revents & LWS_POLLOUT) && in rops_handle_POLLIN_h1() [all …]
|