Home
last modified time | relevance | path

Searched refs:rlim_cur (Results 1 – 25 of 122) sorted by relevance

12345

/external/curl/tests/libtest/
Dlib518.c66 for(num_open.rlim_cur = 0; in close_file_descriptors()
67 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
68 num_open.rlim_cur++) in close_file_descriptors()
69 if(fd[num_open.rlim_cur] > 0) in close_file_descriptors()
70 close(fd[num_open.rlim_cur]); in close_file_descriptors()
131 if(rl.rlim_cur == RLIM_INFINITY) in rlimit()
135 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); in rlimit()
161 if(rl.rlim_cur != rl.rlim_max) { in rlimit()
164 if((rl.rlim_cur > 0) && in rlimit()
165 (rl.rlim_cur < OPEN_MAX)) { in rlimit()
[all …]
Dlib537.c67 for(num_open.rlim_cur = 0; in close_file_descriptors()
68 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
69 num_open.rlim_cur++) in close_file_descriptors()
70 if(fd[num_open.rlim_cur] > 0) in close_file_descriptors()
71 close(fd[num_open.rlim_cur]); in close_file_descriptors()
132 if(rl.rlim_cur == RLIM_INFINITY)
136 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur);
156 if(rl.rlim_cur != rl.rlim_max) {
159 if((rl.rlim_cur > 0) &&
160 (rl.rlim_cur < OPEN_MAX)) {
[all …]
/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()
61 int max_fd = (rlim.rlim_cur > 0 && rlim.rlim_cur < INT_MAX) in pipe_maxfd()
62 ? rlim.rlim_cur - 1 : INT_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()
61 int max_fd = (rlim.rlim_cur > 0 && rlim.rlim_cur < INT_MAX) in pipe_maxfd()
62 ? rlim.rlim_cur - 1 : INT_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()
61 int max_fd = (rlim.rlim_cur > 0 && rlim.rlim_cur < INT_MAX) in pipe_maxfd()
62 ? rlim.rlim_cur - 1 : INT_MAX; in pipe_maxfd()
/external/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c76 "rlimit rlim_cur=%lu", (unsigned long)(limit->rlim_cur)); in l_rlimit_show()
86 "Setting rlim_cur to %lu", (unsigned long)(limit->rlim_cur)); in l_rlimit_setup()
94 if (tmp_rlimit.rlim_cur != limit->rlim_cur) in l_rlimit_setup()
96 (unsigned long)(limit->rlim_cur), in l_rlimit_setup()
97 (unsigned long)tmp_rlimit.rlim_cur); in l_rlimit_setup()
138 limit.rlim_cur = (RLIMIT_NICE_NORMAL - 1); in setup()
/external/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit03.c49 uint64_t rlim_cur; member
61 unsigned long rlim_cur; member
73 long rlim_cur; member
155 compare_u64_ulong(resource, rlim_u64.rlim_cur, rlim_ul.rlim_cur, in run()
176 compare_u64_long(resource, rlim_u64.rlim_cur, rlim_l.rlim_cur, in run()
/external/python/cpython2/Modules/
Dresource.c134 if (sizeof(rl.rlim_cur) > sizeof(long)) { in resource_getrlimit()
136 (PY_LONG_LONG) rl.rlim_cur, in resource_getrlimit()
140 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in resource_getrlimit()
173 rl.rlim_cur = PyInt_AsLong(curobj); in resource_setrlimit()
174 if (rl.rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
181 rl.rlim_cur = PyLong_Check(curobj) ? in resource_setrlimit()
183 if (rl.rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
191 rl.rlim_cur = rl.rlim_cur & RLIM_INFINITY; in resource_setrlimit()
/external/syzkaller/executor/
Dexecutor_bsd.h28 rlim.rlim_cur = rlim.rlim_max = 128 << 20; in os_init()
31 rlim.rlim_cur = rlim.rlim_max = 8 << 20; in os_init()
33 rlim.rlim_cur = rlim.rlim_max = 1 << 20; in os_init()
35 rlim.rlim_cur = rlim.rlim_max = 1 << 20; in os_init()
37 rlim.rlim_cur = rlim.rlim_max = 0; in os_init()
39 rlim.rlim_cur = rlim.rlim_max = 256; // see kMaxFd in os_init()
/external/linux-kselftest/tools/testing/selftests/vm/
Dmlock-random-test.c30 new.rlim_cur = max; in set_cap_limits()
147 if (cur.rlim_cur < alloc_size) { in test_mlock_within_limit()
149 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_within_limit()
223 if (cur.rlim_cur >= alloc_size) { in test_mlock_outof_limit()
225 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_outof_limit()
233 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit()
234 + cur.rlim_cur; in test_mlock_outof_limit()
/external/linux-kselftest/tools/testing/selftests/mqueue/
Dmq_open_tests.c157 if (cur_limits.rlim_cur < 4096) { in validate_current_settings()
160 cur_limits.rlim_cur = 8192; in validate_current_settings()
168 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
180 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
299 (long) saved_limits.rlim_cur); in main()
316 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); in main()
388 cur_limits.rlim_cur) { in main()
389 cur_limits.rlim_cur = (cur_def_msgs + 2) * 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()
/external/python/cpython3/Modules/
Dresource.c145 rl_out->rlim_cur = PyLong_AsLong(curobj); in py2rlimit()
146 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
153 rl_out->rlim_cur = PyLong_AsLongLong(curobj); in py2rlimit()
154 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
162 rl_out->rlim_cur = rl_out->rlim_cur & RLIM_INFINITY; in py2rlimit()
174 if (sizeof(rl.rlim_cur) > sizeof(long)) { in rlimit2py()
176 (long long) rl.rlim_cur, in rlimit2py()
179 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_rlimit.h7 .rlim_cur = RLIM_INFINITY, in bpf_rlimit_ctor()
24 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in bpf_rlimit_ctor()
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit01.c89 rlim.rlim_cur = 100; in test1()
143 rlim.rlim_cur = 10; in test2()
199 rlim.rlim_cur = 10; in test3()
215 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3()
245 rlim.rlim_cur = 10; in test4()
Dsetrlimit03.c69 rlim2.rlim_max = rlim1.rlim_cur; in setup()
70 rlim2.rlim_cur = rlim1.rlim_max + 1; in setup()
/external/strace/
Dresource.c58 uint64_t rlim_cur; in print_rlimit64() member
63 tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); in print_rlimit64()
89 uint32_t rlim_cur; in print_rlimit32() member
94 tprintf("{rlim_cur=%s,", sprint_rlim32(rlim.rlim_cur)); in print_rlimit32()
/external/libchrome/base/process/
Dprocess_metrics_posix.cc65 max_fds = nofile.rlim_cur; in GetMaxFds()
78 if (max_descriptors <= limits.rlim_cur) in IncreaseFdLimitTo()
83 limits.rlim_cur = new_limit; in IncreaseFdLimitTo()
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c82 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit()
83 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit()
96 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit()
97 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit()
/external/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c186 rl.rlim_cur = 7; in setup_test()
209 rl.rlim_cur = 0; in setup_test()
241 rl.rlim_cur = -1; in cleanup_test()
Dmlockall03.c231 rl.rlim_cur = 7; in setup_test()
242 rl.rlim_cur = 0; in setup_test()
274 rl.rlim_cur = -1; in cleanup_test()
/external/blktrace/btt/
Dmisc.c92 rlim.rlim_cur += increase; in increase_limit()
93 if (rlim.rlim_cur >= rlim.rlim_max) in increase_limit()
94 rlim.rlim_max = rlim.rlim_cur + increase; in increase_limit()
/external/libchrome/base/memory/
Dshared_memory_helper.cc110 original_fd_limit = rlim.rlim_cur; in PrepareMapFile()
111 if (rlim.rlim_max > rlim.rlim_cur) { in PrepareMapFile()
113 rlim.rlim_cur = rlim.rlim_max; in PrepareMapFile()
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c114 rl.rlim_cur = RLIM_INFINITY; in test_enomem1()
140 rl.rlim_cur = len - 1; in test_enomem2()
169 rl.rlim_cur = 0; in test_eperm()
/external/compiler-rt/test/asan/TestCases/Linux/
Dstack-overflow-recovery-mode.cc22 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec()
23 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()
/external/kernel-headers/original/uapi/linux/
Dresource.h44 __kernel_ulong_t rlim_cur; member
51 __u64 rlim_cur; member

12345