Searched refs:rlim (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/basic/ |
D | rlimit-util.c | 16 int setrlimit_closest(int resource, const struct rlimit *rlim) { in setrlimit_closest() argument 19 assert(rlim); in setrlimit_closest() 21 if (setrlimit(resource, rlim) >= 0) in setrlimit_closest() 38 .rlim_cur = MIN(rlim->rlim_cur, highest.rlim_max), in setrlimit_closest() 39 .rlim_max = MIN(rlim->rlim_max, highest.rlim_max), in setrlimit_closest() 47 …or resource RLIMIT_%s. Will attempt setting value " RLIM_FMT " instead.", rlim->rlim_max, rlimit_t… in setrlimit_closest() 52 int setrlimit_closest_all(const struct rlimit *const *rlim, int *which_failed) { in setrlimit_closest_all() argument 55 assert(rlim); in setrlimit_closest_all() 60 if (!rlim[i]) in setrlimit_closest_all() 63 r = setrlimit_closest(i, rlim[i]); in setrlimit_closest_all()
|
D | rlimit-util.h | 12 int setrlimit_closest(int resource, const struct rlimit *rlim); 13 int setrlimit_closest_all(const struct rlimit * const *rlim, int *which_failed);
|