Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/stdio



On Thu, May 06, 2010 at 08:51:29AM +0000, David Holland wrote:
 > On Thu, May 06, 2010 at 08:14:08AM +0000, Jukka Ruohonen wrote:
 >  > Correct the discussion about return values: fileno() may fail and return 
 > -1.
 >  > Note that in such cases the NetBSD implementation does not set errno to
 >  > EBADF, hence diverging from the standard in this small detail.
 > 
 > How is that not just a bug?

ok, I think the conclusion is that this is a bug and it should set
errno; now there's an implementation problem that it's a macro and
stdio.h isn't allowed to include errno.h.

I guess we can generate a third copy of the declaration of __errno,
but I'd sort of rather not; it should really go in its own .h file
somewhere, but we don't have a place for that (support/? bits/?) and
adding one requires a bikeshedding round first.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index