summaryrefslogtreecommitdiffstats
path: root/lib/maxfd.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-09-23 10:47:01 +0200
committerGitHub <noreply@github.com>2023-09-23 10:47:01 +0200
commit719e27ddc2f0b48bcd7fe5584b23e3ce83ddf291 (patch)
tree1ca6c622275cf8d57e0b6b6d7fb0da4cce8e9205 /lib/maxfd.h
parentfe718dec117a7adb8a7107a4137a86c79b54d15f (diff)
parent4295decfbf06adfa1bf019d28e9044971607b2d6 (diff)
downloadmonitoring-plugins-719e27d.tar.gz
Merge pull request #1924 from RincewindsHat/compiler_warnings_4_1
Centralise and refactor maxfd related functionality
Diffstat (limited to 'lib/maxfd.h')
-rw-r--r--lib/maxfd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/maxfd.h b/lib/maxfd.h
new file mode 100644
index 00000000..45218d0f
--- /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
7long mp_open_max (void);
8
9#endif // _MAXFD_