diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-23 08:33:06 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-23 08:33:06 (GMT) |
commit | 4295decfbf06adfa1bf019d28e9044971607b2d6 (patch) | |
tree | 416ac41722c554dab36231440b0f2846375a8b82 /lib/maxfd.c | |
parent | bef0d0dd4ab04ac1189071526fae4031bec36b1d (diff) | |
download | monitoring-plugins-4295decfbf06adfa1bf019d28e9044971607b2d6.tar.gz |
open_max is a library function now, it should be mp_open_maxrefs/pull/1924/head
Diffstat (limited to 'lib/maxfd.c')
-rw-r--r-- | lib/maxfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/maxfd.c b/lib/maxfd.c index dcd4d3d..529b356 100644 --- a/lib/maxfd.c +++ b/lib/maxfd.c | |||
@@ -1,7 +1,7 @@ | |||
1 | #include "./maxfd.h" | 1 | #include "./maxfd.h" |
2 | #include <errno.h> | 2 | #include <errno.h> |
3 | 3 | ||
4 | long open_max (void) { | 4 | long mp_open_max (void) { |
5 | long maxfd = 0L; | 5 | long maxfd = 0L; |
6 | /* Try sysconf(_SC_OPEN_MAX) first, as it can be higher than OPEN_MAX. | 6 | /* Try sysconf(_SC_OPEN_MAX) first, as it can be higher than OPEN_MAX. |
7 | * If that fails and the macro isn't defined, we fall back to an educated | 7 | * If that fails and the macro isn't defined, we fall back to an educated |