summaryrefslogtreecommitdiff
path: root/src/basic/rlimit-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-01 21:07:09 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-01 22:18:16 +0100
commitd0a7c5f69207b6719bab94893035fc8f5f6f87cb (patch)
treebd1df1397760acff93783f14982f8ce8aecf5c13 /src/basic/rlimit-util.h
parenta483fb59a8dd908a3e4b20d62410d022d511eaa8 (diff)
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.
Diffstat (limited to 'src/basic/rlimit-util.h')
-rw-r--r--src/basic/rlimit-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/rlimit-util.h b/src/basic/rlimit-util.h
index 262f86dd04..fd2f7ff7cf 100644
--- a/src/basic/rlimit-util.h
+++ b/src/basic/rlimit-util.h
@@ -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 })