]> Savannah Git Hosting - gnulib.git/commitdiff
errno: port to LynxOS 178 2.2.2
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Nov 2012 22:29:14 +0000 (15:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Nov 2012 01:29:39 +0000 (17:29 -0800)
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.

ChangeLog
doc/posix-headers/errno.texi
lib/errno.in.h
lib/strerror-override.c
lib/strerror-override.h
m4/errno_h.m4

index 3576e7a2b1ac6a05205dd6ed172cf0f74bb25b44..adcb8d111aae926c3fc78cee0b64c62b637f360f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
index 54e0249b28b9ee8d53cf17cc08a15858177dfeb4..0166ddc6415a196a16095020e020691475d9834b 100644 (file)
@@ -42,6 +42,9 @@ The macros @code{EOWNERDEAD}, @code{ENOTRECOVERABLE} are not defined on
 some platforms:
 glibc/Linux 2.3.6, glibc/Hurd 2.15, glibc/kFreeBSD 2.15,
 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw without pthreads-win32, MSVC 9, Interix 3.5, BeOS.
+@item
+The macro @code{EILSEQ} is not defined on some platforms:
+LynxOS 178 2.2.2.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 4fba101c01cdf2f0539e38675c7db0a5987a7f49..ec18b41ac2bc65e00108d5b78330afa49eb2914a 100644 (file)
 #  define GNULIB_defined_ENOTRECOVERABLE 1
 # endif
 
+# ifndef EILSEQ
+#  define EILSEQ 2015
+#  define GNULIB_defined_EILSEQ 1
+# endif
+
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
 #endif /* _@GUARD_PREFIX@_ERRNO_H */
index 9f55cfa9ac42217a02e6d25bf6d843cdab8d9114..f7cac65f754b0c06bf3a94319f967712e132ef56 100644 (file)
@@ -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;
     }
index fe1fb2c22926fa1339d23579ea1236a4b0a747ac..64686813668b241f3eb5ef18f15af19ae718da4e 100644 (file)
@@ -46,7 +46,8 @@
      || GNULIB_defined_EDQUOT \
      || GNULIB_defined_ECANCELED \
      || GNULIB_defined_EOWNERDEAD \
-     || GNULIB_defined_ENOTRECOVERABLE
+     || GNULIB_defined_ENOTRECOVERABLE \
+     || GNULIB_defined_EILSEQ
 extern const char *strerror_override (int errnum);
 # else
 #  define strerror_override(ignored) NULL
index 1e76ba270a6bbf54ec92490e349328af8879e373..4e33ba853a3aa9f058a0a64086b7de7d47ae09e6 100644 (file)
@@ -1,4 +1,4 @@
-# errno_h.m4 serial 11
+# errno_h.m4 serial 12
 dnl Copyright (C) 2004, 2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -57,6 +57,9 @@ booboo
 #endif
 #if !defined ENOTRECOVERABLE
 booboo
+#endif
+#if !defined EILSEQ
+booboo
 #endif
       ],
       [gl_cv_header_errno_h_complete=no],