Home
last modified time | relevance | path

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

12345

/external/curl/tests/libtest/
Dlib518.c68 for(num_open.rlim_cur = 0; in close_file_descriptors()
69 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
70 num_open.rlim_cur++) in close_file_descriptors()
71 if(fd[num_open.rlim_cur] > 0) in close_file_descriptors()
72 close(fd[num_open.rlim_cur]); in close_file_descriptors()
133 if(rl.rlim_cur == RLIM_INFINITY) in rlimit()
137 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); in rlimit()
163 if(rl.rlim_cur != rl.rlim_max) { in rlimit()
166 if((rl.rlim_cur > 0) && in rlimit()
167 (rl.rlim_cur < OPEN_MAX)) { in rlimit()
[all …]
Dlib537.c69 for(num_open.rlim_cur = 0; in close_file_descriptors()
70 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
71 num_open.rlim_cur++) in close_file_descriptors()
72 if(fd[num_open.rlim_cur] > 0) in close_file_descriptors()
73 close(fd[num_open.rlim_cur]); in close_file_descriptors()
134 if(rl.rlim_cur == RLIM_INFINITY)
138 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur);
158 if(rl.rlim_cur != rl.rlim_max) {
161 if((rl.rlim_cur > 0) &&
162 (rl.rlim_cur < OPEN_MAX)) {
[all …]
/external/valgrind/none/tests/
Drlimit64_nofile.c26 newrlim.rlim_cur = oldrlim.rlim_max+1; in main()
41 newrlim.rlim_cur = oldrlim.rlim_max; in main()
56 newrlim.rlim_cur = oldrlim.rlim_cur / 2; in main()
71 if (newrlim.rlim_cur != oldrlim.rlim_cur / 2) in main()
74 (unsigned long long)newrlim.rlim_cur, in main()
75 (unsigned long long)oldrlim.rlim_cur / 2); in main()
85 newrlim.rlim_cur -= 3; /* allow for stdin, stdout and stderr */ in main()
87 while (newrlim.rlim_cur-- > 0) in main()
Drlimit_nofile.c23 newrlim.rlim_cur = oldrlim.rlim_max+1; in main()
38 newrlim.rlim_cur = oldrlim.rlim_max; in main()
53 newrlim.rlim_cur = oldrlim.rlim_cur / 2; in main()
68 if (newrlim.rlim_cur != oldrlim.rlim_cur / 2) in main()
71 (unsigned long long)newrlim.rlim_cur, in main()
72 (unsigned long long)oldrlim.rlim_cur / 2); in main()
82 newrlim.rlim_cur -= 3; /* allow for stdin, stdout and stderr */ in main()
84 while (newrlim.rlim_cur-- > 0) in main()
/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/linux-kselftest/tools/testing/selftests/mqueue/
Dmq_open_tests.c154 if (cur_limits.rlim_cur < 4096) { in validate_current_settings()
157 cur_limits.rlim_cur = 8192; in validate_current_settings()
165 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
177 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
298 (long) saved_limits.rlim_cur); in main()
315 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); in main()
387 cur_limits.rlim_cur) { in main()
388 cur_limits.rlim_cur = (cur_def_msgs + 2) * in main()
390 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; in main()
407 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * in main()
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit01.c88 rlim.rlim_cur = 100; in test1()
143 rlim.rlim_cur = 10; in test2()
201 rlim.rlim_cur = 10; in test3()
217 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3()
247 rlim.rlim_cur = 10; in test4()
/external/strace/
Dresource.c55 uint64_t rlim_cur; in print_rlimit64() member
60 tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); in print_rlimit64()
86 uint32_t rlim_cur; in print_rlimit32() member
91 tprintf("{rlim_cur=%s,", sprint_rlim32(rlim.rlim_cur)); in print_rlimit32()
/external/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c185 rl.rlim_cur = 7; in setup_test()
208 rl.rlim_cur = 0; in setup_test()
240 rl.rlim_cur = -1; in cleanup_test()
Dmlockall03.c230 rl.rlim_cur = 7; in setup_test()
241 rl.rlim_cur = 0; in setup_test()
277 rl.rlim_cur = -1; in cleanup_test()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-x86-solaris.c839 if (limit && limit->rlim_cur > limit->rlim_max) in PRE()
842 if (limit->rlim_cur > VG_(fd_hard_limit) || in PRE()
847 VG_(fd_soft_limit) = limit->rlim_cur; in PRE()
852 if (limit->rlim_cur > VG_(client_rlimit_data).rlim_max || in PRE()
858 VG_(client_rlimit_data).rlim_cur = limit->rlim_cur; in PRE()
863 if (limit->rlim_cur > VG_(client_rlimit_stack).rlim_max || in PRE()
871 if (limit->rlim_cur <= VG_(clstk_max_size)) in PRE()
872 VG_(threads)[tid].client_stack_szB = limit->rlim_cur; in PRE()
875 VG_(client_rlimit_stack).rlim_cur = limit->rlim_cur; in PRE()
899 rlim->rlim_cur = VG_(fd_soft_limit); in POST()
[all …]
/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()
Dstack-overflow-sigbus.cc32 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec()
33 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()
/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/blktrace/btt/
Dmisc.c93 rlim.rlim_cur += increase; in increase_limit()
94 if (rlim.rlim_cur >= rlim.rlim_max) in increase_limit()
95 rlim.rlim_max = rlim.rlim_cur + increase; in increase_limit()
/external/kernel-headers/original/uapi/linux/
Dresource.h43 __kernel_ulong_t rlim_cur; member
50 __u64 rlim_cur; member
/external/libchrome/base/process/
Dprocess_metrics_posix.cc50 max_fds = nofile.rlim_cur; in GetMaxFds()
67 limits.rlim_cur = new_limit; in SetFdLimit()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D24-2.c68 printf("available memory: %lu\n", rlim.rlim_cur); in main()
78 len = rlim.rlim_cur; in main()
/external/ltp/testcases/kernel/syscalls/abort/
Dabort01.c139 if (rlim.rlim_cur < MIN_RLIMIT_CORE) { in setup()
141 rlim.rlim_cur = MIN_RLIMIT_CORE; in setup()
/external/v8/src/base/
Dsys-info.cc112 return (rlim.rlim_cur == RLIM_INFINITY) ? 0 : rlim.rlim_cur; in AmountOfVirtualMemory()
/external/toybox/toys/posix/
Dulimit.c95 rlim_t rl = (toys.optflags&FLAG_H) ? rr.rlim_max : rr.rlim_cur; in ulimit_main()
114 else rr.rlim_cur = val; in ulimit_main()
/external/ltp/testcases/kernel/syscalls/utils/
Dcommon_j_h.c243 *oldlim = rlim.rlim_cur; in setup_ulimit_fnum()
248 rlim.rlim_cur = newlim; in setup_ulimit_fnum()
271 rlim.rlim_cur = oldlim; in cleanup_ulimit_fnum()
/external/compiler-rt/test/asan/TestCases/Posix/
Dstack-overflow.cc94 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec()
95 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()

12345