/external/curl/tests/libtest/ |
D | lib537.c | 68 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors() 115 if(sizeof(rl.rlim_max) > sizeof(long)) 119 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; 140 if(rl.rlim_max == RLIM_INFINITY) 144 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 156 if(rl.rlim_cur != rl.rlim_max) { 173 rl.rlim_cur = rl.rlim_max; 200 if(rl.rlim_max == RLIM_INFINITY) 204 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 233 num_open.rlim_max = sizeof(*memchunk) * nitems; [all …]
|
D | lib518.c | 67 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors() 114 if(sizeof(rl.rlim_max) > sizeof(long)) in rlimit() 118 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; in rlimit() 139 if(rl.rlim_max == RLIM_INFINITY) in rlimit() 143 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit() 161 if(rl.rlim_cur != rl.rlim_max) { in rlimit() 178 rl.rlim_cur = rl.rlim_max; in rlimit() 205 if(rl.rlim_max == RLIM_INFINITY) in rlimit() 209 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit() 259 num_open.rlim_max = sizeof(*memchunk) * (size_t)nitems; in rlimit() [all …]
|
/external/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
D | sched_setscheduler03.c | 66 "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() 127 limit.rlim_max = (RLIMIT_NICE_NORMAL - 1); in setup()
|
/external/ltp/testcases/kernel/syscalls/getrlimit/ |
D | getrlimit03.c | 57 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/ |
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()
|
/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()
|
/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()
|
/external/ltp/testcases/kernel/syscalls/setrlimit/ |
D | setrlimit03.c | 47 (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()
|
D | setrlimit01.c | 90 rlim.rlim_max = 100; in test1() 144 rlim.rlim_max = 10; in test2() 200 rlim.rlim_max = 10; in test3() 215 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3() 246 rlim.rlim_max = 10; in test4()
|
/external/python/cpython2/Modules/ |
D | resource.c | 137 (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/linux-kselftest/tools/testing/selftests/bpf/ |
D | bpf_rlimit.h | 8 .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/ |
D | resource.c | 145 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit() 146 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 153 rl_out->rlim_max = PyLong_AsLongLong(maxobj); in py2rlimit() 154 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 160 rl_out->rlim_max = rl_out->rlim_max & RLIM_INFINITY; in py2rlimit() 174 (long long) rl.rlim_max); in rlimit2py() 176 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
|
/external/strace/ |
D | resource.c | 59 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/libchrome/base/process/ |
D | process_metrics_posix.cc | 80 if (limits.rlim_max > 0 && limits.rlim_max < max_descriptors) { in IncreaseFdLimitTo() 81 new_limit = limits.rlim_max; in IncreaseFdLimitTo()
|
/external/ltp/lib/ |
D | tst_coredump.c | 19 if (old_r.rlim_max >= 1 || geteuid() == 0) { in tst_no_corefile() 26 new_r.rlim_max = 1; in tst_no_corefile()
|
/external/llvm-project/clang/tools/driver/ |
D | cc1_main.cpp | 146 if (rlim.rlim_max == RLIM_INFINITY || in ensureSufficientStack() 147 rlim.rlim_max >= rlim_t(DesiredStackSize)) in ensureSufficientStack() 149 else if (rlim.rlim_cur == rlim.rlim_max) in ensureSufficientStack() 152 rlim.rlim_cur = rlim.rlim_max; in ensureSufficientStack()
|
/external/linux-kselftest/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 161 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/testcases/kernel/syscalls/mlockall/ |
D | mlockall02.c | 185 rl.rlim_max = 10; in setup_test() 208 rl.rlim_max = 0; in setup_test() 240 rl.rlim_max = -1; in cleanup_test()
|
D | mlockall03.c | 230 rl.rlim_max = 10; in setup_test() 241 rl.rlim_max = 0; in setup_test() 273 rl.rlim_max = -1; in cleanup_test()
|
/external/ltp/testcases/kernel/syscalls/getrandom/ |
D | getrandom04.c | 20 lnew.rlim_max = lold.rlim_max; in verify_getrandom()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | on-fault-limit.c | 29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit() 35 munmap(map, 2 * lims.rlim_max); in test_limit()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 85 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/bpf/ |
D | bpf_common.h | 20 if (memlock_r.rlim_cur <= memlock_r.rlim_max) { in rlimit_bump_memlock() 23 memlock_r.rlim_max += BPF_MEMLOCK_ADD; in rlimit_bump_memlock()
|
/external/ltp/testcases/kernel/syscalls/mlock/ |
D | mlock02.c | 115 rl.rlim_max = RLIM_INFINITY; in test_enomem1() 139 rl.rlim_max = len - 1; in test_enomem2() 168 rl.rlim_max = 0; in test_eperm()
|
/external/kernel-headers/original/uapi/linux/ |
D | resource.h | 45 __kernel_ulong_t rlim_max; member 52 __u64 rlim_max; member
|