Lines Matching refs:prctl
10 * Test PR_GET_TIMERSLACK and PR_SET_TIMERSLACK of prctl(2).
21 * and no person will set this over 4s. prctl return value is int, so
28 #include <sys/prctl.h>
34 #include "lapi/prctl.h"
66 TEST(prctl(PR_GET_TIMERSLACK));
68 tst_res(TPASS, "%s prctl(PR_GET_TIMERSLACK) got %lu expectedly",
71 tst_res(TFAIL, "%s prctl(PR_GET_TIMERSLACK) expected %lu got %lu",
86 current_value = prctl(PR_GET_TIMERSLACK);
87 prctl(PR_SET_TIMERSLACK, 0);
88 default_value = prctl(PR_GET_TIMERSLACK);
105 TEST(prctl(PR_SET_TIMERSLACK, tc->setvalue));
107 tst_res(TFAIL | TTERRNO, "prctl(PR_SET_TIMERSLACK, %lu) failed",
112 tst_res(TPASS, "prctl(PR_SET_TIMERSLACK, %lu) succeed", tc->setvalue);
123 TEST(prctl(PR_GET_TIMERSLACK));