Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/third_party/node/test/wasi/c/
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 == POLLOUT); in main()
[all …]
/third_party/curl/lib/
Dselect.c270 pfd[num].revents = 0; in Curl_socket_check()
276 pfd[num].revents = 0; in Curl_socket_check()
282 pfd[num].revents = 0; in Curl_socket_check()
293 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
295 if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL)) in Curl_socket_check()
300 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
302 if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL)) in Curl_socket_check()
307 if(pfd[num].revents & (POLLWRNORM|POLLOUT)) in Curl_socket_check()
309 if(pfd[num].revents & (POLLERR|POLLHUP|POLLPRI|POLLNVAL)) in Curl_socket_check()
381 if(ufds[i].revents & POLLHUP) in Curl_poll()
[all …]
/third_party/alsa-utils/alsamixer/
Dmainloop.c74 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/
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-file/
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/glib/glib/
Dgpoll.c205 msg_fd->revents |= G_IO_IN; in poll_rest()
224 f->revents = f->events; in poll_rest()
341 f->revents = 0; in fill_poll_thread_data()
398 f->revents = 0; in g_poll()
470 msg_fd->revents |= G_IO_IN; in g_poll()
484 f->revents = 0; in g_poll()
540 f->revents = 0; in g_poll()
544 f->revents |= G_IO_IN; in g_poll()
546 f->revents |= G_IO_OUT; in g_poll()
548 f->revents |= G_IO_PRI; in g_poll()
Dgiowin32.c139 gushort revents; member
279 channel->revents = 0; in g_io_channel_win32_init()
377 channel->revents = G_IO_IN; in read_thread()
379 channel->revents |= G_IO_HUP; in read_thread()
381 channel->revents |= G_IO_ERR; in read_thread()
468 channel->revents = G_IO_OUT; in write_thread()
500 channel->revents = 0; in write_thread()
502 channel->revents |= G_IO_OUT; in write_thread()
504 channel->revents |= G_IO_ERR; in write_thread()
733 condition_to_string (watch->pollfd.revents), in g_io_win32_prepare()
[all …]
/third_party/libwebsockets/lib/roles/raw-skt/
Dops-raw-skt.c40 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/pulseaudio/src/utils/
Dpacmd.c273 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/libwebsockets/lib/roles/raw-proxy/
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/libuv/src/unix/
Dos390-syscalls.c225 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()
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()
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/libwebsockets/lib/event-libs/libev/
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
/third_party/alsa-utils/axfer/
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/libwebsockets/lib/plat/freertos/
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/core-net/
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()
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/pulseaudio/src/tests/
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/musl/libc-test/src/functionalext/supplement/linux/
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/curl/docs/examples/
Devhiperfifo.c115 static void timer_cb(EV_P_ struct ev_timer *w, int revents);
200 static void event_cb(EV_P_ struct ev_io *w, int revents) in event_cb() argument
202 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in event_cb()
206 int action = ((revents & EV_READ) ? CURL_POLL_IN : 0) | in event_cb()
207 ((revents & EV_WRITE) ? CURL_POLL_OUT : 0); in event_cb()
218 static void timer_cb(EV_P_ struct ev_timer *w, int revents) in timer_cb() argument
220 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in timer_cb()
370 static void fifo_cb(EV_P_ struct ev_io *w, int revents) in fifo_cb() argument
/third_party/libwebsockets/lib/event-libs/uloop/
Duloop.c96 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/libwebsockets/lib/event-libs/libevent/
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/glib/gio/
Dgunixoutputstream.c345 poll_fds[0].revents = poll_fds[1].revents = 0; in g_unix_output_stream_write()
365 if (!poll_fds[0].revents) in g_unix_output_stream_write()
452 poll_fds[0].revents = poll_fds[1].revents = 0; in g_unix_output_stream_writev()
472 if (!poll_fds[0].revents) in g_unix_output_stream_writev()
542 poll_fd.revents = 0; in g_unix_output_stream_pollable_is_writable()
548 return poll_fd.revents != 0; in g_unix_output_stream_pollable_is_writable()
/third_party/libwebsockets/lib/roles/h1/
Dops-h1.c340 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 …]
/third_party/libwebsockets/lib/event-libs/glib/
Dglib.c119 eventfd.revents = (short)cond; in lws_glib_dispatch()
124 eventfd.revents |= LWS_POLLIN; in lws_glib_dispatch()
126 eventfd.revents |= LWS_POLLOUT; in lws_glib_dispatch()
128 eventfd.revents |= LWS_POLLHUP; in lws_glib_dispatch()
130 eventfd.revents |= LWS_POLLHUP; in lws_glib_dispatch()
132 eventfd.events = eventfd.revents; in lws_glib_dispatch()
136 eventfd.fd, eventfd.revents); in lws_glib_dispatch()

12345678910>>...12