/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getpriority.c | 33 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 D | misc_getpriority_test.cpp | 11 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 D | libc_syscall.cpp | 150 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 D | getpriority.c | 4 int getpriority(int which, id_t who) in getpriority() function
|
/third_party/musl/src/misc/ |
H A D | getpriority.c | 4 int getpriority(int which, id_t who) in getpriority() function
|
/third_party/musl/src/unistd/ |
H A D | nice.c | 13 prio += getpriority(PRIO_PROCESS, 0); in nice()
|
/third_party/ltp/testcases/kernel/syscalls/getpriority/ |
H A D | getpriority01.c | 9 * 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 D | getpriority02.c | 10 * 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 D | renice.c | 45 if (setpriority(which, id, getpriority(which, id)+TT.n) < 0) in renice_main()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_resource.c | 35 {int(*p)(int,id_t) = getpriority;} in f()
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | resource.h | 53 int getpriority (int, id_t);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | resource.h | 53 int getpriority (int, id_t);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | resource.h | 53 int getpriority (int, id_t);
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | resource.h | 53 int getpriority (int, id_t);
|
/third_party/musl/include/sys/ |
H A D | resource.h | 53 int getpriority (int, id_t);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | CrashRecoveryContext.cpp | 448 return getpriority(PRIO_DARWIN_THREAD, 0) == 1; in hasThreadBackgroundPriority()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/ |
H A D | mod.rs | 375 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 D | mod.rs | 686 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 D | mod.rs | 741 pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; in getpriority() functions
|
/third_party/libuv/src/unix/ |
H A D | core.c | 1565 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 D | safe_macros.c | 1038 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 D | core.c | 1427 r = getpriority(PRIO_PROCESS, (int) pid); in uv_os_getpriority()
|
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/ |
H A D | mod.rs | 1877 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 D | mod.rs | 1289 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 D | mod.rs | 1513 pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int; in getpriority() functions
|