Lines Matching refs:resource
21 #include <sys/resource.h>
32 int setrlimit_closest(int resource, const struct rlimit *rlim) {
37 if (setrlimit(resource, rlim) >= 0)
45 assert_se(getrlimit(resource, &highest) == 0);
50 if (setrlimit(resource, &fixed) < 0)
175 int rlimit_parse_one(int resource, const char *val, rlim_t *ret) {
179 if (resource < 0)
181 if (resource >= _RLIMIT_MAX)
184 return rlimit_parse_table[resource](val, ret);
187 int rlimit_parse(int resource, const char *val, struct rlimit *ret) {
201 r = rlimit_parse_one(resource, soft, &sl);
213 r = rlimit_parse_one(resource, hard, &hl);