Home | History | Annotate | Download | only in sys

Lines Matching refs:POLLOUT

60 	pfd.events = POLLIN | POLLHUP | POLLOUT;
72 pfd.events = POLLIN | POLLHUP | POLLOUT;
87 pfd.events = POLLIN | POLLHUP | POLLOUT;
175 pfds[1].events = POLLOUT;
194 ATF_REQUIRE_EQ_MSG(pfds[1].revents, POLLOUT, "got: %d",\
203 ATF_REQUIRE_EQ_MSG(pfds[1].revents, POLLOUT, "got: %d",
217 ATF_REQUIRE_EQ_MSG(pfds[1].revents, POLLOUT, "got: %d",
268 "Check POLLIN/POLLOUT behavior with fifos");
296 pfd[1].events = POLLOUT | POLLWRNORM;
303 ATF_REQUIRE_EQ_MSG(pfd[1].revents, POLLOUT|POLLWRNORM,
315 ATF_REQUIRE_EQ_MSG(pfd[1].revents, POLLOUT|POLLWRNORM,
366 ATF_REQUIRE_EQ_MSG(pfd[1].revents, POLLOUT|POLLWRNORM,
382 ATF_REQUIRE_EQ_MSG(pfd[1].revents, POLLOUT|POLLWRNORM,
421 ATF_REQUIRE_EQ_MSG((pfd.revents & (POLLHUP|POLLOUT)), POLLHUP,
422 "revents=0x%x expected POLLHUP=0x%x but not POLLOUT=0x%x",
423 pfd.revents, POLLHUP, POLLOUT);
491 ATF_REQUIRE_EQ_MSG((pfd.revents & (POLLHUP|POLLOUT)), POLLHUP,
492 "revents=0x%x expected POLLHUP=0x%x but not POLLOUT=0x%x",
493 pfd.revents, POLLHUP, POLLOUT);
557 struct pollfd pfd = { .fd = writefd, .events = POLLOUT };
581 * with EPIPE/SIGPIPE, and thus POLLOUT must be set. POLLHUP
583 * exclusive with POLLOUT). Except we _do_ return POLLHUP
584 * instead of POLLOUT for terminals.
590 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)), expected,
592 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
593 pfd.revents, expected, POLLOUT, POLLHUP, POLLIN);
614 check_pollclosed_delayed_write(writefd, readfd, POLLOUT, EPIPE);
655 * didn't ask for POLLOUT, it should be clear.
660 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
663 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
664 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
688 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
691 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
692 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
785 struct pollfd pfd = { .fd = writefd, .events = POLLOUT };
796 * with EPIPE/SIGPIPE, and thus POLLOUT must be set. POLLHUP
798 * exclusive with POLLOUT). Except we _do_ return POLLHUP
799 * instead of POLLOUT for terminals.
805 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)), expected,
807 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
808 pfd.revents, expected, POLLOUT, POLLHUP, POLLIN);
835 * ask for POLLOUT, it should be clear.
839 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
842 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
843 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
871 * ask for POLLOUT, it should be clear.
876 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
879 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
880 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
898 * didn't ask for POLLOUT, it should be clear.
903 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
906 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
907 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
922 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
925 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
926 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
1099 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1114 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1243 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1258 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1386 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1387 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1389 * polling for write. So it should be POLLOUT.
1395 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1409 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1410 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1412 * polling for write. So it should be POLLOUT.
1418 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1462 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1463 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1465 * polling for write. So it should be POLLOUT.
1502 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1503 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1505 * polling for write. So it should be POLLOUT.
1851 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1866 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1975 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);
1990 check_pollclosed_immediate_write(writefd, readfd, POLLOUT, EPIPE);