From owner-cvs-all@FreeBSD.ORG Thu Feb 28 10:40:59 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 477801065678; Thu, 28 Feb 2008 10:40:59 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id F3D4F8FC13; Thu, 28 Feb 2008 10:40:58 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 7B0C3208C; Thu, 28 Feb 2008 11:40:55 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id B99FD2049; Thu, 28 Feb 2008 11:40:54 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: John Baldwin References: <200802271902.m1RJ23wd012246@repoman.freebsd.org> <86ejax4bjl.fsf@ds4.des.no> Date: Thu, 28 Feb 2008 11:40:54 +0100 In-Reply-To: <86ejax4bjl.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Thu\, 28 Feb 2008 11\:31\:42 +0100") Message-ID: <867igp4b49.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 10:40:59 -0000 Dag-Erling Sm=C3=B8rgrav writes: > John Baldwin writes: > > At some point in the future we should look at expanding the file descri= ptor > > 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 >=3D32768. It's a pity we're not allowed to increase FOPEN_MAX beyond some ridiculously low number... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no