Home
last modified time | relevance | path

Searched refs:getpriority (Results 1 - 25 of 32) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dgetpriority.c33 int ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0100()
38 ret = getpriority(PRIO_PGRP, getpgid(getpid())); in getpriority_0100()
43 ret = getpriority(PRIO_USER, getuid()); in getpriority_0100()
62 ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0200()
73 ret = getpriority(PRIO_PGRP, getpgid(getpid())); in getpriority_0200()
84 ret = getpriority(PRIO_USER, getuid()); in getpriority_0200()
98 int ret = getpriority(-1, -1); in getpriority_0300()
103 ret = getpriority(TEST_WHO_ERROR, getpid()); in getpriority_0300()
/third_party/musl/libc-test/src/functionalext/supplement/misc/misc_gtest/
H A Dmisc_getpriority_test.cpp11 priorityNum = getpriority(PRIO_USER, getuid());
29 * @tc.desc: The testing viewpoint of this test case is to verify that the getpriority function can successfully obtain
38 int result2 = getpriority(PRIO_PROCESS, getpid()); in HWTEST_F()
44 * @tc.desc: The testing viewpoint of this test case is to verify that the getpriority function can successfully obtain
53 int result2 = getpriority(PRIO_PGRP, getpgid(getpid())); in HWTEST_F()
59 * @tc.desc: The testing viewpoint of this test case is to verify that the getpriority function can successfully obtain
68 int result2 = getpriority(PRIO_USER, getuid()); in HWTEST_F()
/third_party/musl/Benchmark/musl/
H A Dlibc_syscall.cpp150 benchmark::DoNotOptimize(getpriority(PRIO_PROCESS, pid)); in Bm_function_Syscall_getpriority()
157 int prio = getpriority(PRIO_PROCESS, pid); in Bm_function_Syscall_setpriority()
159 perror("getpriority failed"); in Bm_function_Syscall_setpriority()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dgetpriority.c4 int getpriority(int which, id_t who) in getpriority() function
/third_party/musl/src/misc/
H A Dgetpriority.c4 int getpriority(int which, id_t who) in getpriority() function
/third_party/musl/src/unistd/
H A Dnice.c13 prio += getpriority(PRIO_PROCESS, 0); in nice()
/third_party/ltp/testcases/kernel/syscalls/getpriority/
H A Dgetpriority01.c9 * Verify that getpriority(2) succeeds get the scheduling priority of
34 TEST(getpriority(tc->which, 0)); in verify_getpriority()
37 tst_res(TFAIL | TTERRNO, "getpriority(%d, 0) failed", in verify_getpriority()
43 tst_res(TFAIL, "getpriority(%d, 0) returned %ld, " in verify_getpriority()
49 tst_res(TPASS, "getpriority(%d, 0) returned %ld", in verify_getpriority()
H A Dgetpriority02.c10 * 1) getpriority(2) fails with -1 and sets errno to EINVAL if 'which'
12 * 2) getpriority(2) fails with -1 and sets errno to ESRCH if no
42 TEST(getpriority(tc->which, tc->who)); in verify_getpriority()
45 tst_res(TFAIL, "getpriority(%d, %d) succeeds unexpectedly, " in verify_getpriority()
52 "getpriority(%d, %d) should fail with %s", in verify_getpriority()
57 tst_res(TPASS | TTERRNO, "getpriority(%d, %d) fails as expected", in verify_getpriority()
/third_party/toybox/toys/posix/
H A Drenice.c45 if (setpriority(which, id, getpriority(which, id)+TT.n) < 0) in renice_main()
/third_party/musl/libc-test/src/api/
H A Dsys_resource.c35 {int(*p)(int,id_t) = getpriority;} in f()
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dresource.h53 int getpriority (int, id_t);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dresource.h53 int getpriority (int, id_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dresource.h53 int getpriority (int, id_t);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dresource.h53 int getpriority (int, id_t);
/third_party/musl/include/sys/
H A Dresource.h53 int getpriority (int, id_t);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DCrashRecoveryContext.cpp448 return getpriority(PRIO_DARWIN_THREAD, 0) == 1; in hasThreadBackgroundPriority()
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/
H A Dmod.rs375 pub fn getpriority(which: ::__priority_which_t, who: ::id_t) -> ::c_int; in getpriority() functions
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/
H A Dmod.rs686 pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; in getpriority() functions
/third_party/rust/crates/libc/src/unix/linux_like/linux/musl/
H A Dmod.rs741 pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; in getpriority() functions
/third_party/libuv/src/unix/
H A Dcore.c1565 r = getpriority(PRIO_PROCESS, (int) pid); in uv_os_getpriority()
1609 r = getpriority(PRIO_PROCESS, pid); in uv_thread_getpriority()
/third_party/ltp/lib/
H A Dsafe_macros.c1038 rval = getpriority(which, who); in safe_getpriority()
1042 "getpriority(%i, %i) failed", which, who); in safe_getpriority()
1045 "getpriority(%i, %i) failed with return value %d", in safe_getpriority()
/third_party/node/deps/uv/src/unix/
H A Dcore.c1427 r = getpriority(PRIO_PROCESS, (int) pid); in uv_os_getpriority()
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/
H A Dmod.rs1877 pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; in getpriority() functions
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/
H A Dmod.rs1289 pub fn getpriority(which: ::__priority_which_t, who: ::id_t) -> ::c_int; in getpriority() functions
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/
H A Dmod.rs1513 pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int; in getpriority() functions

Completed in 27 milliseconds

12