/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 | 270 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/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/libwebsockets/lib/plat/windows/ |
D | windows-service.c | 41 if (!pt->fds[n].revents) in _lws_plat_service_forced_tsi() 111 pfd->revents = LWS_POLLOUT; in _lws_plat_service_tsi() 189 pfd->revents = (short)networkevents.lNetworkEvents; in _lws_plat_service_tsi() 198 pfd->revents |= LWS_POLLHUP; in _lws_plat_service_tsi() 201 if (pfd->revents & LWS_POLLOUT) { in _lws_plat_service_tsi() 207 if (pfd->revents & LWS_POLLHUP) in _lws_plat_service_tsi() 210 if (pfd->revents) { in _lws_plat_service_tsi()
|
/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 | 28 lws_ev_hrtimer_cb(struct ev_loop *loop, struct ev_timer *watcher, int revents) in lws_ev_hrtimer_cb() argument 44 lws_ev_idle_cb(struct ev_loop *loop, struct ev_idle *handle, int revents) in lws_ev_idle_cb() argument 79 lws_accept_cb(struct ev_loop *loop, struct ev_io *watcher, int revents) in lws_accept_cb() argument 88 if (revents & EV_ERROR) in lws_accept_cb() 93 eventfd.revents = EV_NONE; in lws_accept_cb() 95 if (revents & EV_READ) { in lws_accept_cb() 97 eventfd.revents |= LWS_POLLIN; in lws_accept_cb() 99 if (revents & EV_WRITE) { in lws_accept_cb() 101 eventfd.revents |= LWS_POLLOUT; in lws_accept_cb() 113 lws_ev_sigint_cb(struct ev_loop *loop, struct ev_signal *watcher, int revents) in lws_ev_sigint_cb() argument
|
/third_party/glib/glib/ |
D | gpoll.c | 205 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()
|
D | giowin32.c | 139 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-proxy/ |
D | ops-raw-proxy.c | 37 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy() 51 if ((pollfd->revents & pollfd->events & LWS_POLLIN) && in rops_handle_POLLIN_raw_proxy() 55 (pollfd->revents & pollfd->events & LWS_POLLOUT))) { in rops_handle_POLLIN_raw_proxy() 99 (pollfd->revents & pollfd->events & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy() 105 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy()
|
/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/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/plat/freertos/ |
D | freertos-service.c | 131 pt->fds[n].revents = 0; in _lws_plat_service_tsi() 156 pt->fds[m].revents |= LWS_POLLIN; in _lws_plat_service_tsi() 160 pt->fds[m].revents |= LWS_POLLOUT; in _lws_plat_service_tsi() 165 pt->fds[m].revents |= LWS_POLLHUP; in _lws_plat_service_tsi() 202 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/libwebsockets/lib/event-libs/libevent/ |
D | libevent.c | 93 lws_event_cb(evutil_socket_t sock_fd, short revents, void *ctx) in lws_event_cb() argument 102 if (revents & EV_TIMEOUT) in lws_event_cb() 107 if (revents & EV_CLOSED) { in lws_event_cb() 116 eventfd.revents = 0; in lws_event_cb() 117 if (revents & EV_READ) { in lws_event_cb() 119 eventfd.revents |= LWS_POLLIN; in lws_event_cb() 121 if (revents & EV_WRITE) { in lws_event_cb() 123 eventfd.revents |= LWS_POLLOUT; in lws_event_cb() 149 lws_event_sigint_cb(evutil_socket_t sock_fd, short revents, void *ctx) in lws_event_sigint_cb() argument
|
/third_party/curl/docs/examples/ |
D | evhiperfifo.c | 115 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/roles/raw-skt/ |
D | ops-raw-skt.c | 40 if (!(pollfd->revents & LWS_POLLOUT)) 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() 180 (pollfd->revents & pollfd->events & LWS_POLLOUT)) in rops_handle_POLLIN_raw_skt() 186 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_skt()
|
/third_party/libwebsockets/lib/event-libs/glib/ |
D | glib.c | 101 eventfd.revents = cond; in lws_glib_dispatch() 106 eventfd.revents |= LWS_POLLIN; in lws_glib_dispatch() 108 eventfd.revents |= LWS_POLLOUT; in lws_glib_dispatch() 110 eventfd.revents |= LWS_POLLHUP; in lws_glib_dispatch() 112 eventfd.revents |= LWS_POLLHUP; in lws_glib_dispatch() 114 eventfd.events = eventfd.revents; in lws_glib_dispatch() 118 eventfd.fd, eventfd.revents); in lws_glib_dispatch()
|
/third_party/glib/gio/ |
D | gunixoutputstream.c | 345 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/core-net/ |
D | service.c | 515 pfd.revents = LWS_POLLIN; in lws_service_do_ripe_rxflow() 590 pt->fds[wsi->position_in_fds_table].revents |= in lws_service_flag_pending() 592 if (pt->fds[wsi->position_in_fds_table].revents & LWS_POLLIN) { in lws_service_flag_pending() 656 if ((!(pollfd->revents & pollfd->events & LWS_POLLIN)) && in lws_service_fd_tsi() 657 (pollfd->revents & LWS_POLLHUP)) { in lws_service_fd_tsi() 666 if (pollfd->revents & LWS_POLLOUT) in lws_service_fd_tsi() 670 if ((!(pollfd->revents & pollfd->events & LWS_POLLIN)) && in lws_service_fd_tsi() 671 (pollfd->revents & LWS_POLLHUP)) { in lws_service_fd_tsi() 738 pollfd->revents = 0; in lws_service_fd_tsi()
|
/third_party/skia/third_party/externals/tint/src/utils/io/ |
D | command_posix.cc | 212 if (poll_fds[0].revents & POLLIN) { in Exec() 218 if (poll_fds[0].revents & POLLHUP) { in Exec() 221 if (poll_fds[1].revents & POLLIN) { in Exec() 227 if (poll_fds[1].revents & POLLHUP) { in Exec()
|
/third_party/toybox/toys/other/ |
D | watch.c | 137 if (pfd[0].revents&POLLIN) { in watch_main() 144 if (pfd[0].revents&POLLHUP) xexit(); in watch_main() 146 if (pfd[1].revents&POLLIN) len = read(fds[1], toybuf, sizeof(toybuf)-1); in watch_main() 147 if (pfd[1].revents&POLLHUP) active = 0; in watch_main()
|
/third_party/ltp/testcases/kernel/syscalls/ppoll/ |
D | ppoll01.c | 184 fds_good[0].revents = 0; in setup() 190 fds_already_closed[0].revents = 0; in setup() 242 if (tc->fds[0].revents == tc->expect_revents) in do_test() 246 tc->fds[0].revents, tc->expect_revents); in do_test()
|
/third_party/glib/glib/tests/ |
D | gpoll.c | 62 fds[i].revents = 0; in reset_fds() 72 fds[num_pollfds - 1].revents = 0; in reset_fds_msg() 84 if (fds[i].revents != 0) in check_fds() 89 fds[i].revents = 0; in check_fds() 91 fds[i].revents |= G_IO_IN; in check_fds() 94 fds[i].revents |= G_IO_OUT; in check_fds() 103 fds[i].revents |= G_IO_OUT; in check_fds() 105 fds[i].revents |= (G_IO_HUP | G_IO_ERR); in check_fds() 107 if (fds[i].revents == 0 && (events.lNetworkEvents & (FD_CLOSE))) in check_fds() 108 fds[i].revents |= G_IO_HUP; in check_fds()
|