/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/curl/lib/ |
D | select.c | 213 pfd[num].revents = 0; in Curl_socket_check() 219 pfd[num].revents = 0; in Curl_socket_check() 225 pfd[num].revents = 0; in Curl_socket_check() 236 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check() 238 if(pfd[num].revents & (POLLPRI|POLLNVAL)) in Curl_socket_check() 243 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check() 245 if(pfd[num].revents & (POLLPRI|POLLNVAL)) in Curl_socket_check() 250 if(pfd[num].revents & (POLLWRNORM|POLLOUT)) in Curl_socket_check() 252 if(pfd[num].revents & (POLLERR|POLLHUP|POLLPRI|POLLNVAL)) in Curl_socket_check() 328 if(ufds[i].revents & POLLHUP) in Curl_poll() [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 | 274 if (watch_stdin->revents & POLLIN) { in main() 289 } else if (watch_stdin->revents & POLLHUP) in main() 294 if (watch_socket->revents & POLLIN) { in main() 309 } else if (watch_socket->revents & POLLHUP) in main() 314 if (watch_stdout->revents & POLLHUP) { in main() 317 } else if (watch_stdout->revents & POLLOUT) { in main() 332 if (watch_socket->revents & POLLHUP) { in main() 335 } 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/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/libuv/src/unix/ |
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/node/deps/uv/src/unix/ |
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()
|
/third_party/libwebsockets/lib/roles/raw-skt/ |
D | ops-raw-skt.c | 91 if (!(pollfd->revents & LWS_POLLOUT)) 114 !!(pollfd->revents & pollfd->events & LWS_POLLIN))) 121 if ((pollfd->revents & pollfd->events & LWS_POLLIN) && 123 (pollfd->revents & pollfd->events & LWS_POLLOUT))) { 229 (pollfd->revents & pollfd->events & LWS_POLLOUT)) 235 if (!(pollfd->revents & LWS_POLLOUT))
|
/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/curl/docs/examples/ |
D | evhiperfifo.c | 117 static void timer_cb(EV_P_ struct ev_timer *w, int revents); 202 static void event_cb(EV_P_ struct ev_io *w, int revents) in event_cb() argument 204 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in event_cb() 208 int action = ((revents & EV_READ) ? CURL_POLL_IN : 0) | in event_cb() 209 ((revents & EV_WRITE) ? CURL_POLL_OUT : 0); in event_cb() 220 static void timer_cb(EV_P_ struct ev_timer *w, int revents) in timer_cb() argument 222 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in timer_cb() 372 static void fifo_cb(EV_P_ struct ev_io *w, int revents) in fifo_cb() argument
|
/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()
|