File descriptor number disagreement

Alex Waugh alex at
Wed Jun 8 11:54:03 PDT 2005

In message <21d4dc774d.peter at>
          Peter Naulls <peter at> wrote:

> FD_BITS in UnixLib is 256, yet SUL only allocates room for 54 file
> descriptors.  This causes potential badness in select(), although
> possibly nowhere else.
> The obvious fix it to make a new SUL verision which allocates more.  Any
> comments?

The size of the __proc->file_descriptors array can in theory be
increased dynamically by UnixLib when the program runs out of file
descriptors, and existing code and SUL should cope. I don't know if
that helps with the select problem though.


Alex Waugh                                           alex at

PHP, Roots, Subversion, WebJames and more from

More information about the gcc mailing list