/external/curl/tests/libtest/ |
D | lib537.c | 69 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors() 116 if(sizeof(rl.rlim_max) > sizeof(long)) 120 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; 141 if(rl.rlim_max == RLIM_INFINITY) 145 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 157 if(rl.rlim_cur != rl.rlim_max) { 174 rl.rlim_cur = rl.rlim_max; 201 if(rl.rlim_max == RLIM_INFINITY) 205 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 234 num_open.rlim_max = sizeof(*memchunk) * nitems; [all …]
|
D | lib518.c | 69 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors() 116 if(sizeof(rl.rlim_max) > sizeof(long)) in rlimit() 120 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; in rlimit() 141 if(rl.rlim_max == RLIM_INFINITY) in rlimit() 145 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit() 163 if(rl.rlim_cur != rl.rlim_max) { in rlimit() 180 rl.rlim_cur = rl.rlim_max; in rlimit() 207 if(rl.rlim_max == RLIM_INFINITY) in rlimit() 211 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit() 261 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() 126 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-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/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/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/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() 199 rlim.rlim_max = 10; in test3() 214 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3() 245 rlim.rlim_max = 10; in test4()
|
/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 | 158 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit() 159 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 166 rl_out->rlim_max = PyLong_AsLongLong(maxobj); in py2rlimit() 167 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 173 rl_out->rlim_max = rl_out->rlim_max & RLIM_INFINITY; in py2rlimit() 187 (long long) rl.rlim_max); in rlimit2py() 189 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
|
/external/musl/src/misc/ |
D | getrlimit.c | 12 FIX(rlim->rlim_max); in getrlimit() 21 rlim->rlim_max = k_rlim[1] == -1UL ? RLIM_INFINITY : k_rlim[1]; in getrlimit() 23 FIX(rlim->rlim_max); in getrlimit()
|
/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/ltp/testcases/kernel/syscalls/waitid/ |
D | waitid10.c | 58 if (!rlim.rlim_max) { in setup() 65 rlim.rlim_cur, rlim.rlim_max); in setup() 67 rlim.rlim_cur = rlim.rlim_max; in setup()
|
/external/ltp/testcases/kernel/syscalls/abort/ |
D | abort01.c | 79 if (rlim.rlim_max < MIN_RLIMIT_CORE) { in setup() 82 rlim.rlim_max, MIN_RLIMIT_CORE); in setup() 85 rlim.rlim_max = MIN_RLIMIT_CORE; in setup()
|
/external/linux-kselftest/tools/testing/selftests/kvm/ |
D | kvm_create_max_vcpus.c | 62 if (rl.rlim_max < nr_fds_wanted) { in main() 63 int old_rlim_max = rl.rlim_max; in main() 64 rl.rlim_max = nr_fds_wanted; in main()
|
/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/testcases/kernel/syscalls/kill/ |
D | kill11.c | 110 if (rlim.rlim_max < MIN_RLIMIT_CORE) { in setup() 113 rlim.rlim_max, MIN_RLIMIT_CORE); in setup() 116 rlim.rlim_max = MIN_RLIMIT_CORE; in setup()
|
/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/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/ltp/testcases/kernel/syscalls/mlockall/ |
D | mlockall02.c | 185 rl.rlim_max = 10; in setup_test() 205 rl.rlim_max = 0; in setup_test() 235 rl.rlim_max = -1; in cleanup_test()
|
/external/cronet/base/process/ |
D | process_metrics_posix.cc | 94 if (limits.rlim_max > 0 && limits.rlim_max < max_descriptors) { in IncreaseFdLimitTo() 95 new_limit = limits.rlim_max; in IncreaseFdLimitTo()
|
/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/getrandom/ |
D | getrandom04.c | 20 lnew.rlim_max = lold.rlim_max; in verify_getrandom()
|