Home | History | Annotate | Download | only in sys

Lines Matching refs:nanosleep

56 	atf_tc_set_md_var(tc, "descr", "Test that nanosleep(2) works");
74 ATF_REQUIRE(nanosleep(&tsn, NULL) == 0);
100 "Test errors from nanosleep(2) (PR bin/14558)");
110 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
115 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
120 ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0);
123 ATF_REQUIRE_ERRNO(EFAULT, nanosleep((void *)-1, NULL) == -1);
129 atf_tc_set_md_var(tc, "descr", "Test signal for nanosleep(2)");
139 * Test that a signal interrupts nanosleep(2).
159 if (nanosleep(&tsn, &tsr) != -1)
176 atf_tc_fail("signal did not interrupt nanosleep(2)");