summaryrefslogtreecommitdiffstats
path: root/lib/maxfd.h
diff options
context:
space:
mode:
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 0000000..0d734c5
--- /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 open_max (void);
8
9#endif // _MAXFD_