/external/curl/tests/libtest/ |
D | lib518.c | 66 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 …]
|
D | lib537.c | 67 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/ |
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/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/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
D | sched_setscheduler03.c | 64 "rlimit rlim_cur=%lu", (unsigned long)(limit->rlim_cur)); in l_rlimit_show() 74 "Setting rlim_cur to %lu", (unsigned long)(limit->rlim_cur)); in l_rlimit_setup() 82 if (tmp_rlimit.rlim_cur != limit->rlim_cur) in l_rlimit_setup() 84 (unsigned long)(limit->rlim_cur), in l_rlimit_setup() 85 (unsigned long)tmp_rlimit.rlim_cur); in l_rlimit_setup() 126 limit.rlim_cur = (RLIMIT_NICE_NORMAL - 1); in setup()
|
/external/ltp/testcases/kernel/syscalls/getrlimit/ |
D | getrlimit03.c | 56 uint64_t rlim_cur; member 68 unsigned long rlim_cur; member 87 long rlim_cur; member 168 compare_u64_ulong(resource, rlim_u64.rlim_cur, rlim_ul.rlim_cur, in run() 189 compare_u64_long(resource, rlim_u64.rlim_cur, rlim_l.rlim_cur, in run()
|
/external/python/cpython2/Modules/ |
D | resource.c | 134 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/linux-kselftest/tools/testing/selftests/vm/ |
D | mlock-random-test.c | 30 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/ |
D | mq_open_tests.c | 157 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/ |
D | resource.c | 142 rl_out->rlim_cur = PyLong_AsLong(curobj); in py2rlimit() 143 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 150 rl_out->rlim_cur = PyLong_AsLongLong(curobj); in py2rlimit() 151 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 159 rl_out->rlim_cur = rl_out->rlim_cur & RLIM_INFINITY; in py2rlimit() 171 if (sizeof(rl.rlim_cur) > sizeof(long)) { in rlimit2py() 173 (long long) rl.rlim_cur, in rlimit2py() 176 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
|
/external/llvm-project/clang/tools/driver/ |
D | cc1_main.cpp | 143 if (rlim.rlim_cur != RLIM_INFINITY && in ensureSufficientStack() 144 rlim.rlim_cur < rlim_t(DesiredStackSize)) { in ensureSufficientStack() 148 rlim.rlim_cur = DesiredStackSize; in ensureSufficientStack() 149 else if (rlim.rlim_cur == rlim.rlim_max) in ensureSufficientStack() 152 rlim.rlim_cur = rlim.rlim_max; in ensureSufficientStack() 155 rlim.rlim_cur != DesiredStackSize) in ensureSufficientStack()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | bpf_rlimit.h | 7 .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/bpf/ |
D | bpf_common.h | 16 memlock_r.rlim_cur += BPF_MEMLOCK_ADD; in rlimit_bump_memlock() 18 (long)memlock_r.rlim_cur); in rlimit_bump_memlock() 20 if (memlock_r.rlim_cur <= memlock_r.rlim_max) { in rlimit_bump_memlock()
|
/external/ltp/testcases/kernel/syscalls/setrlimit/ |
D | setrlimit01.c | 89 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()
|
D | setrlimit03.c | 46 (unsigned long)(tc->rlimt->rlim_cur), in verify_setrlimit() 65 rlim2.rlim_max = rlim1.rlim_cur; in setup() 66 rlim2.rlim_cur = rlim1.rlim_max + 1; in setup()
|
/external/strace/ |
D | resource.c | 58 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/ |
D | process_metrics_posix.cc | 65 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/ltp/testcases/kernel/syscalls/mlockall/ |
D | mlockall02.c | 186 rl.rlim_cur = 7; in setup_test() 209 rl.rlim_cur = 0; in setup_test() 241 rl.rlim_cur = -1; in cleanup_test()
|
/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()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/ |
D | stack-overflow-recovery-mode.cpp | 22 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec() 23 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 82 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/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 | 92 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/ |
D | shared_memory_helper.cc | 110 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()
|