Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Feb 2001 02:45:58 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdio findfp.c
Message-ID:  <86k8724ca1.wl@archon.local.idaemons.org>
In-Reply-To: <200102071734.f17HYoQ87487@freefall.freebsd.org>
References:  <200102071734.f17HYoQ87487@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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