Home
last modified time | relevance | path

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

1234567

/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-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/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/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/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/libiio/src/iiod/
Dops.c86 if ((pfd[1].revents & POLLRDHUP) || (pfd[2].revents & POLLIN)) { in thd_entry_event_wait()
165 pfd[0].revents = 0; in async_io()
168 pfd[1].revents = 0; in async_io()
174 if (pfd[0].revents & POLLIN) { in async_io()
191 } else if ((num_pfds > 1 && pfd[1].revents & POLLIN)) { in async_io()
202 } while (!(pfd[0].revents & POLLIN)); in async_io()
238 pfd[0].revents = 0; in readfd_io()
241 pfd[1].revents = 0; in readfd_io()
247 if (pfd[1].revents & POLLIN || pfd[0].revents & POLLRDHUP) in readfd_io()
249 if (pfd[0].revents & POLLERR) in readfd_io()
[all …]
/external/libkmsxx/utils/
Dwbm2m.cpp160 if (fds[0].revents != 0) in main()
163 if (fds[1].revents) { in main()
164 fds[1].revents = 0; in main()
194 if (fds[2].revents) { in main()
195 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/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
Dephiperfifo.c137 static void timer_cb(GlobalInfo* g, int revents);
199 static void event_cb(GlobalInfo *g, int fd, int revents) in event_cb() argument
204 int action = ((revents & EPOLLIN) ? CURL_CSELECT_IN : 0) | in event_cb()
205 ((revents & EPOLLOUT) ? CURL_CSELECT_OUT : 0); in event_cb()
219 static void timer_cb(GlobalInfo* g, int revents) in timer_cb() argument
392 static void fifo_cb(GlobalInfo* g, int revents) in fifo_cb() argument
/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/adhd/cras/src/alsa_plugin/
Dpcm_cras.c86 unsigned int nfds, unsigned short *revents) in snd_pcm_cras_poll_revents() argument
91 if (pfds == NULL || nfds != 1 || revents == NULL) in snd_pcm_cras_poll_revents()
98 *revents = pfds[0].revents & ~(POLLIN | POLLOUT); in snd_pcm_cras_poll_revents()
99 if (pfds[0].revents & POLLIN) in snd_pcm_cras_poll_revents()
100 *revents |= (io->stream == SND_PCM_STREAM_PLAYBACK) ? POLLOUT : in snd_pcm_cras_poll_revents()
/external/ltp/testcases/kernel/syscalls/ppoll/
Dppoll01.c184 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()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c37 if (outfds[0].revents != POLLOUT) { in verify_pollout()
63 if (infds[0].revents != POLLIN) { in verify_pollin()
/external/linux-kselftest/tools/testing/selftests/pidfd/
Dpidfd_poll_test.c98 if (!(fds.revents & POLLIN)) in main()
101 fds.revents); in main()
/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/toybox/toys/net/
Dmicrocom.c64 if (fds[0].revents) { in microcom_main()
71 if (fds[1].revents) { in microcom_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/toybox/lib/
Dnet.c114 if (pollfds[i].revents & POLLIN) { in pollinate()
116 if (len<1) pollfds[i].revents = POLLHUP; in pollinate()
119 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/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()

1234567