about summary refs log tree commit diff
path: root/libio/fileops.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-09 15:27:41 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-09 15:27:41 +0000
commitbfcd44c39909d7542ed8b95529829ffcfb569918 (patch)
tree824f8a64459bb9b11817ae7994e04731043bb291 /libio/fileops.c
parente918a7feebf850a139d894db559f0bd5b5fec32d (diff)
downloadglibc-bfcd44c39909d7542ed8b95529829ffcfb569918.tar.gz
glibc-bfcd44c39909d7542ed8b95529829ffcfb569918.tar.xz
glibc-bfcd44c39909d7542ed8b95529829ffcfb569918.zip
Update.
1998-07-09  Ulrich Drepper  <drepper@cygnus.com>

	* posix/unistd.h: Simplify #ifdefs.

	* libio/libio.h: Undo last change due to possible C++ problems.
	* libio/fileops.h: Likewise.
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 66c2fc514b..82e521af6b 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -316,7 +316,7 @@ _IO_do_write (fp, data, to_do)
     fp->_cur_column = _IO_adjust_column (fp->_cur_column - 1, data, to_do) + 1;
   _IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
   fp->_IO_write_base = fp->_IO_write_ptr = fp->_IO_buf_base;
-  fp->_IO_write_end = ((fp->_flags & (_IO_UNBUFFERED))
+  fp->_IO_write_end = ((fp->_flags & (_IO_LINE_BUF+_IO_UNBUFFERED))
 		       ? fp->_IO_buf_base : fp->_IO_buf_end);
   return count != to_do ? EOF : 0;
 }
@@ -410,9 +410,9 @@ _IO_file_overflow (f, ch)
       f->_IO_write_end = f->_IO_buf_end;
       f->_IO_read_base = f->_IO_read_ptr = f->_IO_read_end;
 
-      if (f->_flags & (_IO_UNBUFFERED))
-	f->_IO_write_end = f->_IO_write_ptr;
       f->_flags |= _IO_CURRENTLY_PUTTING;
+      if (f->_flags & (_IO_LINE_BUF+_IO_UNBUFFERED))
+	f->_IO_write_end = f->_IO_write_ptr;
     }
   if (ch == EOF)
     return _IO_do_flush (f);