2 @section @code{strerror_r}
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strerror_r.html}
7 Gnulib module: strerror_r-posix
9 Portability problems fixed by Gnulib:
12 This function is missing on some platforms:
13 NetBSD 3.0, HP-UX 11.23, IRIX 6.5, Solaris 9, mingw.
15 glibc and Cygwin have an incompatible version of this function. The
18 char *s = (strerror_r (err, buf, buflen) == 0 ? buf : NULL);
20 is essentially equivalent to this code using the glibc function:
22 char *s = strerror_r (err, buf, buflen);
25 This function is sometimes not declared in @code{<string.h>} on some platforms:
28 The third argument is of type @code{int} instead of @code{size_t} on some
32 When this function fails, it returns -1 and sets @code{errno}, instead of
33 returning the error number, on some platforms:
34 glibc 2.12 with @code{-D_POSIX_C_SOURCE=200112L}, AIX 6.1, OSF/1 5.1.
36 This function does not support the error values that are specified by POSIX
37 but not defined by the system, on some platforms:
38 OpenBSD 4.0, OSF/1 5.1, NonStop Kernel, Cygwin 1.5.x.
40 This function always fails when the third argument is less than 80 on some
44 When the buffer is too small, this function does not fail, but instead
45 truncates the result and returns 0 on some platforms:
49 Portability problems not fixed by Gnulib:
52 When the buffer is too small, this function does not fail, but instead
53 truncates the result and returns 0 on some platforms: