Home
last modified time | relevance | path

Searched refs:revents (Results 1 - 25 of 284) sorted by relevance

12345678910>>...12

/third_party/node/test/wasi/c/
H A Dpoll.c27 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 in main()
[all...]
/third_party/curl/lib/
H A Dselect.c213 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 in Curl_poll()
[all...]
/third_party/rust/crates/rustix/tests/net/
H A Dpoll.rs45 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/alsa-utils/alsamixer/
H A Dmainloop.c77 unsigned short revents; in mainloop() local
103 pollfds[0].revents = 0; in mainloop()
109 if (pollfds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) in mainloop()
111 if (pollfds[0].revents & POLLIN) in mainloop()
114 err = snd_mixer_poll_descriptors_revents(mixer, &pollfds[1], nfds - 1, &revents); in mainloop()
117 if (revents & (POLLERR | POLLNVAL)) in mainloop()
119 else if (revents & POLLIN) in mainloop()
/third_party/pulseaudio/src/pulsecore/
H A Dpoll-posix.c154 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/libwebsockets/lib/roles/raw-proxy/
H A Dops-raw-proxy.c37 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/rust/crates/nix/src/
H A Dpoll.rs14 /// retrieved by calling [`revents()`](#method.revents) on the `PollFd`.
29 revents: PollFlags::empty().bits(),
36 pub fn revents(self) -> Option<PollFlags> { in revents() functions
37 PollFlags::from_bits(self.pollfd.revents) in revents()
43 /// Equivalent to `x.revents()? != PollFlags::empty()`.
47 Some(self.revents()? != PollFlags::empty()) in any()
53 /// Equivalent to `x.revents()? & x.events() == x.events()`.
57 Some(self.revents()? & self.events() == self.events()) in all()
115 /// [`PollFd::revents`](struc
[all...]
/third_party/rust/crates/rustix/tests/io/
H A Dpoll.rs19 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/libwebsockets/lib/roles/raw-file/
H A Dops-raw-file.c33 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/pulseaudio/src/utils/
H A Dpacmd.c274 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/libwebsockets/lib/core-net/
H A Dservice.c536 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()
666 /* not lws connection ... leave revents alone and return */ in lws_service_fd_tsi()
680 * zero down pollfd->revents after handling in lws_service_fd_tsi()
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 in lws_service_fd_tsi()
[all...]
/third_party/libwebsockets/lib/roles/raw-skt/
H A Dops-raw-skt.c91 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/pulseaudio/src/tests/
H A Dalsa-time-test.c159 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/libwebsockets/lib/plat/freertos/
H A Dfreertos-service.c139 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/libwebsockets/lib/event-libs/libev/
H A Dlibev.c33 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
[all...]
/third_party/libuv/src/unix/
H A Dposix-poll.c72 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()
289 pe->revents &= w->pevents | POLLERR | POLLHUP; in uv__io_poll()
291 if (pe->revents != 0) { in uv__io_poll()
297 w->cb(loop, w, pe->revents); in uv__io_poll()
358 loop->poll_fds[i].revents = 0; in uv__platform_invalidate_fd()
381 if (p[0].revents & POLLNVAL) in uv__io_check_fd()
H A Dkqueue.c138 unsigned int revents; in uv__io_poll() local
346 revents = 0; in uv__io_poll()
350 revents |= POLLIN; in uv__io_poll()
355 revents |= UV__POLLRDHUP; in uv__io_poll()
360 revents |= UV__POLLPRI; in uv__io_poll()
367 revents |= POLLOUT; in uv__io_poll()
373 revents |= POLLERR; in uv__io_poll()
375 if (revents == 0) in uv__io_poll()
385 w->cb(loop, w, revents); in uv__io_poll()
/third_party/node/deps/uv/src/unix/
H A Dposix-poll.c72 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()
H A Dkqueue.c117 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/alsa-utils/axfer/
H A Dwaiter-select.c85 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/rust/crates/nix/test/
H A Dtest_poll.rs27 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/musl/libc-test/src/functionalext/supplement/linux/
H A Dppoll.c34 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/rust/crates/rustix/src/backend/linux_raw/io/
H A Dpoll_fd.rs43 pub(crate) revents: u16,
62 self.revents = 0; in clear_revents()
75 revents: 0, in from_borrowed_fd()
81 pub fn revents(&self) -> PollFlags { in revents() functions
84 PollFlags::from_bits(self.revents).unwrap() in revents()
/third_party/libwebsockets/lib/event-libs/libevent/
H A Dlibevent.c103 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/roles/h1/
H A Dops-h1.c342 if (!(pollfd->revents & pollfd->events & LWS_POLLIN)) in lws_h1_server_socket_service()
353 (pollfd->revents & pollfd->events & LWS_POLLOUT)) { in lws_h1_server_socket_service()
473 if (pollfd->revents & LWS_POLLOUT) in lws_h1_server_socket_service()
484 if (pollfd->revents & LWS_POLLOUT) in lws_h1_server_socket_service()
491 if (!(pollfd->revents & LWS_POLLOUT)) in lws_h1_server_socket_service()
576 // lwsl_notice("%s: %p: wsistate 0x%x %s, revents 0x%x\n", in rops_handle_POLLIN_h1()
578 // pollfd->revents); in rops_handle_POLLIN_h1()
586 if (wsi->http.cgi && (pollfd->revents & LWS_POLLOUT)) { in rops_handle_POLLIN_h1()
639 if (pollfd->revents & LWS_POLLHUP && in rops_handle_POLLIN_h1()
649 !!(pollfd->revents in rops_handle_POLLIN_h1()
[all...]

Completed in 16 milliseconds

12345678910>>...12