Typo in <sys/select.h>?
Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Wed Jul 6 14:26:26 GMT 2022
> WARNING: select() can monitor only file descriptors numbers that are
> less than FD_SETSIZE (1024)-an unreasonably low limit for many modern
Whoever wrote this, was wrong (they might have never consulted the actual kernel code, or were just
blindsided by FD_SETSIZE being a predefined constant). You can take a look at the kernel source code,
if you don't believe me.
This select() trick has been like that from the earliest days of Linux, and the behavior is carefully carried over.
It's just an FYI :-)
More information about the Cygwin