test-perror: relax test to ignore cygwin bug
[gnulib.git] / doc / posix-functions / perror.texi
1 @node perror
2 @section @code{perror}
3 @findex perror
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/perror.html}
6
7 Gnulib module: perror
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function does not support the error values that are specified by POSIX
13 but not defined by the system, on some platforms:
14 OpenBSD 4.0, OSF/1 5.1, Cygwin 1.5.x, mingw.
15 @item
16 This function treats @code{errno} of 0 like failure, although POSIX
17 requires that the message declare it as a success, on some platforms:
18 FreeBSD 8.2
19 @end itemize
20
21 Portability problems not fixed by Gnulib:
22 @itemize
23 @item
24 POSIX requires that this function set the stream error bit (detected
25 by @code{ferror}) on write failure, but not all platforms do this:
26 glibc 2.13, cygwin 1.7.9.
27 @item
28 POSIX requires that this function not alter stream orientation, but
29 the gnulib replacement locks in byte orientation and fails on wide
30 character streams.
31 @end itemize