Home
last modified time | relevance | path

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

123456

/external/curl/tests/libtest/
Dlib537.c69 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
116 if(sizeof(rl.rlim_max) > sizeof(long))
120 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu;
141 if(rl.rlim_max == RLIM_INFINITY)
145 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max);
157 if(rl.rlim_cur != rl.rlim_max) {
174 rl.rlim_cur = rl.rlim_max;
201 if(rl.rlim_max == RLIM_INFINITY)
205 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max);
234 num_open.rlim_max = sizeof(*memchunk) * nitems;
[all …]
Dlib518.c69 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
116 if(sizeof(rl.rlim_max) > sizeof(long)) in rlimit()
120 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; in rlimit()
141 if(rl.rlim_max == RLIM_INFINITY) in rlimit()
145 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit()
163 if(rl.rlim_cur != rl.rlim_max) { in rlimit()
180 rl.rlim_cur = rl.rlim_max; in rlimit()
207 if(rl.rlim_max == RLIM_INFINITY) in rlimit()
211 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit()
261 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()
126 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-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/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/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/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()
199 rlim.rlim_max = 10; in test3()
214 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3()
245 rlim.rlim_max = 10; in test4()
/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.c158 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit()
159 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
166 rl_out->rlim_max = PyLong_AsLongLong(maxobj); in py2rlimit()
167 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
173 rl_out->rlim_max = rl_out->rlim_max & RLIM_INFINITY; in py2rlimit()
187 (long long) rl.rlim_max); in rlimit2py()
189 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
/external/musl/src/misc/
Dgetrlimit.c12 FIX(rlim->rlim_max); in getrlimit()
21 rlim->rlim_max = k_rlim[1] == -1UL ? RLIM_INFINITY : k_rlim[1]; in getrlimit()
23 FIX(rlim->rlim_max); in getrlimit()
/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/ltp/testcases/kernel/syscalls/waitid/
Dwaitid10.c58 if (!rlim.rlim_max) { in setup()
65 rlim.rlim_cur, rlim.rlim_max); in setup()
67 rlim.rlim_cur = rlim.rlim_max; in setup()
/external/ltp/testcases/kernel/syscalls/abort/
Dabort01.c79 if (rlim.rlim_max < MIN_RLIMIT_CORE) { in setup()
82 rlim.rlim_max, MIN_RLIMIT_CORE); in setup()
85 rlim.rlim_max = MIN_RLIMIT_CORE; in setup()
/external/linux-kselftest/tools/testing/selftests/kvm/
Dkvm_create_max_vcpus.c62 if (rl.rlim_max < nr_fds_wanted) { in main()
63 int old_rlim_max = rl.rlim_max; in main()
64 rl.rlim_max = nr_fds_wanted; in main()
/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/testcases/kernel/syscalls/kill/
Dkill11.c110 if (rlim.rlim_max < MIN_RLIMIT_CORE) { in setup()
113 rlim.rlim_max, MIN_RLIMIT_CORE); in setup()
116 rlim.rlim_max = MIN_RLIMIT_CORE; in setup()
/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/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/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c185 rl.rlim_max = 10; in setup_test()
205 rl.rlim_max = 0; in setup_test()
235 rl.rlim_max = -1; in cleanup_test()
/external/cronet/base/process/
Dprocess_metrics_posix.cc94 if (limits.rlim_max > 0 && limits.rlim_max < max_descriptors) { in IncreaseFdLimitTo()
95 new_limit = limits.rlim_max; in IncreaseFdLimitTo()
/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/getrandom/
Dgetrandom04.c20 lnew.rlim_max = lold.rlim_max; in verify_getrandom()

123456