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

John Baldwin jhb at freebsd.org
Thu Feb 28 13:56:50 UTC 2008


On Thursday 28 February 2008 05:40:54 am Dag-Erling Smørgrav wrote:
> 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...

The problem is I'd also like it to work if we get a "large" fd.  glibc handles 
this fine.

-- 
John Baldwin


More information about the cvs-src mailing list