Ping[3]: [PATCH][BZ #11741] printf should return negative value on I/O error

Siddhesh Poyarekar siddhesh@redhat.com
Fri Nov 16 05:18:00 GMT 2012


On Thu, 15 Nov 2012 23:58:30 -0500, Carlos wrote:
> I expect xsputn to return the number of bytes written, including 0,
> and never EOF, since that is what ISO C++ says.
> 
> If we aren't going to follow exactly what xsputn does in C++ then we
> should add a very large warning about this.

vfprintf currently needs the EOF to determine if an error had
occurred.  libstdc++ does not use libio any more, so glibc is the only
user here.  Do we still need to retain the C++ semantics?


Siddhesh



More information about the Libc-alpha mailing list