2 @section @code{strerror}
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strerror.html}
7 Gnulib module: strerror
9 Portability problems fixed by Gnulib:
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, NonStop Kernel, Cygwin 1.5.x, mingw, MSVC 9.
16 This function reports failure for @code{strerror(0)} (by setting
17 @code{errno} or using a string similar to out-of-range values),
18 although POSIX requires this to leave @code{errno} unchanged and
19 report success, on some platforms:
20 FreeBSD 8.2, OpenBSD 4.7, Mac OS X 10.5.
22 This function fails to return a string for out-of-range integers on
24 HP-UX 11, IRIX 6.5, Solaris 8.
25 (Some return NULL which is a POSIX violation, others return the empty
26 string which is valid but not as useful); this can still cause bugs
27 because most programs call @code{strerror} without setting and testing
31 Portability problems not fixed by Gnulib: