From 0295d2666c248045942f7ed753b2d8f8cea0996f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 29 Jan 2002 03:56:50 +0000 Subject: Update. 2002-01-23 Richard Henderson * sysdeps/alpha/Makefile (pic-ccflag): New variable. 2002-01-28 Ulrich Drepper * string/strxfrm.c: Allocate one more byte for rulearr and clear this element [PR libc/2855]. * string/strcoll.c: Handle zero-length arguments specially [PR libc/2856]. 2002-01-23 Jakub Jelinek * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for short lengths and constant src. (strcpy): Don't optimize for gcc 3.0+. (__stpcpy): For gcc 3.0+, don't use __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src) for short string literal src. 2002-01-23 Jeroen Dobbelaere * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde): Set for arm, too. 2001-01-22 Paul Eggert * manual/llio.texi (Linked Channels, Cleaning Streams): Make it clearer that a just-opened input stream might need cleaning. 2002-01-21 H.J. Lu * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Don't use label at end of compound statement. --- manual/llio.texi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'manual') diff --git a/manual/llio.texi b/manual/llio.texi index c196119956..259d11de96 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -935,7 +935,8 @@ random-access files, all append-type output streams are effectively linked to each other. @cindex cleaning up a stream -If you have been using a stream for I/O, and you want to do I/O using +If you have been using a stream for I/O (or have just opened the stream), +and you want to do I/O using another channel (either a stream or a descriptor) that is linked to it, you must first @dfn{clean up} the stream that you have been using. @xref{Cleaning Streams}. @@ -1007,7 +1008,8 @@ You can skip the @code{fclean} or @code{fflush} if you know the stream is already clean. A stream is clean whenever its buffer is empty. For example, an unbuffered stream is always clean. An input stream that is at end-of-file is clean. A line-buffered stream is clean when the last -character output was a newline. +character output was a newline. However, a just-opened input stream +might not be clean, as its input buffer might not be empty. There is one case in which cleaning a stream is impossible on most systems. This is when the stream is doing input from a file that is not -- cgit 1.4.1