summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-16 11:25:00 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-16 11:26:53 +0100
commite8512b8cd7b3a0b7f08e809773706905ee9c5dbb (patch)
tree5f1d9bb22578c31a37e2581d8a2ec35cf49e507c
parent58b435f49e58be34755b317ac7405e8722855bd2 (diff)
downloadserenity-e8512b8cd7b3a0b7f08e809773706905ee9c5dbb.zip
LibC: Bump FD_SETSIZE to 1024
64 was cutting it pretty close, especially now as we start using file descriptor passing more and more. This (1024) matches many other systems, and if we need more there's always sys$poll().
-rw-r--r--Userland/Libraries/LibC/fd_set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/fd_set.h b/Userland/Libraries/LibC/fd_set.h
index 254a1ba49c..391155f5e8 100644
--- a/Userland/Libraries/LibC/fd_set.h
+++ b/Userland/Libraries/LibC/fd_set.h
@@ -26,7 +26,7 @@
#pragma once
-#define FD_SETSIZE 64
+#define FD_SETSIZE 1024
#define FD_ZERO(set) memset((set), 0, sizeof(fd_set));
#define FD_CLR(fd, set) ((set)->bits[(fd / 8)] &= ~(1 << (fd) % 8))
#define FD_SET(fd, set) ((set)->bits[(fd / 8)] |= (1 << (fd) % 8))