1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

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.
This commit is contained in:
Collin Funk
2025-01-24 20:38:54 -08:00
parent 48648b4b9b
commit 3691a095c1
3 changed files with 19 additions and 2 deletions

View File

@@ -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>
package-version: Simplify further.

View File

@@ -23,7 +23,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:

View File

@@ -1,5 +1,5 @@
# strerrorname_np.m4
# serial 7
# 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,
@@ -45,6 +45,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(
@@ -60,6 +63,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],