Home
last modified time | relevance | path

Searched refs:rlim_cur (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c64 "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/musl/libc-test/src/functionalext/supplement/linux/
Dprlimit.c28 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/getrlimit/
Dgetrlimit03.c56 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/
Dresource.c155 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/
Dulimit.c16 rl.rlim_cur = 512ULL * val; in ulimit()
19 return rl.rlim_cur == RLIM_INFINITY? LONG_MAX : rl.rlim_cur / 512; in ulimit()
/third_party/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit01.c89 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()
Dsetrlimit03.c46 (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/src/misc/
Dgetrlimit.c12 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()
Dsetrlimit.c27 FIX(tmp.rlim_cur); in setrlimit()
35 .lim[0] = MIN(rlim->rlim_cur, MIN(-1UL, SYSCALL_RLIM_INFINITY)), in setrlimit()
/third_party/musl/libc-test/src/regression/
Drlimit-open-files.c17 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/
Dgetdtablesize.c10 return rl.rlim_cur < INT_MAX ? rl.rlim_cur : INT_MAX; in getdtablesize()
Dulimit.c15 rl.rlim_cur = 512ULL * val; in ulimit()
18 return rl.rlim_cur / 512; in ulimit()
/third_party/musl/porting/liteos_a/user/src/legacy/
Dgetdtablesize.c12 return rl.rlim_cur < INT_MAX ? rl.rlim_cur : INT_MAX; in getdtablesize()
Dulimit.c17 rl.rlim_cur = 512ULL * val; in ulimit()
20 return rl.rlim_cur / 512; in ulimit()
/third_party/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c186 rl.rlim_cur = 7; in setup_test()
209 rl.rlim_cur = 0; in setup_test()
241 rl.rlim_cur = -1; in cleanup_test()
Dmlockall03.c231 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/
Dsetrlim.c16 if (lim == rl.rlim_max && lim == rl.rlim_cur) in t_setrlim()
19 rl.rlim_cur = lim; in t_setrlim()
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
Dsyscalls.rs426 let current = if lim.rlim_cur == RLIM64_INFINITY as _ { in rlimit_from_linux()
429 Some(lim.rlim_cur) in rlimit_from_linux()
442 let rlim_cur = match lim.current { in rlimit_to_linux() localVariable
450 rlimit64 { rlim_cur, rlim_max } in rlimit_to_linux()
456 let current = if lim.rlim_cur == RLIM_INFINITY as _ { in rlimit_from_linux_old()
459 Some(lim.rlim_cur.into()) in rlimit_from_linux_old()
472 let rlim_cur = match lim.current { in rlimit_to_linux_old() localVariable
480 Ok(rlimit { rlim_cur, rlim_max }) in rlimit_to_linux_old()
/third_party/ltp/testcases/kernel/syscalls/bpf/
Dbpf_common.c15 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/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c114 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/musl/libc-test/src/functionalext/supplement/misc/
Dgetrlimit.c32 rl.rlim_cur = lim; in getrlimit_0100()
39 EXPECT_LONGLONGEQ("getrlimit_0100", retrl.rlim_cur, lim); in getrlimit_0100()
/third_party/musl/src/linux/
Dprlimit.c13 FIX(tmp.rlim_cur); in prlimit()
19 FIX(old_limit->rlim_cur); in prlimit()
/third_party/ltp/testcases/kernel/syscalls/abort/
Dabort01.c87 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/
Dsetrlimit.c15 FIX(tmp.rlim_cur); in __setrlimit()
20 k_rlim[0] = rlim->rlim_cur; in __setrlimit()
/third_party/mbedtls/tests/suites/
Dtest_suite_net.function103 if( rlim_nofile.rlim_cur < FD_SETSIZE + 1 )
105 rlim_t old_rlim_cur = rlim_nofile.rlim_cur;
106 rlim_nofile.rlim_cur = FD_SETSIZE + 1;
108 rlim_nofile.rlim_cur = old_rlim_cur;

123456