/third_party/curl/tests/libtest/ |
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 …]
|
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 …]
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | prlimit.c | 28 struct rlimit new_limit = {.rlim_cur = lim, .rlim_max = lim}; in prlimit_0100() 30 struct rlimit old_limit = {.rlim_cur = 0, .rlim_max = 0}; in prlimit_0100() 36 EXPECT_LONGLONGEQ("prlimit_0100", old_limit.rlim_cur, lim); in prlimit_0100() 48 struct rlimit new_limit = {.rlim_cur = lim, .rlim_max = lim}; in prlimit_0200() 53 new_limit.rlim_cur = lim + 1; in prlimit_0200()
|
/third_party/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() 125 limit.rlim_cur = (RLIMIT_NICE_NORMAL - 1); in setup()
|
/third_party/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()
|
/third_party/python/Modules/ |
D | resource.c | 155 rl_out->rlim_cur = PyLong_AsLong(curobj); in py2rlimit() 156 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 163 rl_out->rlim_cur = PyLong_AsLongLong(curobj); in py2rlimit() 164 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit() 172 rl_out->rlim_cur = rl_out->rlim_cur & RLIM_INFINITY; in py2rlimit() 184 if (sizeof(rl.rlim_cur) > sizeof(long)) { in rlimit2py() 186 (long long) rl.rlim_cur, in rlimit2py() 189 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
|
/third_party/musl/porting/linux/user/src/legacy/ |
D | ulimit.c | 16 rl.rlim_cur = 512ULL * val; in ulimit() 19 return rl.rlim_cur == RLIM_INFINITY? LONG_MAX : rl.rlim_cur / 512; in ulimit()
|
/third_party/musl/src/misc/ |
D | getrlimit.c | 12 FIX(rlim->rlim_cur); in getrlimit() 19 rlim->rlim_cur = k_rlim[0] == -1UL ? RLIM_INFINITY : k_rlim[0]; in getrlimit() 21 FIX(rlim->rlim_cur); in getrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
D | setrlimit01.c | 89 rlim.rlim_cur = 100; in test1() 143 rlim.rlim_cur = 10; in test2() 198 rlim.rlim_cur = 10; in test3() 214 if ((rlim1.rlim_cur != 10) && (rlim1.rlim_max != 10)) { in test3() 244 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()
|
/third_party/musl/libc-test/src/regression/ |
D | rlimit-open-files.c | 17 rl.rlim_cur = lim; in main() 22 if (rl.rlim_max != lim || rl.rlim_cur != lim) in main() 23 …t_error("getrlimit %d says cur=%ld,max=%ld after setting the limit to %ld\n", r, rl.rlim_cur, rl.r… in main()
|
/third_party/musl/src/legacy/ |
D | getdtablesize.c | 10 return rl.rlim_cur < INT_MAX ? rl.rlim_cur : INT_MAX; in getdtablesize()
|
D | ulimit.c | 15 rl.rlim_cur = 512ULL * val; in ulimit() 18 return rl.rlim_cur / 512; in ulimit()
|
/third_party/musl/porting/liteos_a/user/src/legacy/ |
D | getdtablesize.c | 12 return rl.rlim_cur < INT_MAX ? rl.rlim_cur : INT_MAX; in getdtablesize()
|
D | ulimit.c | 17 rl.rlim_cur = 512ULL * val; in ulimit() 20 return rl.rlim_cur / 512; in ulimit()
|
/third_party/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()
|
D | mlockall03.c | 231 rl.rlim_cur = 7; in setup_test() 242 rl.rlim_cur = 0; in setup_test() 275 rl.rlim_cur = -1; in cleanup_test()
|
/third_party/musl/libc-test/src/common/ |
D | setrlim.c | 16 if (lim == rl.rlim_max && lim == rl.rlim_cur) in t_setrlim() 19 rl.rlim_cur = lim; in t_setrlim()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | getrlimit.c | 32 rl.rlim_cur = lim; in getrlimit_0100() 39 EXPECT_LONGLONGEQ("getrlimit_0100", retrl.rlim_cur, lim); in getrlimit_0100()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
D | bpf_common.c | 15 memlock_r.rlim_cur += BPF_MEMLOCK_ADD; in rlimit_bump_memlock() 17 (long)memlock_r.rlim_cur); in rlimit_bump_memlock() 19 if (memlock_r.rlim_cur <= memlock_r.rlim_max) { in rlimit_bump_memlock()
|
/third_party/musl/src/linux/ |
D | prlimit.c | 13 FIX(tmp.rlim_cur); in prlimit() 19 FIX(old_limit->rlim_cur); in prlimit()
|
/third_party/ltp/testcases/kernel/syscalls/abort/ |
D | abort01.c | 87 if (rlim.rlim_cur < MIN_RLIMIT_CORE) { in setup() 88 rlim.rlim_cur = MIN_RLIMIT_CORE; in setup()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
D | setrlimit.c | 15 FIX(tmp.rlim_cur); in __setrlimit() 20 k_rlim[0] = rlim->rlim_cur; in __setrlimit()
|
/third_party/glib/glib/gnulib/gl_cv_func_printf_enomem/ |
D | meson.build | 28 limit.rlim_cur = limit.rlim_max; 38 limit.rlim_cur = limit.rlim_max; 48 limit.rlim_cur = limit.rlim_max;
|