fix fputc and friends on read-only streams

Eric Blake eblake@redhat.com
Mon Jun 13 21:10:00 GMT 2011


On 06/07/2011 11:57 AM, Eric Blake wrote:
> POSIX requires that ferror() and errno reflect any failed attempt to
> write to a read-only stream, but newlib wasn't reliably doing this:
> 
> 2011-06-07  Eric Blake  <eblake@redhat.com>
> 
> 	* libc/stdio/wsetup.c (__swsetup_r): Set errno on failure.

Ping.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20110613/b09088b5/attachment.sig>


More information about the Newlib mailing list