Home
last modified time | relevance | path

Searched refs:RLIMIT_MEMLOCK (Results 1 – 25 of 63) sorted by relevance

123

/external/strace/xlat/
Dresources.h70 #if defined(RLIMIT_MEMLOCK) || (defined(HAVE_DECL_RLIMIT_MEMLOCK) && HAVE_DECL_RLIMIT_MEMLOCK)
72 static_assert((RLIMIT_MEMLOCK) == (9), "RLIMIT_MEMLOCK != 9");
75 # define RLIMIT_MEMLOCK 9
106 #if defined(RLIMIT_MEMLOCK) || (defined(HAVE_DECL_RLIMIT_MEMLOCK) && HAVE_DECL_RLIMIT_MEMLOCK)
108 static_assert((RLIMIT_MEMLOCK) == (9), "RLIMIT_MEMLOCK != 9");
111 # define RLIMIT_MEMLOCK 9
135 #if defined(RLIMIT_MEMLOCK) || (defined(HAVE_DECL_RLIMIT_MEMLOCK) && HAVE_DECL_RLIMIT_MEMLOCK)
137 static_assert((RLIMIT_MEMLOCK) == (8), "RLIMIT_MEMLOCK != 8");
140 # define RLIMIT_MEMLOCK 8
171 #if defined(RLIMIT_MEMLOCK) || (defined(HAVE_DECL_RLIMIT_MEMLOCK) && HAVE_DECL_RLIMIT_MEMLOCK)
[all …]
Dresources.in13 RLIMIT_MEMLOCK 9
19 RLIMIT_MEMLOCK 9
24 RLIMIT_MEMLOCK 8
30 RLIMIT_MEMLOCK 8
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c93 SAFE_GETRLIMIT(cleanup, RLIMIT_MEMLOCK, &original); in setup()
116 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_enomem1()
141 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_enomem2()
154 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &original); in test_enomem2()
170 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_eperm()
183 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &original); in test_eperm()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_rlimit.h11 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in bpf_rlimit_ctor()
19 if (setrlimit(RLIMIT_MEMLOCK, &rlim_new) < 0) { in bpf_rlimit_ctor()
26 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in bpf_rlimit_ctor()
/external/ltp/testcases/kernel/syscalls/mlock2/
Dmlock202.c56 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()
/external/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c188 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
210 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
243 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
Dmlockall03.c233 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
244 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test()
276 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
/external/kernel-headers/original/uapi/asm-generic/
Dresource.h34 #ifndef RLIMIT_MEMLOCK
35 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ macro
/external/linux-kselftest/tools/testing/selftests/vm/
Dmlock-random-test.c32 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits()
146 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_within_limit()
222 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_outof_limit()
Don-fault-limit.c19 if (getrlimit(RLIMIT_MEMLOCK, &lims)) { in test_limit()
/external/mksh/src/
Drlimits.gen46 #ifdef RLIMIT_MEMLOCK
47 FN("lockedmem(KiB)", RLIMIT_MEMLOCK, 1024, 'l')
131 #ifdef RLIMIT_MEMLOCK
Drlimits.opt50 >l|RLIMIT_MEMLOCK
51 FN("lockedmem(KiB)", RLIMIT_MEMLOCK, 1024
/external/kernel-headers/original/uapi/asm-mips/asm/
Dresource.h22 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/speculative/
D15-1.c46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/
D15-1.c46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/external/python/cpython2/Modules/
Dresource.c314 #ifdef RLIMIT_MEMLOCK in initresource()
315 PyModule_AddIntConstant(m, "RLIMIT_MEMLOCK", RLIMIT_MEMLOCK); in initresource()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/
D12-1.c56 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/
D12-1.c57 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/external/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit01.c47 {RLIMIT_MEMLOCK, "RLIMIT_MEMLOCK"},
/external/python/cpython3/Modules/
Dresource.c416 #ifdef RLIMIT_MEMLOCK in PyInit_resource()
417 PyModule_AddIntMacro(m, RLIMIT_MEMLOCK); in PyInit_resource()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D18-1.c95 if (setrlimit(RLIMIT_MEMLOCK, &rlim) == -1) { in main()
/external/toybox/toys/posix/
Dulimit.c66 RLIMIT_SIGPENDING, RLIMIT_MEMLOCK, RLIMIT_RSS, RLIMIT_NOFILE, 0, in ulimit_main()
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_bpf.c444 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor()
451 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in main_ctor()
457 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
/external/syzkaller/executor/
Dexecutor_bsd.h32 setrlimit(RLIMIT_MEMLOCK, &rlim); in os_init()
/external/syzkaller/sys/netbsd/
Dsys_amd64.const70 RLIMIT_MEMLOCK = 6

123