/freebsd/tools/regression/poll/14/ |
H A D | sockpoll.out | 5 ok 4 state other side after large write: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 6 ok 5 state other side after close: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 7 not ok 6 state other side after reading input: expected POLLHUP; got POLLIN | POLLHUP 9 ok 8 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 10 ok 9 state other side after reading EOF: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 11 ok 10 state after data from other side: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 12 ok 11 state after writing: expected POLLIN; got POLLIN 13 ok 12 state after second shutdown: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 14 not ok 13 state after second shutdown: expected POLLHUP; got POLLIN | POLLHUP 15 not ok 14 state after close: expected POLLHUP; got POLLIN | POLLHUP [all …]
|
/freebsd/tools/regression/poll/4/ |
H A D | pipepoll.out | 3 ok 2 Pipe state 5: expected POLLIN; got POLLIN 4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 5 not ok 4 Pipe state 6a: expected POLLHUP; got POLLIN | POLLHUP 7 ok 6 Sock state 5: expected POLLIN; got POLLIN 8 not ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN 9 not ok 8 Sock state 6a: expected POLLHUP; got POLLIN 10 not ok 9 FIFO state 0: expected 0; got POLLIN 12 ok 11 FIFO state 2: expected POLLIN; got POLLIN 14 not ok 13 FIFO state 3: expected POLLHUP; got POLLIN 16 ok 15 FIFO state 5: expected POLLIN; got POLLIN [all …]
|
/freebsd/tools/regression/poll/l/ |
H A D | sockpoll.out | 5 ok 4 state other side after large write: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 6 not ok 5 state other side after close: expected POLLIN | POLLHUP; got POLLIN | POLLOUT | POLLHUP 7 not ok 6 state other side after reading input: expected POLLHUP; got POLLIN | POLLOUT | POLLHUP 9 ok 8 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 10 ok 9 state other side after reading EOF: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 11 ok 10 state after data from other side: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 12 ok 11 state after writing: expected POLLIN; got POLLIN 13 not ok 12 state after second shutdown: expected POLLIN | POLLHUP; got POLLIN | POLLOUT | POLLHUP 14 not ok 13 state after second shutdown: expected POLLHUP; got POLLIN | POLLHUP 15 not ok 14 state after close: expected POLLHUP; got POLLIN | POLLOUT | POLLHUP | 8 [all …]
|
H A D | pipepoll.out | 3 ok 2 Pipe state 5: expected POLLIN; got POLLIN 4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 7 ok 6 Sock state 5: expected POLLIN; got POLLIN 8 ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 9 not ok 8 Sock state 6a: expected POLLHUP; got POLLIN | POLLHUP 12 ok 11 FIFO state 2: expected POLLIN; got POLLIN 16 ok 15 FIFO state 5: expected POLLIN; got POLLIN 17 ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
|
/freebsd/tools/regression/poll/7/ |
H A D | pipepoll.out | 3 ok 2 Pipe state 5: expected POLLIN; got POLLIN 4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 5 not ok 4 Pipe state 6a: expected POLLHUP; got POLLIN | POLLHUP 7 ok 6 Sock state 5: expected POLLIN; got POLLIN 8 not ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN 9 not ok 8 Sock state 6a: expected POLLHUP; got POLLIN 12 ok 11 FIFO state 2: expected POLLIN; got POLLIN 16 ok 15 FIFO state 5: expected POLLIN; got POLLIN 17 not ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN
|
/freebsd/tools/regression/poll/m/ |
H A D | pipepoll.out | 3 ok 2 Pipe state 5: expected POLLIN; got POLLIN 4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 7 ok 6 Sock state 5: expected POLLIN; got POLLIN 8 ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 12 ok 11 FIFO state 2: expected POLLIN; got POLLIN 16 ok 15 FIFO state 5: expected POLLIN; got POLLIN 17 ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
|
/freebsd/tools/regression/poll/n/ |
H A D | pipepoll.out | 3 ok 2 Pipe state 5: expected POLLIN; got POLLIN 4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 7 ok 6 Sock state 5: expected POLLIN; got POLLIN 8 ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 12 ok 11 FIFO state 2: expected POLLIN; got POLLIN 16 ok 15 FIFO state 5: expected POLLIN; got POLLIN 17 ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
|
/freebsd/tools/regression/poll/ |
H A D | sockpoll.c | 44 DECODE_FLAG(POLLIN); in decode_events() 48 #define KNOWN_FLAGS (POLLIN | POLLOUT | POLLHUP) in decode_events() 51 #define KNOWN_FLAGS (POLLIN | POLLOUT | POLLHUP | POLLRDHUP); in decode_events() 111 pfd0.events = POLLIN | POLLOUT; in setup() 113 pfd1.events = POLLIN | POLLOUT; in setup() 140 report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents); in main() 144 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); in main() 161 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); in main() 173 report(num++, "other side after reading EOF", POLLIN | POLLOUT, pfd1.revents); in main() 178 report(num++, "after data from other side", POLLIN | POLLOUT, pfd0.revents); in main() [all …]
|
H A D | pipepoll.c | 28 case POLLIN: in decode_events() 34 case POLLIN | POLLHUP: in decode_events() 101 pfd.events = POLLIN; in child() 132 report(num++, "2", POLLIN, pfd.revents, res, 1); in child() 168 report(num++, "5", POLLIN, pfd.revents, res, 1); in child() 186 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1); in child()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | devpoll.c | 207 what |= POLLIN | POLLOUT; in devpoll_dispatch() 209 what |= POLLIN | POLLOUT; in devpoll_dispatch() 211 if (what & POLLIN) in devpoll_dispatch() 243 res |= POLLIN; in devpoll_add() 262 res |= POLLIN; in devpoll_del() 276 if ((res & (POLLIN|POLLOUT)) != (POLLIN|POLLOUT)) { in devpoll_del() 282 if ((res & POLLIN) && (old & EV_WRITE)) { in devpoll_del() 287 devpoll_queue(devpollop, fd, POLLIN); in devpoll_del()
|
/freebsd/contrib/libevent/ |
H A D | devpoll.c | 207 what |= POLLIN | POLLOUT; in devpoll_dispatch() 209 what |= POLLIN | POLLOUT; in devpoll_dispatch() 211 if (what & POLLIN) in devpoll_dispatch() 243 res |= POLLIN; in devpoll_add() 262 res |= POLLIN; in devpoll_del() 276 if ((res & (POLLIN|POLLOUT)) != (POLLIN|POLLOUT)) { in devpoll_del() 282 if ((res & POLLIN) && (old & EV_WRITE)) { in devpoll_del() 287 devpoll_queue(devpollop, fd, POLLIN); in devpoll_del()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_poll.c | 52 pfd.events = POLLIN | POLLHUP | POLLOUT; in child1() 64 pfd.events = POLLIN | POLLHUP | POLLOUT; in child2() 79 pfd.events = POLLIN | POLLHUP | POLLOUT; in child3() 165 pfds[0].events = POLLIN; in ATF_TC_BODY() 206 ATF_REQUIRE_EQ_MSG(pfds[0].revents, POLLIN, "got: %d", in ATF_TC_BODY() 227 pfd.events = POLLIN; in ATF_TC_BODY() 255 pfds[0].events = POLLIN; in ATF_TC_BODY() 300 ATF_REQUIRE_EQ_MSG(pfds[0].revents, POLLIN, "got: %d", in ATF_TC_BODY() 322 pfd.events = POLLIN; in ATF_TC_BODY() 357 pfd.events = POLLIN; in ATF_TC_BODY()
|
/freebsd/usr.bin/talk/ |
H A D | io.c | 108 fds[0].events = POLLIN; in talk() 110 fds[1].events = POLLIN; in talk() 123 if (fds[1].revents & POLLIN) { in talk() 134 if (fds[0].revents & POLLIN) { in talk()
|
/freebsd/crypto/openssh/ |
H A D | atomicio.c | 61 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio6() 63 pfd.events = POLLIN|POLLOUT; in atomicio6() 123 pfd.events = f == readv ? POLLIN : POLLOUT; in atomiciov6() 125 pfd.events = POLLIN|POLLOUT; in atomiciov6()
|
/freebsd/contrib/netbsd-tests/lib/libcurses/director/ |
H A D | testlang_parse.y | 755 fds[0].events = POLLIN; in compare_streams() 757 fds[1].events = POLLIN; in compare_streams() 769 if (fds[0].revents & POLLIN) { in compare_streams() 788 if (fds[0].revents & POLLIN) { in compare_streams() 829 if ((fds[1].revents & POLLIN) == POLLIN) { in compare_streams() 831 } else if ((fds[0].revents & POLLIN) == POLLIN) { in compare_streams() 902 fds[0].events = POLLIN; in do_function_call() 912 if (fds[0].revents & POLLIN) { in do_function_call() 945 fds[0].events = POLLIN; in do_function_call() 951 fds[2].events = POLLIN | POLLOUT; in do_function_call() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.c | 70 if (fds[i].events & POLLIN) in ppoll() 86 if ((fds[i].events & POLLIN) && FD_ISSET(fd, &readfds)) in ppoll() 87 fds[i].revents |= POLLIN; in ppoll()
|
H A D | bsd-poll.h | 47 #ifndef POLLIN 48 # define POLLIN 0x0001 macro
|
/freebsd/contrib/less/ |
H A D | os.c | 113 struct pollfd poller[2] = { { fd, POLLIN, 0 }, { tty, POLLIN, 0 } }; in check_poll() 129 if (poller[1].revents & POLLIN) in check_poll() 138 if (ignore_eoi && exit_F_on_close && (poller[0].revents & (POLLHUP|POLLIN)) == POLLHUP) in check_poll() 141 if ((poller[0].revents & (POLLIN|POLLHUP|POLLERR)) == 0) in check_poll()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
H A D | libzfs_util_os.c | 141 {.fd = ino, .events = POLLIN}, in libzfs_load_module() 142 {.fd = tout, .events = POLLIN}, in libzfs_load_module() 145 if (pfds[0].revents & POLLIN) { in libzfs_load_module() 154 if (pfds[1].revents & POLLIN) in libzfs_load_module()
|
/freebsd/contrib/pf/libevent/ |
H A D | poll.c | 128 if (pop->event_set[idx].events & POLLIN) { in poll_check_ok() 187 what |= POLLIN|POLLOUT; in poll_dispatch() 188 if (what & POLLIN) { in poll_dispatch() 307 pfd->events |= POLLIN; in poll_add() 340 pfd->events &= ~POLLIN; in poll_del()
|
/freebsd/sys/sys/ |
H A D | poll.h | 61 #define POLLIN 0x0001 /* any readable data available */ macro 85 #define POLLSTANDARD (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND|\
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zfsd.cc | 344 fds[0].events = POLLIN; in EventLoop() 347 fds[1].events = POLLIN; in EventLoop() 359 if ((fds[0].revents & POLLIN) != 0) in EventLoop() 362 if ((fds[1].revents & POLLIN) != 0) { in EventLoop()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | mlfk_ipl.c | 454 if ((events & (POLLIN | POLLRDNORM)) && ipf_log_canread(&V_ipfmain, unit)) in ipfpoll() 455 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll() 459 if ((events & (POLLIN | POLLRDNORM)) && ipf_auth_waiting(&V_ipfmain)) in ipfpoll() 460 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll() 463 if ((events & (POLLIN | POLLRDNORM)) && ipf_sync_canread(&V_ipfmain)) in ipfpoll() 464 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll() 474 if ((revents == 0) && ((events & (POLLIN|POLLRDNORM)) != 0)) in ipfpoll()
|
/freebsd/contrib/blocklist/test/ |
H A D | srvtest.c | 205 pfd[0].events = POLLIN; in main() 208 pfd[1].events = POLLIN; in main() 215 if ((pfd[i].revents & POLLIN) == 0) in main()
|
/freebsd/contrib/ncurses/ncurses/tty/ |
H A D | lib_twait.c | 252 fds[count].events = POLLIN; in _nc_timed_wait() 258 fds[count].events = POLLIN; in _nc_timed_wait() 269 fds[count].events = POLLIN; in _nc_timed_wait() 293 && fds[c].revents & POLLIN) { in _nc_timed_wait() 492 && (fds[count].revents & POLLIN)) { in _nc_timed_wait()
|