Lines Matching refs:setitimer
59 atf_tc_set_md_var(tc, "descr", "getitimer(2) before setitimer(2)");
69 * actually arming the timer with setitimer(2).
117 atf_tc_set_md_var(tc, "descr", "A basic test of setitimer(2)");
132 ATF_REQUIRE(setitimer(ITIMER_REAL, &it, NULL) == 0);
136 * setitimer(2) and sleep(3) can be
150 atf_tc_set_md_var(tc, "descr", "Test errors from setitimer(2)"
159 ATF_REQUIRE_ERRNO(EINVAL, setitimer(-1, &it, &ot) == -1);
162 ATF_REQUIRE_ERRNO(EINVAL, setitimer(INT_MAX, &it, &ot) == -1);
165 ATF_REQUIRE_ERRNO(EFAULT, setitimer(ITIMER_REAL,(void*)-1, &ot) == -1);
171 atf_tc_set_md_var(tc, "descr", "Test old values from setitimer(2)");
190 ATF_REQUIRE(setitimer(ITIMER_REAL, &it, &ot) == 0);
198 ATF_REQUIRE(setitimer(ITIMER_REAL, &it, &ot) == 0);
202 atf_tc_fail("setitimer(2) did not store old values");
208 atf_tc_set_md_var(tc, "descr", "Test invalid values in setitimer(2)");
231 setitimer(ITIMER_REAL, &it[i], NULL) == -1);