core: move parsing of rlimits into rlimit-util.[ch]

This way we can reuse it for parsing rlimit settings in "systemctl set-property" and related commands.
This commit is contained in:
Lennart Poettering
2016-02-01 22:18:16 +01:00
parent a483fb59a8
commit d0a7c5f692
7 changed files with 243 additions and 232 deletions
+3
View File
@@ -30,4 +30,7 @@ int rlimit_from_string(const char *s) _pure_;
int setrlimit_closest(int resource, const struct rlimit *rlim);
int rlimit_parse_one(int resource, const char *val, rlim_t *ret);
int rlimit_parse(int resource, const char *val, struct rlimit *ret);
#define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim })