diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-05-03 18:45:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-17 20:36:52 +0200 |
commit | 6550c24c7f21ee398a1ca0ab43603b23a3414108 (patch) | |
tree | f99265f8feb8ced015942db9978da228eb461cd1 /src/basic/rlimit-util.h | |
parent | 0e960f9b5cb42bdbb9e0aafe2b543f969f6e0aae (diff) | |
download | systemd-6550c24c7f21ee398a1ca0ab43603b23a3414108.tar.gz systemd-6550c24c7f21ee398a1ca0ab43603b23a3414108.tar.bz2 systemd-6550c24c7f21ee398a1ca0ab43603b23a3414108.zip |
rlimit-util: rework rlimit_{from|to}_string() to work without "Limit" prefix
let's make the call more generic, so that we can also easily use it for
parsing "RLIMIT_xyz" style constants.
Diffstat (limited to 'src/basic/rlimit-util.h')
-rw-r--r-- | src/basic/rlimit-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/rlimit-util.h b/src/basic/rlimit-util.h index 3766f78d58..42f2e0e547 100644 --- a/src/basic/rlimit-util.h +++ b/src/basic/rlimit-util.h @@ -13,6 +13,7 @@ const char *rlimit_to_string(int i) _const_; int rlimit_from_string(const char *s) _pure_; +int rlimit_from_string_harder(const char *s) _pure_; int setrlimit_closest(int resource, const struct rlimit *rlim); |