/external/curl/tests/libtest/ |
D | lib518.c | 68 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 …]
|
D | lib537.c | 69 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/ |
D | rlimit64_nofile.c | 26 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()
|
D | rlimit_nofile.c | 23 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/ |
D | pipe_maxfd.c | 51 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/ |
D | pipe_maxfd.c | 51 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/ |
D | pipe_maxfd.c | 51 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/ |
D | mq_open_tests.c | 154 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/ |
D | setrlimit01.c | 88 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/ |
D | resource.c | 55 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/ |
D | mlockall02.c | 185 rl.rlim_cur = 7; in setup_test() 208 rl.rlim_cur = 0; in setup_test() 240 rl.rlim_cur = -1; in cleanup_test()
|
D | mlockall03.c | 230 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/ |
D | syswrap-x86-solaris.c | 839 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/ |
D | stack-overflow-recovery-mode.cc | 22 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec() 23 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()
|
D | stack-overflow-sigbus.cc | 32 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec() 33 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()
|
/external/ltp/testcases/kernel/syscalls/mlock/ |
D | mlock02.c | 114 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/ |
D | misc.c | 93 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/ |
D | resource.h | 43 __kernel_ulong_t rlim_cur; member 50 __u64 rlim_cur; member
|
/external/libchrome/base/process/ |
D | process_metrics_posix.cc | 50 max_fds = nofile.rlim_cur; in GetMaxFds() 67 limits.rlim_cur = new_limit; in SetFdLimit()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 24-2.c | 68 printf("available memory: %lu\n", rlim.rlim_cur); in main() 78 len = rlim.rlim_cur; in main()
|
/external/ltp/testcases/kernel/syscalls/abort/ |
D | abort01.c | 139 if (rlim.rlim_cur < MIN_RLIMIT_CORE) { in setup() 141 rlim.rlim_cur = MIN_RLIMIT_CORE; in setup()
|
/external/v8/src/base/ |
D | sys-info.cc | 112 return (rlim.rlim_cur == RLIM_INFINITY) ? 0 : rlim.rlim_cur; in AmountOfVirtualMemory()
|
/external/toybox/toys/posix/ |
D | ulimit.c | 95 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/ |
D | common_j_h.c | 243 *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/ |
D | stack-overflow.cc | 94 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec() 95 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()
|