diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-02-01 21:15:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-02-01 22:18:16 +0100 |
commit | 99d4f5e5c0d2532159542519e683f976f881f0f5 (patch) | |
tree | b80732d258a9a3abf896231996eb8e8856c1da30 /src/basic/rlimit-util.h | |
parent | cb9712492f94153b7ce6fc03d6dd3fd95c87baa5 (diff) |
basic: add new rlimit_format() call
This formats a struct rlimit the way rlimit_parse() expects it.
Diffstat (limited to 'src/basic/rlimit-util.h')
-rw-r--r-- | src/basic/rlimit-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/rlimit-util.h b/src/basic/rlimit-util.h index fd2f7ff7cf..abf3c57934 100644 --- a/src/basic/rlimit-util.h +++ b/src/basic/rlimit-util.h @@ -33,4 +33,6 @@ 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); +int rlimit_format(const struct rlimit *rl, char **ret); + #define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim }) |