Home
last modified time | relevance | path

Searched refs:RLIMIT_MEMLOCK (Results 1 - 25 of 64) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/mlock/
H A Dmlock02.c17 * 2) mlock(2) fails with ENOMEM if the caller had a non-zero RLIMIT_MEMLOCK
23 * and its RLIMIT_MEMLOCK soft resource limit was 0.
53 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &rl); in test_enomem2()
60 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &original); in test_enomem2()
70 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &rl); in test_eperm()
77 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &original); in test_eperm()
91 SAFE_GETRLIMIT(RLIMIT_MEMLOCK, &original); in setup()
/third_party/ltp/testcases/kernel/syscalls/mlock2/
H A Dmlock202.c12 * RLIMIT_MEMLOCK limit.
14 * privileged(CAP_IPC_LOCK) and its RLIMIT_MEMLOCK limit is 0.
56 SAFE_GETRLIMIT(RLIMIT_MEMLOCK, &orig_limit); in verify_mlock2()
59 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &new_limit); in verify_mlock2()
81 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &orig_limit); in verify_mlock2()
/third_party/ltp/testcases/kernel/syscalls/bpf/
H A Dbpf_common.c14 SAFE_GETRLIMIT(RLIMIT_MEMLOCK, &memlock_r); in rlimit_bump_memlock()
16 tst_res(TINFO, "Raising RLIMIT_MEMLOCK to %ld", in rlimit_bump_memlock()
20 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &memlock_r); in rlimit_bump_memlock()
23 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &memlock_r); in rlimit_bump_memlock()
25 tst_res(TINFO, "Can't raise RLIMIT_MEMLOCK, test may fail " in rlimit_bump_memlock()
/third_party/ltp/testcases/kernel/syscalls/mlockall/
H A Dmlockall03.c38 * 1) ENOMEM - If the caller had a non-zero RLIMIT_MEMLOCK
41 * and its RLIMIT_MEMLOCK soft resource limit was 0.
107 MCL_CURRENT, EPERM, "Not a superuser and RLIMIT_MEMLOCK was 0"}, {
233 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
235 "resource for RLIMIT_MEMLOCK to check " in setup_test()
244 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
246 "resource for RLIMIT_MEMLOCK to check " in setup_test()
277 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
280 "resource for RLIMIT_MEMLOCK while " in cleanup_test()
H A Dmlockall02.c188 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
190 "resource for RLIMIT_MEMLOCK to check " in setup_test()
207 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
210 "RLIMIT_MEMLOCK to check for " in setup_test()
238 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
241 "resource for RLIMIT_MEMLOCK while " in cleanup_test()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap20.c63 SAFE_GETRLIMIT(RLIMIT_MEMLOCK, &limit_info); in setup()
67 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &limit_info); in setup()
/third_party/musl/arch/mips/bits/
H A Dresource.h5 #define RLIMIT_MEMLOCK 9 macro
/third_party/musl/arch/mips64/bits/
H A Dresource.h5 #define RLIMIT_MEMLOCK 9 macro
/third_party/musl/arch/mipsn32/bits/
H A Dresource.h5 #define RLIMIT_MEMLOCK 9 macro
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dresource.h60 #define RLIMIT_MEMLOCK 8 macro
/third_party/ltp/testcases/kernel/syscalls/getrlimit/
H A Dgetrlimit01.c29 {RLIMIT_MEMLOCK, "RLIMIT_MEMLOCK"},
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/
H A D15-1.c46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/speculative/
H A D15-1.c46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/
H A D12-1.c12 * (Linux 2.6.9 and later) and its RLIMIT_MEMLOCK soft resource limit set to 0.
52 * and its RLIMIT_MEMLOCK soft resource limit was 0. in set_nonroot()
57 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/
H A D12-1.c12 * (Linux 2.6.9 and later) and its RLIMIT_MEMLOCK soft resource limit set to 0.
51 * and its RLIMIT_MEMLOCK soft resource limit was 0. in set_nonroot()
56 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dresource.h85 #define RLIMIT_MEMLOCK 8 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dresource.h85 #define RLIMIT_MEMLOCK 8 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dresource.h85 #define RLIMIT_MEMLOCK 8 macro
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dresource.h85 #define RLIMIT_MEMLOCK 8 macro
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
H A D18-1.c15 * 2. Call setrlimit(), set rlim_cur of resource RLIMIT_MEMLOCK to a
95 if (setrlimit(RLIMIT_MEMLOCK, &rlim) == -1) { in main()
/third_party/musl/include/sys/
H A Dresource.h85 #define RLIMIT_MEMLOCK 8 macro
/third_party/toybox/toys/posix/
H A Dulimit.c66 RLIMIT_SIGPENDING, RLIMIT_MEMLOCK, RLIMIT_RSS, RLIMIT_NOFILE, 0, in ulimit_main()
/third_party/rust/crates/libc/src/unix/linux_like/linux/arch/generic/
H A Dmod.rs245 pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8; consts
265 pub const RLIMIT_MEMLOCK: ::c_int = 8; consts
/third_party/rust/crates/libc/src/unix/linux_like/linux/arch/mips/
H A Dmod.rs230 pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 9; consts
250 pub const RLIMIT_MEMLOCK: ::c_int = 9; consts
/third_party/rust/crates/libc/src/unix/linux_like/linux/arch/powerpc/
H A Dmod.rs207 pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8; consts
228 pub const RLIMIT_MEMLOCK: ::c_int = 8; consts

Completed in 9 milliseconds

123