浏览代码

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().
Andreas Kling 4 年之前
父节点
当前提交
e8512b8cd7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibC/fd_set.h

+ 1 - 1
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))