Lines Matching refs:pollfd
493 struct pollfd pollfd; in ATF_TC_BODY() local
502 pollfd.fd = pathfd; in ATF_TC_BODY()
503 pollfd.events = POLLIN; in ATF_TC_BODY()
504 pollfd.revents = 0; in ATF_TC_BODY()
505 ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll")); in ATF_TC_BODY()
506 ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x", in ATF_TC_BODY()
507 pollfd.revents); in ATF_TC_BODY()
508 pollfd.events = POLLOUT; in ATF_TC_BODY()
509 pollfd.revents = 0; in ATF_TC_BODY()
510 ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll")); in ATF_TC_BODY()
511 ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x", in ATF_TC_BODY()
512 pollfd.revents); in ATF_TC_BODY()