From e8512b8cd7b3a0b7f08e809773706905ee9c5dbb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 16 Jan 2021 11:25:00 +0100 Subject: [PATCH] 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(). --- Userland/Libraries/LibC/fd_set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/fd_set.h b/Userland/Libraries/LibC/fd_set.h index 254a1ba49cd..391155f5e84 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))