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:
Andreas Kling 2021-01-16 11:25:00 +01:00
parent 58b435f49e
commit e8512b8cd7
Notes: sideshowbarker 2024-07-18 23:11:48 +09:00

View file

@ -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))