Lines Matching refs:prctl
10 * Test PR_GET_NAME and PR_SET_NAME of prctl(2).
23 #include <sys/prctl.h>
28 #include "lapi/prctl.h"
45 TEST(prctl(PR_SET_NAME, tc->setname));
47 tst_res(TFAIL | TTERRNO, "prctl(PR_SET_NAME) failed");
50 tst_res(TPASS, "prctl(PR_SET_NAME, '%s') succeeded", tc->setname);
52 TEST(prctl(PR_GET_NAME, buf));
54 tst_res(TFAIL | TTERRNO, "prctl(PR_GET_NAME) failed");
60 "prctl(PR_GET_NAME) failed, expected %s, got %s",
64 tst_res(TPASS, "prctl(PR_GET_NAME) succeeded, thread name is %s", buf);