Lines Matching refs:POLLHUP
60 pfd.events = POLLIN | POLLHUP | POLLOUT;
72 pfd.events = POLLIN | POLLHUP | POLLOUT;
87 pfd.events = POLLIN | POLLHUP | POLLOUT;
398 "Check POLLHUP behavior with fifos [1]");
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);
426 * Check that POLLHUP is cleared when a writer re-connects.
448 "Check POLLHUP behavior with fifos [2]");
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);
581 * with EPIPE/SIGPIPE, and thus POLLOUT must be set. POLLHUP
583 * exclusive with POLLOUT). Except we _do_ return POLLHUP
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);
621 check_pollclosed_delayed_write(writefd, readfd, POLLHUP, EIO);
625 check_pollclosed_delayed_read(int readfd, int writefd, int pollhup)
652 * set, and the write side has been closed, so POLLHUP should
654 * not if it's a socket, where POLLHUP is never set. Since we
660 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
661 pollhup|POLLIN,
663 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
664 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
680 * POLLHUP|POLLIN state should be persistent (until the writer
688 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
689 pollhup|POLLIN,
691 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
692 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
699 check_pollclosed_delayed_read(readfd, writefd, POLLHUP);
706 check_pollclosed_delayed_read(readfd, writefd, /*no POLLHUP*/0);
796 * with EPIPE/SIGPIPE, and thus POLLOUT must be set. POLLHUP
798 * exclusive with POLLOUT). Except we _do_ return POLLHUP
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);
819 check_pollclosed_immediate_readnone(int readfd, int writefd, int pollhup)
832 * set, and the write side has been closed, so POLLHUP should
834 * it's a socket, where POLLHUP is never set. Since we didn't
839 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
840 pollhup|POLLIN,
842 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
843 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
853 check_pollclosed_immediate_readsome(int readfd, int writefd, int pollhup)
868 * and the write side has been closed, so POLLHUP should also
870 * it's a socket, where POLLHUP is never set. Since we didn't
876 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
877 pollhup|POLLIN,
879 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
880 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
895 * set, and the write side has been closed, so POLLHUP should
897 * not if it's a socket, where POLLHUP is never set. Since we
903 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
904 pollhup|POLLIN,
906 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
907 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
916 * POLLHUP|POLLIN state should be persistent (until the writer
922 ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
923 pollhup|POLLIN,
925 " POLLHUP=0x%x POLLIN=0x%x POLLOUT=0x%x",
926 pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
1091 "Checks POLLHUP with closing the first opener of a named pipe");
1106 "Checks POLLHUP with closing the first opener of a named pipe");
1121 "Checks POLLHUP with closing the first opener of a named pipe");
1129 * POLLHUP|POLLIN.
1131 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1135 check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
1142 "Checks POLLHUP with closing the first opener of a named pipe");
1150 check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
1157 "Checks POLLHUP with closing the first opener of a named pipe");
1173 "Checks POLLHUP with closing the first opener of a named pipe");
1180 * poll(2) wakes up with POLLHUP|POLLIN, but the state isn't
1184 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1196 "Checks POLLHUP with closing the first opener of a named pipe");
1212 "Checks POLLHUP with closing the first opener of a named pipe");
1219 * poll(2) wakes up with POLLHUP|POLLIN, but the state isn't
1223 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1235 "Checks POLLHUP with closing the second opener of a named pipe");
1250 "Checks POLLHUP with closing the second opener of a named pipe");
1265 "Checks POLLHUP with closing the second opener of a named pipe");
1273 * POLLHUP|POLLIN.
1275 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1279 check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
1286 "Checks POLLHUP with closing the second opener of a named pipe");
1294 check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
1301 "Checks POLLHUP with closing the second opener of a named pipe");
1317 "Checks POLLHUP with closing the second opener of a named pipe");
1324 * poll(2) wakes up with POLLHUP|POLLIN, but the state isn't
1328 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1340 "Checks POLLHUP with closing the second opener of a named pipe");
1356 "Checks POLLHUP with closing the second opener of a named pipe");
1363 * poll(2) wakes up with POLLHUP|POLLIN, but the state isn't
1367 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1379 "Checks POLLHUP with a closed pipe");
1386 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1387 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1391 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1402 "Checks POLLHUP with a closed pipe");
1409 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1410 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1414 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1425 "Checks POLLHUP with a closed pipe");
1433 check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
1440 "Checks POLLHUP with a closed pipe");
1448 check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
1455 "Checks POLLHUP with a closed pipe");
1462 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1463 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1467 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1479 "Checks POLLHUP with a closed pipe");
1495 "Checks POLLHUP with a closed pipe");
1502 * poll(2) returns POLLHUP|POLLOUT, which is forbidden --
1503 * POLLHUP and POLLOUT are mutually exclusive. And POLLHUP is
1507 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1519 "Checks POLLHUP with a closed pipe");
1535 "Checks POLLHUP with closing the pty application side");
1543 check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
1550 "Checks POLLHUP with closing the pty application side");
1558 check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
1565 "Checks POLLHUP with closing the pty application side");
1572 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1575 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1579 check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
1586 "Checks POLLHUP with closing the pty application side");
1593 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1596 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1600 check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
1607 "Checks POLLHUP with closing the pty application side");
1617 atf_tc_expect_signal(SIGALRM, "PR kern/59056: poll POLLHUP bugs");
1629 "Checks POLLHUP with closing the pty application side");
1636 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1639 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1651 "Checks POLLHUP with closing the pty application side");
1661 atf_tc_expect_signal(SIGALRM, "PR kern/59056: poll POLLHUP bugs");
1673 "Checks POLLHUP with closing the pty application side");
1680 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1683 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1695 "Checks POLLHUP with closing the pty host side");
1703 check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
1710 "Checks POLLHUP with closing the pty host side");
1718 check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
1725 "Checks POLLHUP with closing the pty host side");
1732 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1735 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1739 check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
1746 "Checks POLLHUP with closing the pty host side");
1753 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1756 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1760 check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
1767 "Checks POLLHUP with closing the pty host side");
1783 "Checks POLLHUP with closing the pty host side");
1790 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1793 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1805 "Checks POLLHUP with closing the pty host side");
1821 "Checks POLLHUP with closing the pty host side");
1828 * poll(2) returns POLLHUP but not POLLIN even though read(2)
1831 atf_tc_expect_fail("PR kern/59056: poll POLLHUP bugs");
1843 "Checks POLLHUP with closing the first half of a socketpair");
1858 "Checks POLLHUP with closing the first half of a socketpair");
1873 "Checks POLLHUP with closing the first half of a socketpair");
1881 check_pollclosed_immediate_readsome(readfd, writefd, /*no POLLHUP*/0);
1888 "Checks POLLHUP with closing the first half of a socketpair");
1896 check_pollclosed_immediate_readnone(readfd, writefd, /*no POLLHUP*/0);
1903 "Checks POLLHUP with closing the first half of a socketpair");
1919 "Checks POLLHUP with closing the first half of a socketpair");
1935 "Checks POLLHUP with closing the first half of a socketpair");
1951 "Checks POLLHUP with closing the first half of a socketpair");
1967 "Checks POLLHUP with closing the second half of a socketpair");
1982 "Checks POLLHUP with closing the second half of a socketpair");
1997 "Checks POLLHUP with closing the second half of a socketpair");
2005 check_pollclosed_immediate_readsome(readfd, writefd, /*no POLLHUP*/0);
2012 "Checks POLLHUP with closing the second half of a socketpair");
2020 check_pollclosed_immediate_readnone(readfd, writefd, /*no POLLHUP*/0);
2027 "Checks POLLHUP with closing the second half of a socketpair");
2043 "Checks POLLHUP with closing the second half of a socketpair");
2059 "Checks POLLHUP with closing the second half of a socketpair");
2075 "Checks POLLHUP with closing the second half of a socketpair");