/openbsd/regress/sys/fifofs/ |
H A D | fifotest.out | 5 poll POLLIN|POLLOUT, timeout=0 7 poll POLLIN, timeout=0 25 poll POLLIN, timeout=0 46 poll POLLIN, timeout=-1 64 poll POLLIN, timeout=-1 85 poll POLLIN, timeout=0 103 poll POLLIN, timeout=0 124 poll POLLIN, timeout=-1 142 poll POLLIN, timeout=-1 173 poll POLLIN, timeout=-1 [all …]
|
H A D | fifotest.c | 107 dopoll(-1, fd, POLLIN|POLLOUT, "POLLIN|POLLOUT", timeout); in runtest() 108 dopoll(-1, fd, POLLIN, "POLLIN", timeout); in runtest() 122 dopoll(-1, fd, POLLIN|POLLOUT, "POLLIN|POLLOUT", timeout); in runtest() 123 dopoll(-1, fd, POLLIN, "POLLIN", timeout); in runtest() 237 dopoll(writer, fd, POLLIN|POLLOUT, "POLLIN|POLLOUT", timeout); in eoftest() 241 dopoll(writer, fd, POLLIN, "POLLIN", timeout); in eoftest() 302 if (pfd.revents & POLLIN) in dopoll()
|
/openbsd/regress/lib/libpthread/poll/ |
H A D | poll.c | 22 p->events & POLLIN ? "in " : "", in print_pollfd() 24 p->events & ~(POLLIN|POLLOUT) ? "XXX " : "", in print_pollfd() 25 p->revents & POLLIN ? "in " : "", in print_pollfd() 71 p[0].events = POLLIN|POLLOUT; in main() 74 p[1].events = POLLIN|POLLOUT; in main() 80 ASSERT((p[0].revents & POLLIN) == POLLIN); in main() 91 p[0].events = POLLIN|POLLOUT; in main() 93 p[1].events = POLLIN|POLLOUT; in main() 111 p[0].events = POLLIN; in main() 125 p[0].events = POLLIN; in main() [all …]
|
/openbsd/regress/sys/kern/poll/ |
H A D | poll_iocond.c | 323 pfd[0].events = POLLIN | POLLOUT | POLLPRI; in proc_child() 440 pfd[0].events = POLLIN | POLLOUT | POLLPRI; in proc_child() 503 pfd[0].events = POLLIN | POLLOUT | POLLPRI; in proc_parent() 536 assert(pfd[0].revents == POLLIN); in proc_parent() 555 pfd[0].events = POLLIN; in proc_parent() 574 pfd[0].events = POLLIN; in proc_parent() 584 assert(pfd[0].revents == POLLIN); in proc_parent() 612 pfd[0].events = POLLIN | POLLOUT | POLLPRI; in proc_parent() 660 pfd[0].events = POLLIN | POLLOUT | POLLPRI; in proc_parent() 729 pfd[0].events = POLLIN | POLLOUT | POLLPRI; in proc_parent() [all …]
|
H A D | poll_close.c | 47 pfd[0].events = POLLIN; in thread_main() 50 assert(pfd[0].revents & POLLIN); in thread_main() 61 pfd[0].events = POLLIN; in thread_main()
|
/openbsd/regress/lib/libc/sys/ |
H A D | t_poll.c | 55 pfd.events = POLLIN | POLLHUP | POLLOUT; in child1() 67 pfd.events = POLLIN | POLLHUP | POLLOUT; in child2() 82 pfd.events = POLLIN | POLLHUP | POLLOUT; in child3() 168 pfds[0].events = POLLIN; in ATF_TC_BODY() 209 ATF_REQUIRE_EQ_MSG(pfds[0].revents, POLLIN, "got: %d", in ATF_TC_BODY() 230 pfd.events = POLLIN; in ATF_TC_BODY()
|
H A D | t_pollts.c | 68 pfds[0].events = POLLIN; in ATF_TC_BODY() 113 ATF_REQUIRE_EQ_MSG(pfds[0].revents, POLLIN, "got: %d", in ATF_TC_BODY() 135 pfd.events = POLLIN; in ATF_TC_BODY() 170 pfd.events = POLLIN; in ATF_TC_BODY()
|
/openbsd/usr.bin/talk/ |
H A D | io.c | 76 fds[0].events = POLLIN; in talk() 78 fds[1].events = POLLIN; in talk() 92 if (fds[1].revents & POLLIN) { in talk() 99 if (fds[0].revents & POLLIN) { in talk()
|
/openbsd/regress/usr.sbin/bgpd/integrationtests/ |
H A D | api-exabgp.c | 57 pfd[0].events = POLLIN; in main() 59 pfd[1].events = POLLIN; in main() 71 if (pfd[0].revents & POLLIN) { in main() 82 if (pfd[1].revents & POLLIN) { in main()
|
/openbsd/usr.bin/rsync/ |
H A D | receiver.c | 302 pfd[PFD_SENDER_IN].events = POLLIN; in rsync_receiver() 303 pfd[PFD_UPLOADER_IN].events = POLLIN; in rsync_receiver() 304 pfd[PFD_DOWNLOADER_IN].events = POLLIN; in rsync_receiver() 351 (pfd[PFD_SENDER_IN].revents & POLLIN)) { in rsync_receiver() 356 pfd[PFD_SENDER_IN].revents &= ~POLLIN; in rsync_receiver() 366 if ((pfd[PFD_UPLOADER_IN].revents & POLLIN) || in rsync_receiver() 386 if ((pfd[PFD_SENDER_IN].revents & POLLIN) || in rsync_receiver() 387 (pfd[PFD_DOWNLOADER_IN].revents & POLLIN)) { in rsync_receiver()
|
H A D | sender.c | 436 pfd[0].events = POLLIN; in rsync_sender() 440 pfd[2].events = POLLIN; in rsync_sender() 472 if (sess->mplex_reads && (pfd[0].revents & POLLIN)) { in rsync_sender() 483 pfd[0].revents &= ~POLLIN; in rsync_sender() 494 if (pfd[0].revents & POLLIN) { in rsync_sender() 520 if (pfd[2].revents & POLLIN) { in rsync_sender()
|
/openbsd/usr.bin/vi/ex/ |
H A D | ex_script.c | 202 pfd[0].events = POLLIN; in sscr_getprompt() 370 pfd[0].events = POLLIN; in sscr_check_input() 375 pfd[nfds].events = POLLIN; in sscr_check_input() 393 if (!(pfd[0].revents & POLLIN)) { in sscr_check_input() 399 if ((pfd[nfds].revents & POLLIN) && sscr_insert(sp)) in sscr_check_input() 444 pfd[nfds].events = POLLIN; in sscr_input() 467 if ((pfd[nfds].revents & POLLIN) && sscr_insert(sp)) in sscr_input() 538 pfd[0].events = POLLIN; in sscr_insert()
|
/openbsd/usr.sbin/radiusd/ |
H A D | imsg_subr.c | 42 fds[0].events = POLLIN; in imsg_sync_read() 48 if (retval > 0 && (fds[0].revents & POLLIN) != 0) in imsg_sync_read()
|
/openbsd/lib/libevent/ |
H A D | poll.c | 107 if (pop->event_set[idx].events & POLLIN) { in poll_check_ok() 175 what |= POLLIN|POLLOUT; in poll_dispatch() 176 if (what & POLLIN) { in poll_dispatch() 291 pfd->events |= POLLIN; in poll_add() 324 pfd->events &= ~POLLIN; in poll_del()
|
/openbsd/usr.sbin/ntpd/ |
H A D | ntp.c | 235 pfd[PFD_PIPE_MAIN].events = POLLIN; in ntp_main() 237 pfd[PFD_PIPE_DNS].events = POLLIN; in ntp_main() 239 pfd[PFD_SOCK_CTL].events = POLLIN; in ntp_main() 244 pfd[i].events = POLLIN; in ntp_main() 295 pfd[i].events = POLLIN; in ntp_main() 342 pfd[i].events = POLLIN; in ntp_main() 374 if (nfds > 0 && pfd[PFD_PIPE_MAIN].revents & (POLLIN|POLLERR)) { in ntp_main() 389 if (nfds > 0 && pfd[PFD_PIPE_DNS].revents & (POLLIN|POLLERR)) { in ntp_main() 397 if (nfds > 0 && pfd[PFD_SOCK_CTL].revents & (POLLIN|POLLERR)) { in ntp_main() 403 if (pfd[j].revents & (POLLIN|POLLERR)) { in ntp_main() [all …]
|
/openbsd/lib/libcurses/tty/ |
H A D | lib_twait.c | 254 fds[count].events = POLLIN; in _nc_timed_wait() 260 fds[count].events = POLLIN; in _nc_timed_wait() 271 fds[count].events = POLLIN; in _nc_timed_wait() 295 && fds[c].revents & POLLIN) { in _nc_timed_wait() 494 && (fds[count].revents & POLLIN)) { in _nc_timed_wait()
|
/openbsd/sbin/ldattach/ |
H A D | atomicio.c | 52 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio() 94 pfd.events = f == readv ? POLLIN : POLLOUT; in atomiciov()
|
/openbsd/usr.bin/nc/ |
H A D | netcat.c | 779 pfd.events = POLLIN; in timeout_tls() 1114 pfd[POLL_STDIN].events = POLLIN; in readwrite() 1122 pfd[POLL_NETIN].events = POLLIN; in readwrite() 1165 if (pfd[POLL_STDIN].events & POLLIN && in readwrite() 1170 if (pfd[POLL_NETIN].events & POLLIN && in readwrite() 1198 pfd[POLL_STDIN].events = POLLIN; in readwrite() 1215 pfd[POLL_NETOUT].events = POLLIN; in readwrite() 1225 pfd[POLL_STDIN].events = POLLIN; in readwrite() 1232 pfd[POLL_NETIN].events = POLLIN; in readwrite() 1264 pfd[POLL_STDOUT].events = POLLIN; in readwrite() [all …]
|
/openbsd/regress/lib/libpthread/cancel2/ |
H A D | cancel2.c | 55 pfd.events = POLLIN; in poll_thread() 71 pfd.events = POLLIN; in ppoll_thread()
|
/openbsd/libexec/spamd/ |
H A D | spamd.c | 1552 pfd[PFD_TRAPFD].events = POLLIN; in main() 1559 pfd[PFD_SYNCFD].events = POLLIN; in main() 1566 pfd[PFD_GREYBACK].events = POLLIN; in main() 1591 con[i].pfd->events |= POLLIN; in main() 1604 con[i].pfd->events = POLLIN; in main() 1616 pfd[PFD_SMTPLISTEN].events = POLLIN; in main() 1620 pfd[PFD_CONFLISTEN].events = POLLIN; in main() 1622 pfd[PFD_CONFFD].events = POLLIN; in main() 1649 if (pfd[PFD_FIRSTCON + i].revents & POLLIN) { in main() 1729 if (pfd[PFD_TRAPFD].revents & (POLLIN|POLLHUP)) in main() [all …]
|
/openbsd/usr.sbin/mrouted/ |
H A D | main.c | 229 pfd[0].events = POLLIN; in main() 232 pfd[i + 1].events = POLLIN; in main() 259 if (pfd[0].revents & POLLIN) { in main() 275 if (pfd[i + 1].revents & POLLIN) { in main()
|
/openbsd/usr.bin/telnet/ |
H A D | sys_bsd.c | 512 pfd[TELNET_FD_TIN].events = POLLIN; in process_rings() 522 pfd[TELNET_FD_NET].events |= POLLIN; in process_rings() 544 if (pfd[TELNET_FD_NET].revents & (POLLIN|POLLHUP)) { in process_rings() 565 if (pfd[TELNET_FD_TIN].revents & (POLLIN|POLLHUP)) { in process_rings()
|
/openbsd/regress/lib/libsndio/vol/ |
H A D | vol.c | 119 pfd[0].events = POLLIN; in main() 125 if (pfd[0].revents & POLLIN) { in main()
|
/openbsd/usr.sbin/vmd/ |
H A D | atomicio.c | 52 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio6() 105 pfd.events = f == readv ? POLLIN : POLLOUT; in atomiciov6()
|
/openbsd/lib/libc/net/ |
H A D | rcmd.c | 206 pfd[0].events = POLLIN; in rcmd_af() 208 pfd[1].events = POLLIN; in rcmd_af() 212 (pfd[1].revents & (POLLIN|POLLHUP)) == 0) { in rcmd_af()
|