On Wed, 2006-05-10 at 10:58 -0400, Owen Taylor wrote:
> > The Solaris implementation has a problem with any fopen() which
> > opens a file above the 256 file descriptor.
>
> I'm slightly speechless here, though I'm sure there are valid historical
> compatibility reasons for why Sun can't fix that problem.
I was so surprised I did a bit of Googling. The easy solution to the
problem is to compile your code in 64-bit mode, as this limitation only
applies to the 32-bit ABI (from fopen man page):
USAGE
A process is allowed to have at least {FOPEN_MAX} stdio
streams open at a time. For 32-bit applications, however,
the underlying ABIs formerly required that no file descrip-
tor used to access the file underlying a stdio stream have a
value greater than 255. To maintain binary compatibility
with earlier Solaris releases, this limit still constrains
32-bit applications.
Ross
--
Ross Burton mail: ross burtonini com
jabber: ross burtonini com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
Attachment:
signature.asc
Description: This is a digitally signed message part