Lines Matching refs:eventfd
36 #include <sys/eventfd.h>
169 "validates basic normal eventfd operation");
179 ATF_REQUIRE((ctx.efd = eventfd(0, 0)) >= 0);
224 "validates semaphore and non-blocking eventfd operation");
231 ATF_REQUIRE((efd = eventfd(3, EFD_SEMAPHORE | EFD_NONBLOCK)) >= 0);
279 ATF_REQUIRE((efd = eventfd(0, EFD_NONBLOCK)) >= 0);
326 * Write the maximum value into the eventfd. This should result
327 * in the eventfd becoming readable but NOT writable.
395 * The maximum value was written to the eventfd, so we
510 ATF_REQUIRE((ctx.efd = eventfd(0, EFD_NONBLOCK)) >= 0);
526 * Write the max value to the eventfd so that it becomes readable
547 * Now read the value, which will reset the eventfd to 0 and
568 * Write the max value to the eventfd so that it becomes readable
590 * Now read the value, which will reset the eventfd to 0 and
611 * Write the max value to the eventfd so that it becomes readable
633 * Now read the value, which will reset the eventfd to 0 and
696 ATF_REQUIRE((ctx.efd = eventfd(1, 0)) >= 0);
732 "validates behavior when eventfd() called with bad flags");
737 eventfd(0, ~(EFD_SEMAPHORE | EFD_CLOEXEC | EFD_NONBLOCK)) == -1);
753 ATF_REQUIRE((efd = eventfd(1, EFD_NONBLOCK)) >= 0);
791 ATF_REQUIRE((efd = eventfd(1, 0)) >= 0);
806 ATF_REQUIRE((efd = eventfd(1, EFD_NONBLOCK | EFD_CLOEXEC)) >= 0);