changeset 8879:d4d8703bfaae

More comments.
author Bruno Haible <bruno@clisp.org>
date Mon, 28 May 2007 13:55:57 +0000
parents a8cf4cce248b
children 61f278df4649
files ChangeLog lib/stdio_.h
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+	* lib/stdio_.h (fflush): More comments.
+
 2007-05-28  Bruno Haible  <bruno@clisp.org>
 
 	* m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
--- a/lib/stdio_.h
+++ b/lib/stdio_.h
@@ -270,7 +270,11 @@
 # if @REPLACE_FFLUSH@
 #  define fflush rpl_fflush
   /* Flush all pending data on STREAM according to POSIX rules.  Both
-     output and seekable input streams are supported.  */
+     output and seekable input streams are supported.
+     Note! LOSS OF DATA can occur if fflush is applied on an input stream
+     that is _not_seekable_ or on an update stream that is _not_seekable_
+     and in which the most recent operation was input.  Seekability can
+     be tested with lseek(fileno(fp),0,SEEK_CUR).  */
   extern int fflush (FILE *gl_stream);
 # endif
 #elif defined GNULIB_POSIXCHECK