cvs commit: src/lib/libc/stdio fdopen.c fopen.c freopen.c

Dag-Erling Smørgrav des at
Thu Feb 28 10:40:59 UTC 2008

Dag-Erling Smørgrav <des at> writes:
> John Baldwin <jhb at> writes:
> > At some point in the future we should look at expanding the file descriptor
> > in FILE to an int, but that is a bit complicated due to ABI issues.
> There shouldn't be any ABI issues, since FILE should never, ever be used
> directly, only through FILE *.

After reading the discussion on -arch, I take that back; but as Garrett
pointed out, a simple way of fixing it is to just return EMFILE if the
fd we get from open() is >=32768.

It's a pity we're not allowed to increase FOPEN_MAX beyond some
ridiculously low number...

Dag-Erling Smørgrav - des at

More information about the cvs-src mailing list