From f4c4af09bcf3f0497dc3347ecc0a0b3c9ee1ff63 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 24 May 2011 17:33:39 -0600 Subject: [PATCH] docs: document recently fixed glibc printf bug Document it as a known bug, but one where we don't provide a workaround since programmers are unlikely to hit it in practice. * doc/posix-functions/fprintf.texi (fprintf): Document it. * doc/posix-functions/printf.texi (printf): Likewise. * doc/posix-functions/vfprintf.texi (vfprintf): Likewise. * doc/posix-functions/vprintf.texi (vprintf): Likewise. Signed-off-by: Eric Blake --- ChangeLog | 6 ++++++ doc/posix-functions/fprintf.texi | 4 ++++ doc/posix-functions/printf.texi | 4 ++++ doc/posix-functions/vfprintf.texi | 4 ++++ doc/posix-functions/vprintf.texi | 4 ++++ 5 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6ac14e867..270866e7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-24 Eric Blake + docs: document recently fixed glibc printf bug + * doc/posix-functions/fprintf.texi (fprintf): Document it. + * doc/posix-functions/printf.texi (printf): Likewise. + * doc/posix-functions/vfprintf.texi (vfprintf): Likewise. + * doc/posix-functions/vprintf.texi (vprintf): Likewise. + closein-tests: convert to init.sh * modules/closein-tests (Files): Add init.sh * tests/test-closein.sh Use it. diff --git a/doc/posix-functions/fprintf.texi b/doc/posix-functions/fprintf.texi index 04c4c72ca..44bcca376 100644 --- a/doc/posix-functions/fprintf.texi +++ b/doc/posix-functions/fprintf.texi @@ -83,4 +83,8 @@ mingw. Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize diff --git a/doc/posix-functions/printf.texi b/doc/posix-functions/printf.texi index df7813f6a..8fc8cb092 100644 --- a/doc/posix-functions/printf.texi +++ b/doc/posix-functions/printf.texi @@ -83,4 +83,8 @@ mingw. Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize diff --git a/doc/posix-functions/vfprintf.texi b/doc/posix-functions/vfprintf.texi index b40a33416..c6fab25ed 100644 --- a/doc/posix-functions/vfprintf.texi +++ b/doc/posix-functions/vfprintf.texi @@ -83,4 +83,8 @@ mingw. Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize diff --git a/doc/posix-functions/vprintf.texi b/doc/posix-functions/vprintf.texi index 342d182c6..21d4bc60f 100644 --- a/doc/posix-functions/vprintf.texi +++ b/doc/posix-functions/vprintf.texi @@ -83,4 +83,8 @@ mingw. Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize -- 2.11.0