This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Allow customizing of __FD_SETSIZE
Carlos O'Donell wrote:
> The kernel __kernel_fd_set only supports 1024 file descriptors.
>
> (a) Have you patched your kernel to support more?
>
> (b) What are you doing for old programs that would only support 1024,
> how does the kernel detect those programs and avoid using the
> unavailable additional file descriptor bits?
>
> Unfortunately your problem is much more complicated than simply
> increasing the value in a header. This is an ABI issue.
>
> Does that answer your question?
>
> Cheers,
> Carlos.
>
The first select parameter (nfds) should take care of it.