OSDN Git Service

* libc/stdio/fflush.c (_fflush_r): Store old errno to check for
authorcorinna <corinna>
Fri, 30 Oct 2009 17:26:41 +0000 (17:26 +0000)
committercorinna <corinna>
Fri, 30 Oct 2009 17:26:41 +0000 (17:26 +0000)
commit949a231a2b791129c714ba1c10599b154fffa163
treea405f9e804d57e8a45ab65fe4ac8125169188fc6
parentd407b8c5a2871e5f9b6cde4c3374a01d3eeedc80
* libc/stdio/fflush.c (_fflush_r): Store old errno to check for
low-level seek error condition.  Restore old errno in case of
success.  Don't use new position after seek as error condition,
rather check for return value of -1 and errno.  Handle EINVAL
just like ESPIPE.  Only set fp->_offset if errno is 0.
newlib/ChangeLog
newlib/libc/stdio/fflush.c