Searched refs:resource (Results 1 - 8 of 8) sorted by relevance

/systemd/src/basic/
H A Drlimit-util.h22 #include <sys/resource.h>
29 int setrlimit_closest(int resource, const struct rlimit *rlim);
31 int rlimit_parse_one(int resource, const char *val, rlim_t *ret);
32 int rlimit_parse(int resource, const char *val, struct rlimit *ret);
H A Drlimit-util.c21 #include <sys/resource.h>
32 int setrlimit_closest(int resource, const struct rlimit *rlim) { argument
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) { argument
179 if (resource < 0)
181 if (resource >= _RLIMIT_MAX)
184 return rlimit_parse_table[resource](val, ret);
187 int rlimit_parse(int resource, cons argument
[all...]
H A Dfd-util.c22 #include <sys/resource.h>
H A Dmissing.h35 #include <sys/resource.h>
/systemd/src/test/
H A Dtest-rlimit-util.c18 #include <sys/resource.h>
27 static void test_rlimit_parse_format(int resource, const char *string, rlim_t soft, rlim_t hard, int ret, const char *formatted) { argument
37 assert_se(rlimit_parse(resource, string, &rl) == ret);
47 assert_se(rlimit_parse(resource, formatted, &rl2) >= 0);
/systemd/src/bootchart/
H A Dbootchart.c43 #include <sys/resource.h>
/systemd/src/shared/
H A Dbus-util.c27 #include <sys/resource.h>
1474 return log_error_errno(r, "Failed to parse resource limit: %s", eq);
2022 { "resources", "a configured resource limit was exceeded" },
/systemd/src/core/
H A Dload-fragment.c30 #include <sys/resource.h>
1125 log_syntax(unit, LOG_WARNING, filename, line, r, "Soft resource limit chosen higher than hard limit, ignoring: %s", rvalue);
1129 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse resource value, ignoring: %s", rvalue);

Completed in 1782 milliseconds