dumb question
Roland McGrath
roland@frob.com
Tue Jun 30 09:59:00 GMT 1998
> The advantage of using poll instead of select is that glibc is not
> dependend anymore on FD_SETSIZE and doesn't need to be recompiled if
> the user changes NR_OPEN.
The select interface was designed specifically to avoid this problem,
if you use it right. You should never need to use FD_SETSIZE. You can
dynamically allocate as many bits as you need, and then you pass the max fd
number to select. If the kernel is not a piece of shit, this works fine.
More information about the Libc-hacker
mailing list