diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-05 15:21:47 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 83e6d192cbe160dbea62427bab0f6f7d490ce215 (patch) | |
tree | 80c85bdcf9d4a8a10cbabdb0e82bf5108b213e76 /src/basic/fd-util.h | |
parent | 9f900051e499dbedb1aae2a0f81c4a295d2069ae (diff) |
main: split out reading of /proc/sys/fs/nr_open into its own function
This doesn't really reduce the code size over all, but it does make main.c
shorter and more readable, and that's always a good thing.
Diffstat (limited to 'src/basic/fd-util.h')
-rw-r--r-- | src/basic/fd-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h index 5d52e3b19..7f7ac8901 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -112,3 +112,5 @@ static inline int make_null_stdio(void) { }) int fd_reopen(int fd, int flags); + +int read_nr_open(void); |