mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 11:39:44 +03:00
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().
This commit is contained in:
parent
58b435f49e
commit
e8512b8cd7
Notes:
sideshowbarker
2024-07-18 23:11:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e8512b8cd7b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user