Lines Matching refs:getitimer
59 atf_tc_set_md_var(tc, "descr", "getitimer(2) before setitimer(2)");
68 * empty after calling getitimer(2) but before
73 ATF_REQUIRE(getitimer(ITIMER_REAL, &it) == 0);
78 ATF_REQUIRE(getitimer(ITIMER_VIRTUAL, &it) == 0);
83 ATF_REQUIRE(getitimer(ITIMER_PROF, &it) == 0);
91 atf_tc_fail("getitimer(2) modified the timer before it was armed");
97 atf_tc_set_md_var(tc, "descr", "Test errors from getitimer(2)");
105 ATF_REQUIRE_ERRNO(EINVAL, getitimer(-1, &it) == -1);
108 ATF_REQUIRE_ERRNO(EINVAL, getitimer(INT_MAX, &it) == -1);
111 ATF_REQUIRE_ERRNO(EFAULT, getitimer(ITIMER_REAL, (void *)-1) == -1);