/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0008-Use-uintmax_t-for-handling-rlim_t.patch | 15 | prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max); 25 src/basic/rlimit-util.c | 12 ++++++------ 48 diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c 50 --- a/src/basic/rlimit-util.c 51 +++ b/src/basic/rlimit-util.c 52 @@ -47,7 +47,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) { 56 - log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett… 57 + log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett… 61 @@ -310,13 +310,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) { 94 if (c->rlimit[i]) { [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0006-Use-uintmax_t-for-handling-rlim_t.patch | 15 | prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max); 25 src/basic/rlimit-util.c | 12 ++++++------ 48 diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c 50 --- a/src/basic/rlimit-util.c 51 +++ b/src/basic/rlimit-util.c 52 @@ -44,7 +44,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) { 56 - log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett… 57 + log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett… 61 @@ -307,13 +307,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) { 94 if (c->rlimit[i]) { [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_ldst.c | 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()
|
/openbmc/linux/kernel/ |
H A D | ucount.c | 270 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts() 285 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); in dec_rlimit_ucounts() 298 long dec = atomic_long_sub_return(1, &iter->rlimit[type]); in do_dec_rlimit_put_ucounts() 320 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() 338 dec = atomic_long_sub_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() 344 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) in is_rlimit_overlimit() argument 347 long max = rlimit; in is_rlimit_overlimit() 348 if (rlimit > LONG_MAX) in is_rlimit_overlimit()
|
H A D | sys.c | 507 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && in flag_nproc_exceeded() 1456 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit() 1458 struct rlimit *rlim; in do_prlimit() 1518 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) in SYSCALL_DEFINE2() 1520 struct rlimit value; in SYSCALL_DEFINE2() 1535 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() 1555 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() 1584 struct rlimit __user *, rlim) in SYSCALL_DEFINE2() 1586 struct rlimit x; in SYSCALL_DEFINE2() 1605 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | lm25066.c | 232 u16 rlimit; /* Maximum register value */ member 394 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 398 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 404 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 412 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 419 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data() 512 data->rlimit = 0x0fff; in lm25066_probe() 516 data->rlimit = 0x0fff; in lm25066_probe()
|
/openbmc/linux/security/apparmor/include/ |
H A D | resource.h | 30 struct rlimit limits[RLIM_NLIMITS]; 38 unsigned int resource, struct rlimit *new_rlim);
|
/openbmc/linux/arch/x86/mm/ |
H A D | mmap.c | 83 struct rlimit *rlim_stack) in mmap_base() 120 struct rlimit *rlim_stack) in arch_pick_mmap_base() 129 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
|
/openbmc/linux/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 53 struct rlimit saved_limits, cur_limits; 65 static inline void getr(int type, struct rlimit *rlim); 66 static inline void setr(int type, struct rlimit *rlim); 141 static inline void getr(int type, struct rlimit *rlim) in getr() 147 static inline void setr(int type, struct rlimit *rlim) in setr()
|
H A D | mq_perf_tests.c | 93 struct rlimit saved_limits, cur_limits; 160 static inline void getr(int type, struct rlimit *rlim); 161 static inline void setr(int type, struct rlimit *rlim); 270 static inline void getr(int type, struct rlimit *rlim) in getr() 276 static inline void setr(int type, struct rlimit *rlim) in setr()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | mlock-random-test.c | 28 struct rlimit new; in set_cap_limits() 144 struct rlimit cur; in test_mlock_within_limit() 221 struct rlimit cur; in test_mlock_outof_limit()
|
H A D | on-fault-limit.c | 12 struct rlimit lims; in test_limit()
|
H A D | memfd_secret.c | 213 struct rlimit new; in set_cap_limits() 234 struct rlimit rlim; in prepare()
|
/openbmc/linux/security/apparmor/ |
H A D | resource.c | 90 struct rlimit *new_rlim) in profile_setrlimit() 117 unsigned int resource, struct rlimit *new_rlim) in aa_task_setrlimit() 157 struct rlimit *rlim, *initrlim; in __aa_transition_rlimits()
|
/openbmc/linux/arch/s390/mm/ |
H A D | mmap.c | 29 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() 49 struct rlimit *rlim_stack) in mmap_base() 172 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
|
/openbmc/qemu/configs/targets/ |
H A D | or1k-linux-user.mak | 3 TARGET_SYSTBL_ABI=common,32,or1k,time32,stat64,rlimit,renameat
|
H A D | hexagon-linux-user.mak | 4 TARGET_SYSTBL_ABI=common,32,hexagon,time32,stat64,rlimit,renameat
|
H A D | aarch64-linux-user.mak | 7 TARGET_SYSTBL_ABI=common,64,renameat,rlimit,memfd_secret
|
H A D | aarch64_be-linux-user.mak | 8 TARGET_SYSTBL_ABI=common,64,renameat,rlimit,memfd_secret
|
H A D | riscv64-linux-user.mak | 8 TARGET_SYSTBL_ABI=common,64,riscv,rlimit,memfd_secret
|
/openbmc/linux/tools/perf/util/ |
H A D | rlimit.c | 15 struct rlimit rlim; in rlimit__bump_memlock()
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | processor.h | 50 struct rlimit; 51 unsigned long mmap_upper_limit(struct rlimit *rlim_stack);
|
/openbmc/linux/include/linux/ |
H A D | user_namespace.h | 113 atomic_long_t rlimit[UCOUNT_RLIMIT_COUNTS]; member 129 return atomic_long_read(&ucounts->rlimit[type]); in get_rlimit_value()
|
/openbmc/linux/include/uapi/linux/ |
H A D | resource.h | 43 struct rlimit { struct
|