cvs commit: src/lib/libc/stdio fdopen.c fopen.c freopen.c
Dag-Erling Smørgrav
des at des.no
Thu Feb 28 10:40:59 UTC 2008
Dag-Erling Smørgrav <des at des.no> writes:
> John Baldwin <jhb at FreeBSD.org> 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...
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the cvs-src
mailing list