/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/kernel/liteos_a/testsuites/unittest/fuzz/ |
H A D | getrlimit_fuzzer.cpp | 37 struct rlimit fa; in TestGetrlimit() 43 char *datainput = DT_SetGetFixBlob(&g_Element[1], sizeof(struct rlimit), sizeof(struct rlimit), (char *)&fa); in TestGetrlimit() 44 getrlimit(resource, (struct rlimit *)datainput); in TestGetrlimit()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | resourcendk.cpp | 75 struct rlimit rLim[length];
in GetRLimit() 99 struct rlimit newLimit = {0};
in PrLimit() 100 struct rlimit oldLimit = {0};
in PrLimit() 115 struct rlimit newLimit = {0};
in PrLimit64() 116 struct rlimit oldLimit = {0};
in PrLimit64() 131 struct rlimit rl = {PARAM_0};
in Getrlimit64() 135 struct rlimit retrl = {PARAM_0};
in Getrlimit64() 166 struct rlimit rl = {PARAM_0};
in Setrlimit() 175 struct rlimit rl = {PARAM_0};
in Setrlimit() 195 struct rlimit r in Setrlimit64() [all...] |
/third_party/musl/src/misc/ |
H A D | setrlimit.c | 10 static int __setrlimit(int resource, const struct rlimit *rlim) in __setrlimit() 13 struct rlimit tmp; in __setrlimit() 29 const struct rlimit *rlim; 50 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit() 55 struct rlimit tmp; in setrlimit()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_ldst.c | 161 // We should be able to access anywhere within the rlimit in test_one_type() 167 // But if we go past the rlimit it should fail in test_one_type() 174 struct rlimit rlimit; in test() local 177 getrlimit(RLIMIT_STACK, &rlimit); in test() 178 printf("Stack rlimit is 0x%lx\n", rlimit.rlim_cur); in test() 181 test_one_type(LOAD, page_size, rlimit.rlim_cur); in test() 183 test_one_type(STORE, page_size, rlimit.rlim_cur); in test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_ldst.c | 161 // We should be able to access anywhere within the rlimit in test_one_type() 167 // But if we go past the rlimit it should fail in test_one_type() 174 struct rlimit rlimit; in test() local 177 getrlimit(RLIMIT_STACK, &rlimit); in test() 178 printf("Stack rlimit is 0x%lx\n", rlimit.rlim_cur); in test() 181 test_one_type(LOAD, page_size, rlimit.rlim_cur); in test() 183 test_one_type(STORE, page_size, rlimit.rlim_cur); in test()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
H A D | setrlimit.c | 9 static int __setrlimit(int resource, const struct rlimit *rlim) in __setrlimit() 12 struct rlimit tmp; in __setrlimit() 26 const struct rlimit *rlim; 38 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit()
|
/third_party/musl/src/linux/ |
H A D | prlimit.c | 7 int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit) in prlimit() 9 struct rlimit tmp; in prlimit()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getrlimit.c | 29 struct rlimit rl; in getrlimit_0100() 35 struct rlimit retrl; in getrlimit_0100() 49 struct rlimit limit; in getrlimit_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A 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() 48 struct rlimit new_limit = {.rlim_cur = lim, .rlim_max = lim}; in prlimit_0200()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
H A D | mmap.c | 28 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() 66 struct rlimit *rlim_stack) in mmap_base() 187 struct rlimit *rlim_stack) in radix__arch_pick_mmap_layout() 201 struct rlimit *rlim_stack); 207 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
|
/kernel/linux/linux-6.6/tools/testing/selftests/core/ |
H A D | close_range_test.c | 248 struct rlimit rlimit; in TEST() local 271 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 272 rlimit.rlim_cur = 25; in TEST() 273 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 316 struct rlimit rlimit; in TEST() local 339 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 340 rlimit.rlim_cur = 25; in TEST() 341 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() [all...] |
/third_party/musl/libc-test/src/api/ |
H A D | sys_resource.c | 19 struct rlimit x; in f() 36 {int(*p)(int,struct rlimit*) = getrlimit;} in f() 39 {int(*p)(int,const struct rlimit*) = setrlimit;} in f()
|
/third_party/rust/crates/nix/src/sys/ |
H A D | resource.rs | 14 use libc::{__rlimit_resource_t, rlimit}; 25 use libc::rlimit; 202 let mut old_rlim = mem::MaybeUninit::<rlimit>::uninit(); in getrlimit() 213 let rlimit { rlim_cur, rlim_max } = unsafe { old_rlim.assume_init() }; in getrlimit() 253 let new_rlim = rlimit { in setrlimit() 259 let res = unsafe { libc::setrlimit(resource as __rlimit_resource_t, &new_rlim as *const rlimit) }; in setrlimit() 261 let res = unsafe { libc::setrlimit(resource as c_int, &new_rlim as *const rlimit) }; in setrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
H A D | sched_setscheduler03.c | 60 static void l_rlimit_show(const int type, struct rlimit *limit) in l_rlimit_show() 64 "rlimit rlim_cur=%lu", (unsigned long)(limit->rlim_cur)); in l_rlimit_show() 66 "rlimit rlim_max=%lu", (unsigned long)(limit->rlim_max)); in l_rlimit_show() 69 static void l_rlimit_setup(const int type, struct rlimit *limit) in l_rlimit_setup() 71 struct rlimit tmp_rlimit; in l_rlimit_setup() 108 struct rlimit limit; in setup() 119 * nice rlimit ranges from 1 to 40, mapping to real nice in setup()
|
/kernel/liteos_a/compat/posix/src/ |
H A D | misc.c | 162 int getrlimit(int resource, struct rlimit *rlim) in getrlimit() 166 struct rlimit *resourceLimit = pcb->resourceLimit; in getrlimit() 195 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit() 198 struct rlimit *resourceLimit = NULL; in setrlimit() 220 resourceLimit = LOS_MemAlloc((VOID *)m_aucSysMem0, RLIM_NLIMITS * sizeof(struct rlimit)); in setrlimit()
|
/third_party/ltp/testcases/cve/ |
H A D | stack_clash.c | 219 struct rlimit rlimit; in do_child() local 221 rlimit.rlim_cur = rlimit.rlim_max = RLIM_INFINITY; in do_child() 222 SAFE_SETRLIMIT(RLIMIT_STACK, &rlimit); in do_child()
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
H A D | mlock02.c | 33 static struct rlimit original; 49 struct rlimit rl; in test_enomem2() 66 struct rlimit rl; in test_eperm()
|
/third_party/toybox/toys/posix/ |
H A D | ulimit.c | 54 int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, 55 struct rlimit *old_limit); 62 struct rlimit rr; in ulimit_main()
|
/kernel/liteos_a/syscall/ |
H A D | misc_syscall.c | 249 struct rlimit lim = { 0 }; in SysUgetrlimit() 256 ret = LOS_ArchCopyToUser(k_rlim, &lim, sizeof(struct rlimit)); in SysUgetrlimit() 267 struct rlimit lim; in SysSetrlimit() 273 ret = LOS_ArchCopyFromUser(&lim, k_rlim, sizeof(struct rlimit)); in SysSetrlimit()
|