]> Savannah Git Hosting - gnulib.git/commitdiff
strerrorname_np: Work around a bug on Solaris 11 OmniOS.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 25 Jan 2025 04:38:54 +0000 (20:38 -0800)
committerBruno Haible <bruno@clisp.org>
Sun, 2 Feb 2025 09:58:38 +0000 (10:58 +0100)
* m4/strerrorname_np.m4 (gl_CHECK_STRERRORNAME_NP): Test if
strerrorname_np returns NULL when given ERESTART or ESTRPIPE.
* doc/glibc-functions/strerrorname_np.texi: Document the bug.

ChangeLog
doc/glibc-functions/strerrorname_np.texi
m4/strerrorname_np.m4

index 9a518a6c45884fac7402892146eb6e93428d7607..0fc47b2d9cd9f6a160e8611afd23837d26237481 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-01-24  Collin Funk  <collin.funk1@gmail.com>
+
+       strerrorname_np: Work around a bug on Solaris 11 OmniOS.
+       * m4/strerrorname_np.m4 (gl_CHECK_STRERRORNAME_NP): Test if
+       strerrorname_np returns NULL when given ERESTART or ESTRPIPE.
+       * doc/glibc-functions/strerrorname_np.texi: Document the bug.
+
 2025-01-24  Bruno Haible  <bruno@clisp.org>
 
        tests: Fix a few compilation errors on Solaris 11 OmniOS with gcc 14.
index 212edc385503d7dbd6760fd3217dd7721786ce8a..784dbe4fc66ee8c6b528cc4f6438fe80cfc3912a 100644 (file)
@@ -22,7 +22,8 @@ This function returns wrong values on some platforms:
 @c https://sourceware.org/bugzilla/show_bug.cgi?id=26555
 @c https://sourceware.org/bugzilla/show_bug.cgi?id=29545
 @c https://sourceware.org/bugzilla/show_bug.cgi?id=31080
-glibc 2.37.
+@c https://www.illumos.org/issues/17134
+glibc 2.37, Solaris 11 OmniOS.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 3465df2a35a552589f6ab7e87e486e53656651b4..e28625b3f2caaeef57fa841b0e9292ca4d27ef55 100644 (file)
@@ -1,6 +1,6 @@
 # strerrorname_np.m4
-# serial 7
-dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
+# serial 8
+dnl Copyright (C) 2020-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -44,6 +44,9 @@ AC_DEFUN([gl_CHECK_STRERRORNAME_NP],
     dnl In glibc 2.37, strerrorname_np returns NULL for ENOSYM and
     dnl EREMOTERELEASE on hppa platforms.
     dnl See <https://sourceware.org/bugzilla/show_bug.cgi?id=31080>.
+    dnl In Solaris 11 OmniOS, strerrorname_np returns NULL for ERESTART
+    dnl and ESTRPIPE.
+    dnl see <https://www.illumos.org/issues/17134>.
     AC_CACHE_CHECK([whether strerrorname_np works],
       [gl_cv_func_strerrorname_np_works],
       [AC_RUN_IFELSE(
@@ -59,6 +62,12 @@ AC_DEFUN([gl_CHECK_STRERRORNAME_NP],
                 #ifdef ENOSYM
                 || strerrorname_np (ENOSYM) == NULL
                 #endif
+                #ifdef ERESTART
+                || strerrorname_np (ERESTART) == NULL
+                #endif
+                #ifdef ESTRPIPE
+                || strerrorname_np (ESTRPIPE) == NULL
+                #endif
                 ;
             ]])],
          [gl_cv_func_strerrorname_np_works=yes],