/third_party/ltp/include/ |
H A D | tst_sched.h | 43 return TST_LIBC_SCHED_SCALL_(sched_setparam, pid, param); in libc_sched_setparam() 64 int (*sched_setparam)(pid_t pid, const struct sched_param *param); member 70 { .sched_setparam = libc_sched_setparam, 76 { .sched_setparam = sys_sched_setparam,
|
/third_party/musl/libc-test/src/functionalext/sched/ |
H A D | sched_setparam.c | 26 * @tc.name : sched_setparam 27 * @tc.desc : Test the function of sched_setparam with normal input. 47 EXPECT_EQ("sched_setparam_0010", sched_setparam(pid, ¶m), 0); in sched_setparam_0010() 51 * @tc.name : sched_setparam 52 * @tc.desc : When param is NULL, call sched_setparam. 59 EXPECT_EQ("sched_setparam_0020", sched_setparam(pid, NULL), -1); in sched_setparam_0020()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 2-2.c | 62 sched_setparam(getpid(), ¶m); in child_process() 150 if (sched_setparam(0, ¶m) != 0) { in main() 151 perror("An error occurs when calling sched_setparam()"); in main() 170 if (sched_setparam(0, ¶m) != 0) { in main() 171 perror("An error occurs when calling sched_setparam()"); in main()
|
H A D | 2-1.c | 62 sched_setparam(getpid(), ¶m); in child_process() 147 if (sched_setparam(0, ¶m) != 0) { in main() 148 perror("An error occurs when calling sched_setparam()"); in main() 167 if (sched_setparam(0, ¶m) != 0) { in main() 168 perror("An error occurs when calling sched_setparam()"); in main()
|
H A D | 25-4.c | 11 * Test that sched_setparam() sets errno == EINVAL when the sched_ss_max_repl 37 result = sched_setparam(0, ¶m); in main() 54 result = sched_setparam(0, ¶m); in main()
|
H A D | 1-1.c | 11 * Test that sched_setparam() sets the scheduling parameters to the parameters 80 result = sched_setparam(child_pid, ¶m); in main() 106 result = sched_setparam(child_pid, ¶m); in main()
|
H A D | 9-1.c | 28 * 4. Call sched_setparam with an mean priority and the pid value of the 58 if (sched_setparam(getpid(), ¶m) != 0) { in child_process() 59 perror("An error occurs when calling sched_setparam()"); in child_process() 87 * block between fork() and sched_setparam(), child in test_process() 128 key = ftok("conformance/interfaces/sched_setparam/9-1.c", 1234); in main() 185 if (sched_setparam(child_pid[i], ¶m) != 0) { in main() 186 perror("An error occurs when calling sched_setparam()"); in main()
|
H A D | 22-1.c | 11 * Test that the sched_setparam() function return zero on success. 28 result = sched_setparam(0, ¶m); in main()
|
H A D | 23-5.c | 36 sched_setparam(0, ¶m); in main()
|
H A D | 23-4.c | 36 sched_setparam(0, ¶m); in main()
|
H A D | 23-1.c | 45 sched_setparam(0, ¶m); in main()
|
H A D | 23-2.c | 57 sched_setparam(0, ¶m); in main()
|
H A D | 23-7.c | 11 * Test that sched_setparam() sets errno == ESRCH when no process can be found 50 sched_setparam(child_pid, ¶m); in main()
|
H A D | 25-1.c | 11 * Test that sched_setparam() sets errno == EINVAL when the sched_priority 41 result = sched_setparam(0, ¶m); in main()
|
H A D | 23-3.c | 42 sched_setparam(0, ¶m); in main()
|
H A D | 26-1.c | 11 * Test that sched_setparam() sets errno == EPERM when the requesting process 73 result = sched_setparam(1, ¶m); in main()
|
H A D | 25-3.c | 11 * Test that sched_setparam() sets errno == EINVAL when the 42 result = sched_setparam(0, ¶m); in main()
|
H A D | 27-1.c | 11 * Test that sched_setparam() sets errno == ESRCH when no process can be found 15 * sched_setparam with the pid of defunct child. 51 result = sched_setparam(child_pid, ¶m); in main() 61 ("This process does not have the permission to invoke sched_setparam().\nTry to launch this test as root\n"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/ |
H A D | 16-1-buildonly.c | 12 * int sched_setparam(pid_t, const struct sched_param *); 24 dummyvar = sched_setparam; in dummyfcn()
|
/third_party/musl/porting/linux/user/src/sched/ |
H A D | sched_setparam.c | 5 int sched_setparam(pid_t pid, const struct sched_param *param)
in sched_setparam() function
|
/third_party/musl/porting/liteos_a/user/src/sched/ |
H A D | sched_setparam.c | 6 int sched_setparam(pid_t pid, const struct sched_param *param) in sched_setparam() function
|
/third_party/ltp/testcases/kernel/syscalls/sched_setparam/ |
H A D | sched_setparam01.c | 11 * Basic test for sched_setparam(2) 13 * Call sched_setparam(2) with pid=0 so that it will 25 TST_EXP_PASS(tv->sched_setparam(0, &p), "sched_setparam(0, 0)"); in run()
|
H A D | sched_setparam05.c | 11 * Verify that sched_setparam() fails if the user does not have proper 31 TST_EXP_FAIL(tv->sched_setparam(getppid(), &p), EPERM, in run() 32 "sched_setparam(%d, 0)", getppid()); in run()
|
H A D | sched_setparam04.c | 12 * 1. sched_setparam(2) returns -1 and sets errno to ESRCH if the 14 * 2. sched_setparam(2) returns -1 and sets errno to EINVAL if 16 * 3. sched_setparam(2) returns -1 and sets errno to EINVAL if the 18 * 4. sched_setparam(2) returns -1 sets errno to EINVAL if the 58 TST_EXP_FAIL(tv->sched_setparam(*tc->pid, tc->p), tc->exp_errno, "%s", tc->desc); in run()
|
/third_party/musl/src/sched/ |
H A D | sched_setparam.c | 8 int sched_setparam(pid_t pid, const struct sched_param *param) in sched_setparam() function
|