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