Home
last modified time | relevance | path

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

123456

/external/curl/lib/
Dselect.c196 pfd[num].revents = 0; in Curl_socket_check()
202 pfd[num].revents = 0; in Curl_socket_check()
208 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()
461 if(ufds[i].revents & POLLHUP) in Curl_poll()
[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/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/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.c290 (*ufds)[ii].revents = 0; in add_pollfd()
318 short revents = (*ufds)[ii].revents; in process_events() local
321 if (revents & (POLLIN | POLLPRI)) { in process_events()
349 revents = revents & ~(POLLHUP); in process_events()
352 revents = revents & ~(POLLIN | POLLPRI); in process_events()
354 if (revents & POLLHUP) { in process_events()
362 revents = revents & ~(POLLHUP); in process_events()
364 if (revents) { in process_events()
366 " for fd (%d)\n", revents, connfd); in process_events()
373 (*ufds)[ii].revents = 0; in process_events()
[all …]
/external/curl/docs/examples/
Devhiperfifo.c115 static void timer_cb(EV_P_ struct ev_timer *w, int revents);
201 static void event_cb(EV_P_ struct ev_io *w, int revents) in event_cb() argument
203 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in event_cb()
207 int action = (revents&EV_READ?CURL_POLL_IN:0)| in event_cb()
208 (revents&EV_WRITE?CURL_POLL_OUT:0); in event_cb()
219 static void timer_cb(EV_P_ struct ev_timer *w, int revents) in timer_cb() argument
221 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in timer_cb()
371 static void fifo_cb(EV_P_ struct ev_io *w, int revents) in fifo_cb() argument
/external/valgrind/coregrind/m_gdbserver/
Dremote-utils.c214 int poll_cond (short revents) in poll_cond() argument
216 return (revents & (VKI_POLLERR | VKI_POLLHUP | VKI_POLLNVAL)); in poll_cond()
230 write_remote_desc_ok.revents = 0; in ensure_write_remote_desc()
233 || (sr_Res(ret) > 0 && poll_cond(write_remote_desc_ok.revents))) { in ensure_write_remote_desc()
238 write_remote_desc_ok.revents, write_remote_desc); in ensure_write_remote_desc()
297 remote_desc_pollfdread_activity.revents = 0; in setup_remote_desc_for_reading()
498 remote_desc_pollfdread_activity.revents = 0; in remote_finish()
566 remote_desc_pollfdread_activity.revents = 0; in remote_desc_activity()
569 || (sr_Res(ret) && poll_cond(remote_desc_pollfdread_activity.revents))) { in remote_desc_activity()
574 remote_desc_pollfdread_activity.revents, remote_desc); in remote_desc_activity()
[all …]
/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/toybox/lib/
Dnet.c87 if (pollfds[i].revents & POLLIN) { in pollinate()
89 if (len<1) pollfds[i].revents = POLLHUP; in pollinate()
92 if (pollfds[i].revents & POLLHUP) { in pollinate()
/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/libpcap/tests/
Dselpolltest.c266 if (fd.revents & POLLIN) in main()
270 if (fd.revents & POLLERR) in main()
274 if (fd.revents & POLLHUP) in main()
278 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/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()
620 if (fds.revents & POLLERR) in compress_wait()
622 if (fds.revents & (POLLOUT | POLLIN)) in compress_wait()
/external/tensorflow/tensorflow/core/platform/posix/
Dsubprocess.cc399 fds[fd_count].revents = 0; in Communicate()
418 if ((fds[i].revents & (POLLIN | POLLHUP)) != 0) { in Communicate()
430 } else if ((fds[i].revents & POLLOUT) != 0) { in Communicate()
449 } else if ((fds[i].revents & (POLLERR | POLLNVAL)) != 0) { in Communicate()
/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()
/external/toybox/toys/net/
Dmicrocom.c88 if (fds[0].revents) { in microcom_main()
95 if (fds[1].revents) { in microcom_main()
/external/libdrm/tests/exynos/
Dexynos_fimg2d_event.c80 data->evhandler.fds.revents = 0; in threadfunc()
85 if (data->evhandler.fds.revents & (POLLHUP | POLLERR)) in threadfunc()
88 if (data->evhandler.fds.revents & POLLIN) in threadfunc()
/external/valgrind/auxprogs/
Dvalgrind-listener.c340 ufd.revents = 0; in main()
384 conn_pollfd[j].revents = 0; in main()
402 if (conn_pollfd[i].revents & POLLIN) { in main()
/external/oj-libjdwp/src/solaris/transport/socket/
Dsocket_md.c257 fds[0].revents = 0; in dbgsysPoll()
262 if (fds[0].revents & POLLIN) { in dbgsysPoll()
265 if (fds[0].revents & POLLOUT) { in dbgsysPoll()
/external/valgrind/coregrind/
Dvgdb.c846 pollfds[FROM_GDB].revents = 0; in gdb_relay()
849 pollfds[TO_GDB].revents = 0; in gdb_relay()
854 pollfds[FROM_PID].revents = 0; in gdb_relay()
857 pollfds[TO_PID].revents = 0; in gdb_relay()
875 if (pollfds[ck].revents & POLLIN) { in gdb_relay()
893 if (pollfds[ck].revents & POLLERR) { in gdb_relay()
899 if (pollfds[ck].revents & POLLHUP) { in gdb_relay()
905 if (pollfds[ck].revents & POLLNVAL) { in gdb_relay()
/external/strace/
Dpoll.c103 if (!fds.revents) in decode_poll_exiting()
119 (unsigned short) fds.revents); in decode_poll_exiting()
/external/mtpd/
Dmtpd.c197 if (pollfds[1].revents) { in main()
200 if (pollfds[2].revents) { in main()
203 timeout = pollfds[0].revents ? in main()

123456