aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-10-17 16:05:54 +0000
committerUlrich Drepper <drepper@redhat.com>2005-10-17 16:05:54 +0000
commit5d1d7adb5bdefc314c2d8c7e87a6ef1c21cbfb07 (patch)
treef2ef874500772384e2b137a4b82eed7cf510a379 /libio
parent5d953aef3c9cfb8b67b5b59dab4bac96b2fba23f (diff)
downloadglibc-5d1d7adb5bdefc314c2d8c7e87a6ef1c21cbfb07.zip
glibc-5d1d7adb5bdefc314c2d8c7e87a6ef1c21cbfb07.tar.gz
glibc-5d1d7adb5bdefc314c2d8c7e87a6ef1c21cbfb07.tar.bz2
* libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.
Return EOF not 0. * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Also allow EACCES errors when opening /rpco for now. * wctype/wcfuncs.c: Don't use expensive wide char lookups in isw* functions if character is in ASCII range. * wctype/wcfuncs_l.c: Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/oldfileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/oldfileops.c b/libio/oldfileops.c
index cd54ea5..a69c87e 100644
--- a/libio/oldfileops.c
+++ b/libio/oldfileops.c
@@ -754,7 +754,7 @@ _IO_old_file_xsputn (f, data, n)
_IO_size_t block_size, do_write;
/* Next flush the (full) buffer. */
if (__overflow (f, EOF) == EOF)
- return to_do == 0 ? 0 : n - to_do;
+ return to_do == 0 ? EOF : n - to_do;
/* Try to maintain alignment: write a whole number of blocks.
dont_write is what gets left over. */