Home
last modified time | relevance | path

Searched refs:rlim_max (Results 1 – 25 of 117) sorted by relevance

12345

/external/curl/tests/libtest/
Dlib537.c68 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
115 if(sizeof(rl.rlim_max) > sizeof(long))
119 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu;
140 if(rl.rlim_max == RLIM_INFINITY)
144 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max);
156 if(rl.rlim_cur != rl.rlim_max) {
173 rl.rlim_cur = rl.rlim_max;
200 if(rl.rlim_max == RLIM_INFINITY)
204 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max);
233 num_open.rlim_max = sizeof(*memchunk) * nitems;
[all …]
Dlib518.c67 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
114 if(sizeof(rl.rlim_max) > sizeof(long)) in rlimit()
118 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; in rlimit()
139 if(rl.rlim_max == RLIM_INFINITY) in rlimit()
143 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit()
161 if(rl.rlim_cur != rl.rlim_max) { in rlimit()
178 rl.rlim_cur = rl.rlim_max; in rlimit()
205 if(rl.rlim_max == RLIM_INFINITY) in rlimit()
209 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit()
259 num_open.rlim_max = sizeof(*memchunk) * (size_t)nitems; in rlimit()
[all …]
/external/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c66 "rlimit rlim_max=%lu", (unsigned long)(limit->rlim_max)); in l_rlimit_show()
76 "Setting rlim_max to %lu", (unsigned long)(limit->rlim_max)); in l_rlimit_setup()
87 if (tmp_rlimit.rlim_max != limit->rlim_max) in l_rlimit_setup()
89 (unsigned long)(limit->rlim_max), in l_rlimit_setup()
90 (unsigned long)(tmp_rlimit.rlim_max)); in l_rlimit_setup()
127 limit.rlim_max = (RLIMIT_NICE_NORMAL - 1); in setup()
/external/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit03.c57 uint64_t rlim_max; member
69 unsigned long rlim_max; member
88 long rlim_max; member
170 compare_u64_ulong(resource, rlim_u64.rlim_max, rlim_ul.rlim_max, in run()
191 compare_u64_long(resource, rlim_u64.rlim_max, rlim_l.rlim_max, in run()
/external/strace/tests/
Dpipe_maxfd.c51 if (rlim.rlim_cur < rlim.rlim_max) { in pipe_maxfd()
53 rlim_new.rlim_cur = rlim_new.rlim_max = rlim.rlim_max; in pipe_maxfd()
55 rlim.rlim_cur = rlim.rlim_max; in pipe_maxfd()
/external/strace/tests-m32/
Dpipe_maxfd.c51 if (rlim.rlim_cur < rlim.rlim_max) { in pipe_maxfd()
53 rlim_new.rlim_cur = rlim_new.rlim_max = rlim.rlim_max; in pipe_maxfd()
55 rlim.rlim_cur = rlim.rlim_max; in pipe_maxfd()
/external/strace/tests-mx32/
Dpipe_maxfd.c51 if (rlim.rlim_cur < rlim.rlim_max) { in pipe_maxfd()
53 rlim_new.rlim_cur = rlim_new.rlim_max = rlim.rlim_max; in pipe_maxfd()
55 rlim.rlim_cur = rlim.rlim_max; in pipe_maxfd()
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit03.c47 (unsigned long)(tc->rlimt->rlim_max)); in verify_setrlimit()
65 rlim2.rlim_max = rlim1.rlim_cur; in setup()
66 rlim2.rlim_cur = rlim1.rlim_max + 1; in setup()
67 rlim1.rlim_max = nr_open + 1; in setup()
Dsetrlimit01.c90 rlim.rlim_max = 100; in test1()
144 rlim.rlim_max = 10; in test2()
200 rlim.rlim_max = 10; in test3()
215 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3()
246 rlim.rlim_max = 10; in test4()
/external/python/cpython2/Modules/
Dresource.c137 (PY_LONG_LONG) rl.rlim_max); in resource_getrlimit()
140 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in resource_getrlimit()
176 rl.rlim_max = PyInt_AsLong(maxobj); in resource_setrlimit()
177 if (rl.rlim_max == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
185 rl.rlim_max = PyLong_Check(maxobj) ? in resource_setrlimit()
187 if (rl.rlim_max == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
192 rl.rlim_max = rl.rlim_max & RLIM_INFINITY; in resource_setrlimit()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_rlimit.h8 .rlim_max = RLIM_INFINITY, in bpf_rlimit_ctor()
25 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in bpf_rlimit_ctor()
/external/python/cpython3/Modules/
Dresource.c145 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit()
146 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
153 rl_out->rlim_max = PyLong_AsLongLong(maxobj); in py2rlimit()
154 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
160 rl_out->rlim_max = rl_out->rlim_max & RLIM_INFINITY; in py2rlimit()
174 (long long) rl.rlim_max); in rlimit2py()
176 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
/external/strace/
Dresource.c59 uint64_t rlim_max; in print_rlimit64() member
64 tprintf(" rlim_max=%s}", sprint_rlim64(rlim.rlim_max)); in print_rlimit64()
90 uint32_t rlim_max; in print_rlimit32() member
95 tprintf(" rlim_max=%s}", sprint_rlim32(rlim.rlim_max)); in print_rlimit32()
/external/libchrome/base/process/
Dprocess_metrics_posix.cc80 if (limits.rlim_max > 0 && limits.rlim_max < max_descriptors) { in IncreaseFdLimitTo()
81 new_limit = limits.rlim_max; in IncreaseFdLimitTo()
/external/ltp/lib/
Dtst_coredump.c19 if (old_r.rlim_max >= 1 || geteuid() == 0) { in tst_no_corefile()
26 new_r.rlim_max = 1; in tst_no_corefile()
/external/llvm-project/clang/tools/driver/
Dcc1_main.cpp146 if (rlim.rlim_max == RLIM_INFINITY || in ensureSufficientStack()
147 rlim.rlim_max >= rlim_t(DesiredStackSize)) in ensureSufficientStack()
149 else if (rlim.rlim_cur == rlim.rlim_max) in ensureSufficientStack()
152 rlim.rlim_cur = rlim.rlim_max; in ensureSufficientStack()
/external/linux-kselftest/tools/testing/selftests/mqueue/
Dmq_open_tests.c161 cur_limits.rlim_max = 16384; in validate_current_settings()
301 (long) saved_limits.rlim_max); in main()
317 printf("\tRLIMIT_MSGQUEUE(hard):\t\t%ld\n", (long) cur_limits.rlim_max); in main()
391 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; in main()
408 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * in main()
427 cur_max_msgsize = cur_limits.rlim_max >> 4; in main()
/external/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c185 rl.rlim_max = 10; in setup_test()
208 rl.rlim_max = 0; in setup_test()
240 rl.rlim_max = -1; in cleanup_test()
Dmlockall03.c230 rl.rlim_max = 10; in setup_test()
241 rl.rlim_max = 0; in setup_test()
273 rl.rlim_max = -1; in cleanup_test()
/external/ltp/testcases/kernel/syscalls/getrandom/
Dgetrandom04.c20 lnew.rlim_max = lold.rlim_max; in verify_getrandom()
/external/linux-kselftest/tools/testing/selftests/vm/
Don-fault-limit.c29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
35 munmap(map, 2 * lims.rlim_max); in test_limit()
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c85 if (rlim.rlim_max != RLIM_INFINITY && in increase_core_file_limit()
86 rlim.rlim_max < CORE_FILE_LIMIT) in increase_core_file_limit()
87 rlim.rlim_max = CORE_FILE_LIMIT; in increase_core_file_limit()
99 if (rlim.rlim_max != RLIM_INFINITY && in increase_core_file_limit()
100 rlim.rlim_max < CORE_FILE_LIMIT) in increase_core_file_limit()
101 rlim.rlim_max = CORE_FILE_LIMIT; in increase_core_file_limit()
/external/ltp/testcases/kernel/syscalls/bpf/
Dbpf_common.h20 if (memlock_r.rlim_cur <= memlock_r.rlim_max) { in rlimit_bump_memlock()
23 memlock_r.rlim_max += BPF_MEMLOCK_ADD; in rlimit_bump_memlock()
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c115 rl.rlim_max = RLIM_INFINITY; in test_enomem1()
139 rl.rlim_max = len - 1; in test_enomem2()
168 rl.rlim_max = 0; in test_eperm()
/external/kernel-headers/original/uapi/linux/
Dresource.h45 __kernel_ulong_t rlim_max; member
52 __u64 rlim_max; member

12345