> The problem is that if a program has an fd_set of 256 bits, the kernel
> better not pass that process a file descriptor numbered 257 under
> *any* circumstances! Hence, the kernel needs to know what the size
> each process can handle, and all functions in libc which use select()
> need to be able to deal with it.
Isn't it possible for the application to tell the kernel what max. #
of fd's it can handle? Yes, it's a bit ugly, but it would work.
Martin