/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 | 78 "rlimit rlim_max=%lu", (unsigned long)(limit->rlim_max)); in l_rlimit_show() 88 "Setting rlim_max to %lu", (unsigned long)(limit->rlim_max)); in l_rlimit_setup() 99 if (tmp_rlimit.rlim_max != limit->rlim_max) in l_rlimit_setup() 101 (unsigned long)(limit->rlim_max), in l_rlimit_setup() 102 (unsigned long)(tmp_rlimit.rlim_max)); in l_rlimit_setup() 139 limit.rlim_max = (RLIMIT_NICE_NORMAL - 1); in setup()
|
/external/ltp/testcases/kernel/syscalls/getrlimit/ |
D | getrlimit03.c | 50 uint64_t rlim_max; member 62 unsigned long rlim_max; member 74 long rlim_max; member 157 compare_u64_ulong(resource, rlim_u64.rlim_max, rlim_ul.rlim_max, in run() 178 compare_u64_long(resource, rlim_u64.rlim_max, rlim_l.rlim_max, in run()
|
/external/syzkaller/executor/ |
D | executor_bsd.h | 28 rlim.rlim_cur = rlim.rlim_max = 128 << 20; in os_init() 31 rlim.rlim_cur = rlim.rlim_max = 8 << 20; in os_init() 33 rlim.rlim_cur = rlim.rlim_max = 1 << 20; in os_init() 35 rlim.rlim_cur = rlim.rlim_max = 1 << 20; in os_init() 37 rlim.rlim_cur = rlim.rlim_max = 0; in os_init() 39 rlim.rlim_cur = rlim.rlim_max = 256; // see kMaxFd in os_init()
|
/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/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/python/cpython3/Modules/ |
D | resource.c | 148 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit() 149 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 156 rl_out->rlim_max = PyLong_AsLongLong(maxobj); in py2rlimit() 157 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 163 rl_out->rlim_max = rl_out->rlim_max & RLIM_INFINITY; in py2rlimit() 177 (long long) rl.rlim_max); in rlimit2py() 179 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
|
/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/ltp/testcases/kernel/syscalls/setrlimit/ |
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()
|
D | setrlimit03.c | 69 rlim2.rlim_max = rlim1.rlim_cur; in setup() 70 rlim2.rlim_cur = rlim1.rlim_max + 1; in setup() 71 rlim1.rlim_max = NR_OPEN + 1; in setup()
|
/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/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/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/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/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 | 44 lnew.rlim_max = lold.rlim_max; in verify_getrandom()
|
/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/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/kernel-headers/original/uapi/linux/ |
D | resource.h | 45 __kernel_ulong_t rlim_max; member 52 __u64 rlim_max; member
|
/external/honggfuzz/ |
D | honggfuzz.c | 102 if (rlim.rlim_max < 1024) { in setupRLimits() 103 LOG_E("RLIMIT_NOFILE max limit < 1024 (%zu). Expect troubles!", (size_t)rlim.rlim_max); in setupRLimits() 106 rlim.rlim_cur = MIN(1024, rlim.rlim_max); // we don't need more in setupRLimits() 109 (size_t)rlim.rlim_max); in setupRLimits()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/ |
D | s-c.c | 109 rl.rlim_max = 1024 * 1024 * 32 * SCALABILITY_FACTOR; in main() 110 rl.rlim_cur = rl.rlim_max; in main() 115 output(";Memory is now limited to %dMb\n", rl.rlim_max >> 20); in main()
|