Home
last modified time | relevance | path

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

123456

/external/grpc-grpc/test/core/iomgr/
Dwakeup_fd_cv_test.cc79 fds[0].revents = POLLIN; in mock_poll()
143 GPR_ASSERT(pfds[0].revents == 0); in test_poll_cv_trigger()
144 GPR_ASSERT(pfds[1].revents == 0); in test_poll_cv_trigger()
145 GPR_ASSERT(pfds[2].revents == 0); in test_poll_cv_trigger()
146 GPR_ASSERT(pfds[3].revents == 0); in test_poll_cv_trigger()
147 GPR_ASSERT(pfds[4].revents == 0); in test_poll_cv_trigger()
148 GPR_ASSERT(pfds[5].revents == 0); in test_poll_cv_trigger()
160 GPR_ASSERT(pfds[0].revents == 0); in test_poll_cv_trigger()
161 GPR_ASSERT(pfds[1].revents == 0); in test_poll_cv_trigger()
162 GPR_ASSERT(pfds[2].revents == POLLIN); in test_poll_cv_trigger()
[all …]
/external/curl/lib/
Dselect.c195 pfd[num].revents = 0; in Curl_socket_check()
201 pfd[num].revents = 0; in Curl_socket_check()
207 pfd[num].revents = 0; in Curl_socket_check()
240 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
242 if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL)) in Curl_socket_check()
247 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check()
249 if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL)) in Curl_socket_check()
254 if(pfd[num].revents & (POLLWRNORM|POLLOUT)) in Curl_socket_check()
256 if(pfd[num].revents & (POLLERR|POLLHUP|POLLNVAL)) in Curl_socket_check()
462 if(ufds[i].revents & POLLHUP) in Curl_poll()
[all …]
/external/strace/tests-mx32/
Dpoll.c115 if (!pfd->revents || pfd->fd < 0 || *seen > abbrev) in print_pollfd_exiting()
127 short revents = pfd->revents; in print_pollfd_exiting() local
129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting()
130 PRINT_EVENT(POLLPRI, revents); in print_pollfd_exiting()
131 PRINT_EVENT(POLLOUT, revents); in print_pollfd_exiting()
133 PRINT_EVENT(POLLRDNORM, revents); in print_pollfd_exiting()
136 PRINT_EVENT(POLLWRNORM, revents); in print_pollfd_exiting()
139 PRINT_EVENT(POLLRDBAND, revents); in print_pollfd_exiting()
142 PRINT_EVENT(POLLWRBAND, revents); in print_pollfd_exiting()
144 PRINT_EVENT(POLLERR, revents); in print_pollfd_exiting()
[all …]
/external/strace/tests/
Dpoll.c115 if (!pfd->revents || pfd->fd < 0 || *seen > abbrev) in print_pollfd_exiting()
127 short revents = pfd->revents; in print_pollfd_exiting() local
129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting()
130 PRINT_EVENT(POLLPRI, revents); in print_pollfd_exiting()
131 PRINT_EVENT(POLLOUT, revents); in print_pollfd_exiting()
133 PRINT_EVENT(POLLRDNORM, revents); in print_pollfd_exiting()
136 PRINT_EVENT(POLLWRNORM, revents); in print_pollfd_exiting()
139 PRINT_EVENT(POLLRDBAND, revents); in print_pollfd_exiting()
142 PRINT_EVENT(POLLWRBAND, revents); in print_pollfd_exiting()
144 PRINT_EVENT(POLLERR, revents); in print_pollfd_exiting()
[all …]
/external/strace/tests-m32/
Dpoll.c115 if (!pfd->revents || pfd->fd < 0 || *seen > abbrev) in print_pollfd_exiting()
127 short revents = pfd->revents; in print_pollfd_exiting() local
129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting()
130 PRINT_EVENT(POLLPRI, revents); in print_pollfd_exiting()
131 PRINT_EVENT(POLLOUT, revents); in print_pollfd_exiting()
133 PRINT_EVENT(POLLRDNORM, revents); in print_pollfd_exiting()
136 PRINT_EVENT(POLLWRNORM, revents); in print_pollfd_exiting()
139 PRINT_EVENT(POLLRDBAND, revents); in print_pollfd_exiting()
142 PRINT_EVENT(POLLWRBAND, revents); in print_pollfd_exiting()
144 PRINT_EVENT(POLLERR, revents); in print_pollfd_exiting()
[all …]
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc178 if (pollfds[0].revents && !ClientEvent(pollfds[0].revents)) in Run()
181 if (pollfds[1].revents && !ControlEvent(pollfds[1].revents)) in Run()
187 CrashGenerationServer::ClientEvent(short revents) in ClientEvent() argument
189 if (POLLHUP & revents) in ClientEvent()
191 assert(POLLIN & revents); in ClientEvent()
285 CrashGenerationServer::ControlEvent(short revents) in ControlEvent() argument
287 if (POLLHUP & revents) in ControlEvent()
289 assert(POLLIN & revents); in ControlEvent()
Dcrash_generation_server.h98 bool ClientEvent(short revents);
102 bool ControlEvent(short revents);
/external/selinux/mcstrans/src/
Dmcstransd.c280 (*ufds)[ii].revents = 0; in add_pollfd()
308 short revents = (*ufds)[ii].revents; in process_events() local
311 if (revents & (POLLIN | POLLPRI)) { in process_events()
339 revents = revents & ~(POLLHUP); in process_events()
342 revents = revents & ~(POLLIN | POLLPRI); in process_events()
344 if (revents & POLLHUP) { in process_events()
352 revents = revents & ~(POLLHUP); in process_events()
354 if (revents) { in process_events()
356 " for fd (%d)\n", revents, connfd); in process_events()
363 (*ufds)[ii].revents = 0; in process_events()
[all …]
/external/libkmsxx/utils/
Dwbm2m.cpp129 if (fds[0].revents != 0) in main()
132 if (fds[1].revents) { in main()
133 fds[1].revents = 0; in main()
163 if (fds[2].revents) { in main()
164 fds[2].revents = 0; in main()
Dwbcap.cpp391 if (fds[0].revents != 0) in main()
394 if (fds[1].revents) { in main()
395 fds[1].revents = 0; in main()
411 if (fds[2].revents) { in main()
412 fds[2].revents = 0; in main()
/external/openssh/openbsd-compat/
Dbsd-poll.c95 fds[i].revents = 0; in poll()
99 fds[i].revents |= POLLIN; in poll()
102 fds[i].revents |= POLLOUT; in poll()
105 fds[i].revents |= POLLERR; in poll()
/external/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()
369 static void fifo_cb(EV_P_ struct ev_io *w, int revents) in fifo_cb() argument
Dephiperfifo.c143 static void timer_cb(GlobalInfo* g, int revents);
206 static void event_cb(GlobalInfo *g, int fd, int revents) in event_cb() argument
211 int action = (revents & EPOLLIN ? CURL_CSELECT_IN : 0) | in event_cb()
212 (revents & EPOLLOUT ? CURL_CSELECT_OUT : 0); in event_cb()
226 static void timer_cb(GlobalInfo* g, int revents) in timer_cb() argument
399 static void fifo_cb(GlobalInfo* g, int revents) in fifo_cb() argument
/external/adhd/cras/src/alsa_plugin/
Dpcm_cras.c88 unsigned short *revents) in snd_pcm_cras_poll_revents() argument
93 if (pfds == NULL || nfds != 1 || revents == NULL) in snd_pcm_cras_poll_revents()
100 *revents = pfds[0].revents & ~(POLLIN | POLLOUT); in snd_pcm_cras_poll_revents()
101 if (pfds[0].revents & POLLIN) in snd_pcm_cras_poll_revents()
102 *revents |= (io->stream == SND_PCM_STREAM_PLAYBACK) ? POLLOUT in snd_pcm_cras_poll_revents()
/external/toybox/toys/other/
Dwatch.c137 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()
/external/ltp/testcases/kernel/syscalls/ppoll/
Dppoll01.c193 fds_good[0].revents = 0; in setup()
199 fds_already_closed[0].revents = 0; in setup()
251 if (tc->fds[0].revents == tc->expect_revents) in do_test()
255 tc->fds[0].revents, tc->expect_revents); in do_test()
/external/libpcap/testprogs/
Dselpolltest.c291 if (fd.revents & POLLIN) in main()
295 if (fd.revents & POLLERR) in main()
299 if (fd.revents & POLLHUP) in main()
303 if (fd.revents & POLLNVAL) in main()
/external/libusb/libusb/os/
Dpoll_windows.c530 fds[i].revents = 0; in usbi_poll()
534 fds[i].revents |= POLLERR; in usbi_poll()
546 fds[i].revents |= POLLNVAL | POLLERR; in usbi_poll()
558 fds[i].revents |= POLLNVAL | POLLERR; in usbi_poll()
567 fds[i].revents |= POLLNVAL | POLLERR; in usbi_poll()
580 fds[i].revents = fds[i].events; in usbi_poll()
604 fds[i].revents = fds[i].events; in usbi_poll()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c50 if (outfds[0].revents != POLLOUT) { in verify_pollout()
76 if (infds[0].revents != POLLIN) { in verify_pollin()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_rx.c61 pfd.revents = 0; in do_poll()
70 if (pfd.revents != POLLIN) in do_poll()
72 pfd.revents, POLLIN); in do_poll()
/external/toybox/toys/net/
Dmicrocom.c64 if (fds[0].revents) { in microcom_main()
71 if (fds[1].revents) { in microcom_main()
/external/toybox/lib/
Dnet.c104 if (pollfds[i].revents & POLLIN) { in pollinate()
106 if (len<1) pollfds[i].revents = POLLHUP; in pollinate()
109 if (pollfds[i].revents & POLLHUP) { in pollinate()
/external/tinycompress/
Dcompress.c381 if (fds.revents & POLLERR) { in compress_write()
390 if (fds.revents & POLLOUT) { in compress_write()
441 if (fds.revents & POLLERR) { in compress_read()
450 if (fds.revents & POLLIN) { in compress_read()
633 if (fds.revents & POLLERR) in compress_wait()
635 if (fds.revents & (POLLOUT | POLLIN)) in compress_wait()
/external/libchrome/base/
Dsync_socket_posix.cc158 pollfd.revents = 0; in ReceiveWithTimeout()
181 DCHECK(pollfd.revents & (POLLIN | POLLHUP | POLLERR)) << pollfd.revents; in ReceiveWithTimeout()
/external/python/cpython2/Modules/_multiprocessing/
Dsocket_connection.c196 p.revents = 0; in conn_poll()
213 } else if (p.revents & (POLLNVAL|POLLERR)) { in conn_poll()
218 } else if (p.revents != 0) { in conn_poll()

123456