fix assumption in fputs that fwrite returning 0 implies an error
[musl] / src / internal / syscall.c