summaryrefslogtreecommitdiff
path: root/doc/posix-functions/perror.texi
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-05-20 10:42:26 -0600
committerEric Blake <eblake@redhat.com>2011-05-20 11:29:22 -0600
commitc0fb797b4075b0e5f93207d4df1704aa6615cac0 (patch)
treef5c26dba170a0f6156ce9375c8e70b01f9ea379c /doc/posix-functions/perror.texi
parent98c78cdfd3685675c0ebdd157778656877b2eec4 (diff)
downloadgnulib-c0fb797b4075b0e5f93207d4df1704aa6615cac0.tar.gz
test-perror: check for strerror interactions
This uncovered a glibc bug, although not many people check for perror failures, so for now I'm not working around it. http://sourceware.org/bugzilla/show_bug.cgi?id=12792 * tests/macros.h (STREQ) Add macro. * modules/perror-tests (Files): Add second test. * tests/test-perror2.c (main): New file. * doc/posix-functions/perror.texi (perror): Document glibc bug. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'doc/posix-functions/perror.texi')
-rw-r--r--doc/posix-functions/perror.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/posix-functions/perror.texi b/doc/posix-functions/perror.texi
index dc61217222..29231064b3 100644
--- a/doc/posix-functions/perror.texi
+++ b/doc/posix-functions/perror.texi
@@ -16,4 +16,8 @@ OpenBSD 4.0, OSF/1 5.1, Cygwin 1.5.x, mingw.
Portability problems not fixed by Gnulib:
@itemize
+@item
+POSIX requires that this function set the stream error bit (detected
+by @code{ferror}) on write failure, but not all platforms do this:
+glibc 2.13.
@end itemize