At Wed, 7 Feb 2001 09:34:50 -0800 (PST),
> sobomax 2001/02/07 09:34:49 PST
> Modified files:
> lib/libc/stdio findfp.c
> 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