Fix return value of fwrite when a 'hard' error occurs
commit96f2821683ec41a28b5aa6ec92245e47dfee989b
authorJan Vangorp <jan.vangorp_ext@softathome.com>
Wed, 8 Jun 2016 22:00:49 +0000 (9 00:00 +0200)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 12 Jun 2016 09:44:45 +0000 (12 11:44 +0200)
tree807f48ec85a5f2f02ac09146e89dfd831eb90339
parent568ceebf6adfc58c64a95133311268db626cdec2
Fix return value of fwrite when a 'hard' error occurs

When a 'hard' error occurs, fwrite reports that all data was written or
buffered even if that is not the case. It should report how much data
was actually written and buffered.

Signed-off-by: Jan Vangorp <jan.vangorp_ext@softathome.com>
libc/stdio/_WRITE.c