diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-11-01 15:29:14 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-11-05 17:29:39 -0800 |
commit | daf7f8c02242c535d596231e2f655109b97fa2bc (patch) | |
tree | e0c1f1c4500c7bed3616385d56ddfcce4c2f09bb /lib/strerror-override.c | |
parent | e99cec677e1bf25595c6b65992c0228160508f8b (diff) | |
download | gnulib-daf7f8c02242c535d596231e2f655109b97fa2bc.tar.gz |
errno: port to LynxOS 178 2.2.2
Problem reported by Joel Brobecker in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
* doc/posix-headers/errno.texi (errno.h): Document this.
* lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
* lib/strerror-override.c, lib/strerror-override.h (strerror_override):
Supply a string for EILSEQ.
* m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
Diffstat (limited to 'lib/strerror-override.c')
-rw-r--r-- | lib/strerror-override.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/strerror-override.c b/lib/strerror-override.c index 9f55cfa9ac..f7cac65f75 100644 --- a/lib/strerror-override.c +++ b/lib/strerror-override.c @@ -291,6 +291,11 @@ strerror_override (int errnum) return "State not recoverable"; #endif +#if GNULIB_defined_EILSEQ + case EILSEQ: + return "Invalid or incomplete multibyte or wide character"; +#endif + default: return NULL; } |