diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-05 16:03:37 +0100 |
---|---|---|
committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-09-22 15:24:26 +0200 |
commit | 0162cb2d4f7040e3b2d48095182f87ce565866a5 (patch) | |
tree | 2810709bcd208ec15a72ca942d47e565774a9408 /lib/maxfd.h | |
parent | 7fd0e6f36d90a341e0d9b418f1cd64a3a5472a94 (diff) | |
download | monitoring-plugins-0162cb2.tar.gz |
fixup! Rework maxfd/open_max to avoid unused variables
Diffstat (limited to 'lib/maxfd.h')
-rw-r--r-- | lib/maxfd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/maxfd.h b/lib/maxfd.h new file mode 100644 index 00000000..0d734c5c --- /dev/null +++ b/lib/maxfd.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef _MAXFD_ | ||
2 | #define _MAXFD_ | ||
3 | |||
4 | #define DEFAULT_MAXFD 256 /* fallback value if no max open files value is set */ | ||
5 | #define MAXFD_LIMIT 8192 /* upper limit of open files */ | ||
6 | |||
7 | long open_max (void); | ||
8 | |||
9 | #endif // _MAXFD_ | ||