+2024-08-12 Bruno Haible <bruno@clisp.org>
+
+ errno: Ensure ESOCKTNOSUPPORT gets defined.
+ * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ESOCKTNOSUPPORT
+ is defined.
+ * lib/errno.in.h (ESOCKTNOSUPPORT, GNULIB_defined_ESOCKTNOSUPPORT): New
+ macros.
+ * lib/strerror-override.h (strerror_override): Declare also if
+ GNULIB_defined_ESOCKTNOSUPPORT is defined.
+ * lib/strerror-override.c (strerror_override): Handle ESOCKTNOSUPPORT.
+ * lib/strerrorname_np.c (strerrorname_np): Move ESOCKTNOSUPPORT code to
+ the POSIX section.
+ * doc/posix-headers/errno.texi: Document the Haiku problem.
+
2024-08-12 Bruno Haible <bruno@clisp.org>
fdutimensat, utimensat tests: Fix test failures on Cygwin.
glibc/Linux 2.3.6, glibc/Hurd 2.15, glibc/kFreeBSD 2.15,
Mac OS X 10.5, FreeBSD 6.0, NetBSD 9.3, OpenBSD 6.0, Minix 3.1.8, AIX 5.1, HP-UX 11, Cygwin, mingw without pthreads-win32, MSVC 9.
@item
+The macro @code{ESOCKTNOSUPPORT} is not defined on some platforms:
+Haiku.
+@item
The macro @code{EILSEQ} is not defined on some platforms:
LynxOS 178 2.2.2.
@item
# define GNULIB_defined_ENOTRECOVERABLE 1
# endif
+/* On LynxOS, the macro EILSEQ is not defined. */
# ifndef EILSEQ
# define EILSEQ 2015
# define GNULIB_defined_EILSEQ 1
# endif
+/* On Haiku, the macro ESOCKTNOSUPPORT is not defined. */
+# ifndef ESOCKTNOSUPPORT
+# define ESOCKTNOSUPPORT 2016
+# define GNULIB_defined_ESOCKTNOSUPPORT 1
+# endif
+
#endif /* _@GUARD_PREFIX@_ERRNO_H */
#endif /* _@GUARD_PREFIX@_ERRNO_H */
return "Invalid or incomplete multibyte or wide character";
# endif
+# if GNULIB_defined_ESOCKTNOSUPPORT
+ case ESOCKTNOSUPPORT:
+ return "Socket type not supported";
+# endif
+
default:
return NULL;
}
|| GNULIB_defined_ECANCELED \
|| GNULIB_defined_EOWNERDEAD \
|| GNULIB_defined_ENOTRECOVERABLE \
- || GNULIB_defined_EILSEQ
+ || GNULIB_defined_EILSEQ \
+ || GNULIB_defined_ESOCKTNOSUPPORT
extern const char *strerror_override (int errnum) _GL_ATTRIBUTE_CONST;
#else
# define strerror_override(ignored) NULL
case ERANGE: return "ERANGE";
/* Error codes specified by POSIX.
- <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html> */
+ <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html> */
#if defined E2BIG
case E2BIG: return "E2BIG";
#endif
#if defined EROFS
case EROFS: return "EROFS";
#endif
+ #if defined ESOCKTNOSUPPORT
+ case ESOCKTNOSUPPORT: return "ESOCKTNOSUPPORT";
+ #endif
#if defined ESPIPE
case ESPIPE: return "ESPIPE";
#endif
#if defined ESIGPARM
case ESIGPARM: return "ESIGPARM";
#endif
- /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
- #if defined ESOCKTNOSUPPORT
- case ESOCKTNOSUPPORT: return "ESOCKTNOSUPPORT";
- #endif
/* AIX, OSF/1 */
#if defined ESOFT
case ESOFT: return "ESOFT";
# errno_h.m4
-# serial 17
+# serial 18
dnl Copyright (C) 2004, 2006, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
#if !defined EILSEQ
booboo
+#endif
+#if !defined ESOCKTNOSUPPORT
+booboo
#endif
],
[gl_cv_header_errno_h_complete=no],