| /freebsd-14.2/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 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 17 not ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN [all …]
|
| /freebsd-14.2/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 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 16 ok 15 state after shutdown(SHUT_RD): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 19 ok 18 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 21 ok 20 state other side after write: expected POLLIN | POLLOUT; got POLLIN | POLLOUT [all …]
|
| /freebsd-14.2/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 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 16 ok 15 state after shutdown(SHUT_RD): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 19 not ok 18 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT… 21 ok 20 state other side after write: expected POLLIN | POLLOUT; got POLLIN | POLLOUT [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-14.2/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-14.2/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-14.2/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-14.2/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() 144 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); in main() 178 report(num++, "after data from other side", POLLIN | POLLOUT, pfd0.revents); in main() 181 report(num++, "after writing", POLLIN, pfd1.revents); in main() 186 report(num++, "after second shutdown", POLLIN | POLLHUP, pfd0.revents); in main() 206 report(num++, "after shutdown(SHUT_RD)", 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-14.2/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-14.2/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-14.2/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-14.2/usr.bin/talk/ |
| H A D | io.c | 111 fds[0].events = POLLIN; in talk() 113 fds[1].events = POLLIN; in talk() 126 if (fds[1].revents & POLLIN) { in talk() 137 if (fds[0].revents & POLLIN) { in talk()
|
| /freebsd-14.2/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-14.2/tests/sys/netinet/ |
| H A D | socket_afinet.c | 130 pfd.events = POLLIN | POLLOUT; in ATF_TC_BODY() 145 pfd.events = POLLIN; in ATF_TC_BODY() 148 ATF_CHECK_EQ(POLLIN, pfd.revents); in ATF_TC_BODY() 194 pfd.events = POLLIN | POLLOUT | POLLRDHUP; in ATF_TC_BODY() 207 pfd.events = POLLIN | POLLOUT | POLLRDHUP; in ATF_TC_BODY() 210 ATF_CHECK_EQ(POLLIN | POLLOUT, pfd.revents); in ATF_TC_BODY()
|
| /freebsd-14.2/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() 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() 945 fds[0].events = POLLIN; in do_function_call() 1096 slave_pty.events = POLLIN; in init_parse_variables() 1475 rfd[0].events = POLLIN; in read_cmd_pipe() 1477 rfd[1].events = POLLIN; in read_cmd_pipe() 1484 if ((rfd[1].revents & POLLIN) == POLLIN) { in read_cmd_pipe() [all …]
|
| /freebsd-14.2/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-14.2/contrib/less/ |
| H A D | os.c | 115 struct pollfd poller[2] = { { fd, POLLIN, 0 }, { tty, POLLIN, 0 } }; in check_poll() 131 if (poller[1].revents & POLLIN) in check_poll() 140 if (ignore_eoi && exit_F_on_close && (poller[0].revents & (POLLHUP|POLLIN)) == POLLHUP) in check_poll() 143 if ((poller[0].revents & (POLLIN|POLLHUP|POLLERR)) == 0) in check_poll()
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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()
|