Home
last modified time | relevance | path

Searched refs:sched_setparam (Results 1 - 25 of 52) sorted by relevance

123

/third_party/ltp/include/
H A Dtst_sched.h43 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 Dsched_setparam.c26 * @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, &param), 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 D2-2.c62 sched_setparam(getpid(), &param); in child_process()
150 if (sched_setparam(0, &param) != 0) { in main()
151 perror("An error occurs when calling sched_setparam()"); in main()
170 if (sched_setparam(0, &param) != 0) { in main()
171 perror("An error occurs when calling sched_setparam()"); in main()
H A D2-1.c62 sched_setparam(getpid(), &param); in child_process()
147 if (sched_setparam(0, &param) != 0) { in main()
148 perror("An error occurs when calling sched_setparam()"); in main()
167 if (sched_setparam(0, &param) != 0) { in main()
168 perror("An error occurs when calling sched_setparam()"); in main()
H A D25-4.c11 * Test that sched_setparam() sets errno == EINVAL when the sched_ss_max_repl
37 result = sched_setparam(0, &param); in main()
54 result = sched_setparam(0, &param); in main()
H A D1-1.c11 * Test that sched_setparam() sets the scheduling parameters to the parameters
80 result = sched_setparam(child_pid, &param); in main()
106 result = sched_setparam(child_pid, &param); in main()
H A D9-1.c28 * 4. Call sched_setparam with an mean priority and the pid value of the
58 if (sched_setparam(getpid(), &param) != 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], &param) != 0) { in main()
186 perror("An error occurs when calling sched_setparam()"); in main()
H A D22-1.c11 * Test that the sched_setparam() function return zero on success.
28 result = sched_setparam(0, &param); in main()
H A D23-5.c36 sched_setparam(0, &param); in main()
H A D23-4.c36 sched_setparam(0, &param); in main()
H A D23-1.c45 sched_setparam(0, &param); in main()
H A D23-2.c57 sched_setparam(0, &param); in main()
H A D23-7.c11 * Test that sched_setparam() sets errno == ESRCH when no process can be found
50 sched_setparam(child_pid, &param); in main()
H A D25-1.c11 * Test that sched_setparam() sets errno == EINVAL when the sched_priority
41 result = sched_setparam(0, &param); in main()
H A D23-3.c42 sched_setparam(0, &param); in main()
H A D26-1.c11 * Test that sched_setparam() sets errno == EPERM when the requesting process
73 result = sched_setparam(1, &param); in main()
H A D25-3.c11 * Test that sched_setparam() sets errno == EINVAL when the
42 result = sched_setparam(0, &param); in main()
H A D27-1.c11 * 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, &param); 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 D16-1-buildonly.c12 * 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 Dsched_setparam.c5 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 Dsched_setparam.c6 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 Dsched_setparam01.c11 * 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 Dsched_setparam05.c11 * 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 Dsched_setparam04.c12 * 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 Dsched_setparam.c8 int sched_setparam(pid_t pid, const struct sched_param *param) in sched_setparam() function

Completed in 8 milliseconds

123