Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 08:01:52 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= <des@des.no>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/lib/libc/stdio fdopen.c fopen.c freopen.c
Message-ID:  <200802280801.53162.jhb@freebsd.org>
In-Reply-To: <867igp4b49.fsf@ds4.des.no>
References:  <200802271902.m1RJ23wd012246@repoman.freebsd.org> <86ejax4bjl.fsf@ds4.des.no> <867igp4b49.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 28 February 2008 05:40:54 am Dag-Erling Sm=C3=B8rgrav wrote:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> > John Baldwin <jhb@FreeBSD.org> writes:
> > > At some point in the future we should look at expanding the file=20
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 *.
>=20
> 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 >=3D32768.
>=20
> 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 hand=
les=20
this fine.

=2D-=20
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802280801.53162.jhb>