Lines Matching refs:nanosleep
65 atf_tc_set_md_var(tc, "descr", "Test that nanosleep(2) works");
83 ATF_REQUIRE(nanosleep(&tsn, NULL) == 0);
109 "Test errors from nanosleep(2) (PR bin/14558)");
119 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
124 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
129 ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0);
132 ATF_REQUIRE_ERRNO(EFAULT, nanosleep((void *)-1, NULL) == -1);
138 atf_tc_set_md_var(tc, "descr", "Test signal for nanosleep(2)");
148 * Test that a signal interrupts nanosleep(2).
168 if (nanosleep(&tsn, &tsr) != -1)
185 atf_tc_fail("signal did not interrupt nanosleep(2)");
191 atf_tc_set_md_var(tc, "descr", "Test [EINTR] for nanosleep(2)");
203 * Test that [EINTR] properly handles rmtp for nanosleep(2).
224 while (nanosleep(&ts, &ts) != 0) {
256 atf_tc_fail("nanosleep(2) handled rtmp incorrectly");