Home
last modified time | relevance | path

Searched refs:rlim (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/basic/
Drlimit-util.c16 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()
Drlimit-util.h12 int setrlimit_closest(int resource, const struct rlimit *rlim);
13 int setrlimit_closest_all(const struct rlimit * const *rlim, int *which_failed);