diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-05 15:21:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-06 14:39:15 +0200 |
commit | 9264cc39ce9da6f6cdf675a7b3bb3ef9e8f97cbb (patch) | |
tree | fa7090786fc73ef0c7e7a539f50094bd3ba1478e /src/basic/fd-util.h | |
parent | 0e37c169fbacf3b447aa97eac459c29537c34263 (diff) | |
download | systemd-9264cc39ce9da6f6cdf675a7b3bb3ef9e8f97cbb.tar.gz |
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 2ae4e67ed0..b94944972c 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -108,3 +108,5 @@ static inline int make_null_stdio(void) { }) int fd_reopen(int fd, int flags); + +int read_nr_open(void); |