From owner-cvs-all Wed Feb 7 9:46:37 2001 Delivered-To: cvs-all@freebsd.org Received: from mail.rdc1.kt.home.ne.jp (ha2.rdc1.kt.home.ne.jp [203.165.9.243]) by hub.freebsd.org (Postfix) with ESMTP id D70C337B4EC; Wed, 7 Feb 2001 09:46:05 -0800 (PST) Received: from daemon.local.idaemons.org ([203.165.161.10]) by mail.rdc1.kt.home.ne.jp (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20010207174604.TIVB19464.mail.rdc1.kt.home.ne.jp@daemon.local.idaemons.org>; Wed, 7 Feb 2001 09:46:04 -0800 Received: by daemon.local.idaemons.org (8.11.1/3.7W) id f17Hjwv67993; Thu, 8 Feb 2001 02:45:58 +0900 (JST) Date: Thu, 08 Feb 2001 02:45:58 +0900 Message-ID: <86k8724ca1.wl@archon.local.idaemons.org> From: "Akinori MUSHA" To: Maxim Sobolev Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdio findfp.c In-Reply-To: <200102071734.f17HYoQ87487@freefall.freebsd.org> References: <200102071734.f17HYoQ87487@freefall.freebsd.org> User-Agent: Wanderlust/2.5.4 (Smooth) SEMI/1.14.2 (=?ISO-8859-1?Q?Daish=F2?= =?ISO-8859-1?Q?ji?=) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by SEMI 1.14.2 - =?ISO-8859-1?Q?=22Daish=F2ji=22?=) Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At Wed, 7 Feb 2001 09:34:50 -0800 (PST), sobomax wrote: > sobomax 2001/02/07 09:34:49 PST > > Modified files: > lib/libc/stdio findfp.c > Log: > Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once. > > Tested by: knu, sobomax and other #bsdcode'rs Actually, I found this when I was writing some Ruby code.. Ruby does a garbage collection to close usused file descriptors when it gets ENFILE or EMFILE when fopen fails, but it somehow reported that it got errno == 0 when fopen() failed. That led me to doubt fopen(3), and bug the bsdcode'ers. :) I'd credit to Ruby for its detailed error message in its usual way, and S-Max for his good catch. :) Thanks. -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "We're only at home when we're on the run, on the wing, on the fly" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message