| /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/bin/pwait/tests/ |
| H A D | pwait_reap.c | 49 pfds[0].events = POLLIN; in pwait_is_waiting() 51 pfds[1].events = POLLIN; in pwait_is_waiting() 59 ATF_REQUIRE_EQ(pfds[1].revents, POLLIN); in pwait_is_waiting() 83 pfds[0].events = POLLIN; in pwait_is_done() 85 pfds[1].events = POLLIN; in pwait_is_done() 92 ATF_REQUIRE_EQ(pfds[0].revents, POLLIN); in pwait_is_done()
|
| /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/openssl/doc/designs/ddd/ |
| H A D | ddd-05-mem-nonblocking.c | 247 return (SSL_net_read_desired(conn->ssl) ? POLLIN : 0) 251 return (conn->tx_need_rx ? POLLIN : 0) | POLLOUT | POLLERR; 260 return (conn->rx_need_tx ? POLLOUT : 0) | POLLIN | POLLERR; 305 pfd.events = (events & (POLLIN | POLLERR)); 307 pfd.events &= ~POLLIN; 311 if ((pfd.events & (POLLIN | POLLOUT)) == 0) 317 if (pfd.revents & POLLIN) {
|
| /freebsd/crypto/openssh/ |
| H A D | atomicio.c | 55 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio6() 57 pfd.events = POLLIN|POLLOUT; in atomicio6() 117 pfd.events = f == readv ? POLLIN : POLLOUT; in atomiciov6() 119 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/contrib/less/ |
| H A D | os.c | 138 struct pollfd poller[2] = { { fd, POLLIN, 0 }, { tty, POLLIN, 0 } }; in check_poll() 158 if (poller[1].revents & POLLIN) in check_poll() 167 if (ignore_eoi && exit_F_on_close && (poller[0].revents & (POLLHUP|POLLIN)) == POLLHUP) in check_poll() 170 if ((poller[0].revents & (POLLIN|POLLHUP|POLLERR)) == 0) in check_poll() 198 struct pollfd poller[1] = { { tty, POLLIN, 0 } }; in ttyin_ready() 200 return ((poller[0].revents & POLLIN) != 0); in ttyin_ready()
|
| /freebsd/usr.bin/mail/tests/ |
| H A D | mailx_signal_test.c | 101 fds[0].events = POLLIN; in mailx_signal_test() 103 fds[1].events = POLLIN; in mailx_signal_test() 107 if (fds[0].revents == POLLIN && olen < sizeof(obuf)) { in mailx_signal_test() 112 if (fds[1].revents == POLLIN && elen < sizeof(ebuf)) { in mailx_signal_test()
|
| /freebsd/tests/sys/kern/ |
| H A D | timerfd.c | 69 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in wait_for_timerfd() 265 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 582 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 633 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 648 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 681 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 698 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 734 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 762 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() 781 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in ATF_TC_BODY() [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 | 43 #ifndef POLLIN 44 # define POLLIN 0x0001 macro
|
| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | poll-macros.h | 13 #ifndef POLLIN 14 #define POLLIN 0x0001 macro
|
| /freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
| H A D | libzfs_util_os.c | 163 {.fd = ino, .events = POLLIN}, in libzfs_load_module() 164 {.fd = tout, .events = POLLIN}, in libzfs_load_module() 167 if (pfds[0].revents & POLLIN) { in libzfs_load_module() 176 if (pfds[1].revents & POLLIN) in libzfs_load_module()
|
| /freebsd/lib/libc/tests/stdtime/ |
| H A D | detect_tz_changes_test.c | 248 fds[0].events = POLLIN; in ATF_TC_BODY() 272 fds[0].events = POLLIN; in ATF_TC_BODY() 274 fds[1].events = POLLIN; in ATF_TC_BODY() 276 fds[2].events = POLLIN; in ATF_TC_BODY() 281 if (fds[0].revents & POLLIN && olen < sizeof(obuf)) { in ATF_TC_BODY() 315 if (fds[1].revents & POLLIN && elen < sizeof(ebuf)) { in ATF_TC_BODY()
|