* modules/errno-h: Renamed from modules/errno.
* modules/errno-h-tests: Renamed from modules/errno-tests.
* modules/errno-h-c++-tests: Renamed from modules/errno-c++-tests.
* tests/test-errno-h.c: Renamed from tests/test-errno.c.
* tests/test-errno-h-c++.cc: Renamed from tests/test-errno-c++.cc.
* tests/test-errno-h-c++2.cc: Renamed from tests/test-errno-c++2.cc.
* doc/posix-headers/errno.texi: Update.
* modules/* (Depends-on): Update.
* modules/errno: New file.
+2024-12-27 Bruno Haible <bruno@clisp.org>
+
+ Rename module errno to errno-h.
+ * modules/errno-h: Renamed from modules/errno.
+ * modules/errno-h-tests: Renamed from modules/errno-tests.
+ * modules/errno-h-c++-tests: Renamed from modules/errno-c++-tests.
+ * tests/test-errno-h.c: Renamed from tests/test-errno.c.
+ * tests/test-errno-h-c++.cc: Renamed from tests/test-errno-c++.cc.
+ * tests/test-errno-h-c++2.cc: Renamed from tests/test-errno-c++2.cc.
+ * doc/posix-headers/errno.texi: Update.
+ * modules/* (Depends-on): Update.
+ * modules/errno: New file.
+
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module dirent to dirent-h.
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html}
-Gnulib module: errno
-@mindex errno
+Gnulib module: errno-h
+@mindex errno-h
Portability problems fixed by Gnulib:
@itemize
extensions
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
careadlinkat
readlinkat
at-internal
-errno
+errno-h
extensions
fchdir
fcntl-h
stdint
readlinkat
at-internal
-errno
+errno-h
extensions
fchdir
fcntl-h
lib/openat-proc.c
Depends-on:
-errno
+errno-h
fcntl-h
intprops
open [case $host_os in mingw* | windows*) false;; *) :;; esac]
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
attribute
c-ctype
c99
-errno
+errno-h
extensions
intprops
libc-config
Depends-on:
c99
-errno
+errno-h
exitfail
getprogname
gettext-h
printf-safe
alloca-opt
xsize
-errno
+errno-h
memchr
multiarch
mbszero
Depends-on:
attribute
double-slash-root
-errno
+errno-h
extensions
fcntl-h
file-set
nocrash
double-slash-root [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
eloop-threshold [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
-errno [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+errno-h [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
fcntl-h [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
filename [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
idx [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
Depends-on:
threadlib
lock
-errno
+errno-h
extern-inline
stdbool
time-h
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
Depends-on:
dirent-h
extensions
-errno [test $HAVE_DIRFD = 0 || test $REPLACE_DIRFD = 1]
+errno-h [test $HAVE_DIRFD = 0 || test $REPLACE_DIRFD = 1]
configure.ac:
gl_FUNC_DIRFD
stdio
vdzprintf [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
intprops [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
-errno [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
+errno-h [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
configure.ac:
gl_FUNC_DPRINTF
intprops
free-posix
full-write
-errno
+errno-h
configure.ac:
gl_STDIO_MODULE_INDICATOR([dzprintf])
Description:
A POSIX-like <errno.h>.
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'errno-h' instead.
+
Files:
-lib/errno.in.h
-m4/errno_h.m4
Depends-on:
-gen-header
-include_next
-extensions-aix
+errno-h
configure.ac:
-gl_HEADER_ERRNO_H
-gl_CONDITIONAL_HEADER([errno.h])
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += $(ERRNO_H)
-
-# We need the following in order to create <errno.h> when the system
-# doesn't have one that is POSIX compliant.
-if GL_GENERATE_ERRNO_H
-errno.h: errno.in.h $(top_builddir)/config.status
-@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
- $(gl_V_at)$(SED_HEADER_STDOUT) \
- -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
- -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
- -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
- -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
- -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
- -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
- -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
- -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
- -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
- -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
- -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
- $(srcdir)/errno.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-else
-errno.h: $(top_builddir)/config.status
- rm -f $@
-endif
-MOSTLYCLEANFILES += errno.h errno.h-t
Include:
<errno.h>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-Files:
-tests/test-errno-c++.cc
-tests/test-errno-c++2.cc
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-errno-c++
-check_PROGRAMS += test-errno-c++
-test_errno_c___SOURCES = test-errno-c++.cc test-errno-c++2.cc
-endif
--- /dev/null
+Description:
+A POSIX-like <errno.h>.
+
+Files:
+lib/errno.in.h
+m4/errno_h.m4
+
+Depends-on:
+gen-header
+include_next
+extensions-aix
+
+configure.ac:
+gl_HEADER_ERRNO_H
+gl_CONDITIONAL_HEADER([errno.h])
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += $(ERRNO_H)
+
+# We need the following in order to create <errno.h> when the system
+# doesn't have one that is POSIX compliant.
+if GL_GENERATE_ERRNO_H
+errno.h: errno.in.h $(top_builddir)/config.status
+@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+ $(gl_V_at)$(SED_HEADER_STDOUT) \
+ -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
+ -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
+ -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
+ -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
+ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
+ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
+ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
+ $(srcdir)/errno.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+else
+errno.h: $(top_builddir)/config.status
+ rm -f $@
+endif
+MOSTLYCLEANFILES += errno.h errno.h-t
+
+Include:
+<errno.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
--- /dev/null
+Files:
+tests/test-errno-h-c++.cc
+tests/test-errno-h-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-errno-h-c++
+check_PROGRAMS += test-errno-h-c++
+test_errno_h_c___SOURCES = test-errno-h-c++.cc test-errno-h-c++2.cc
+endif
--- /dev/null
+Files:
+tests/test-errno-h.c
+
+Depends-on:
+assert-h
+c99
+errno-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-errno-h
+check_PROGRAMS += test-errno-h
+++ /dev/null
-Files:
-tests/test-errno.c
-
-Depends-on:
-assert-h
-c99
-errno-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-errno
-check_PROGRAMS += test-errno
unistd
extensions
at-internal [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
-errno [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
+errno-h [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
fchdir [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
fcntl-h [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
filename [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
Depends-on:
sys_stat
extensions
-errno [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
+errno-h [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
fcntl-h [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
unistd [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
intprops [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
unistd
extensions
at-internal [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
-errno [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
+errno-h [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
extern-inline [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
fchdir [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
fcntl-h [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
tests/macros.h
Depends-on:
-errno
+errno-h
ignore-value
mgetgroups
nanosleep
tests/macros.h
Depends-on:
-errno
+errno-h
configure.ac:
at-internal [test $HAVE_FDOPENDIR = 0]
dirfd [test $HAVE_FDOPENDIR = 0]
dup [test $HAVE_FDOPENDIR = 0]
-errno [test $HAVE_FDOPENDIR = 0]
+errno-h [test $HAVE_FDOPENDIR = 0]
fchdir [test $HAVE_FDOPENDIR = 0]
fstat [test $HAVE_FDOPENDIR = 0]
openat-die [test $HAVE_FDOPENDIR = 0]
assert-h
attribute
dirent-h
-errno
+errno-h
extern-inline
minmax
free-posix
stdio
nocrash
printf-safe
-errno
+errno-h
multiarch
vfzprintf [test $REPLACE_FPRINTF = 1]
mixin/printf-posix [test $REPLACE_FPRINTF = 1]
sys_stat
extensions
at-internal [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
-errno [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
+errno-h [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
extern-inline [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
fchdir [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
fcntl-h [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
tests/macros.h
Depends-on:
-errno
+errno-h
configure.ac:
Depends-on:
stdio
-errno
+errno-h
ftello [test $REPLACE_FTELL = 1]
configure.ac:
Depends-on:
c99
-errno
+errno-h
remove
unlinkat
lib/fwriteerror.c
Depends-on:
-errno
+errno-h
stdbool
configure.ac:
intprops
free-posix
fseterr
-errno
+errno-h
configure.ac:
gl_STDIO_MODULE_INDICATOR([fzprintf])
tests/macros.h
Depends-on:
-errno
+errno-h
fcntl-h
getcwd-lgpl
pathmax
extensions
limits-h [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
stdint [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
-errno [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
+errno-h [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]
configure.ac:
gl_FUNC_GETDELIM
Depends-on:
unistd
sys_socket [test $HAVE_GETHOSTNAME = 0]
-errno [test $HAVE_GETHOSTNAME = 0]
+errno-h [test $HAVE_GETHOSTNAME = 0]
sockets [test $HAVE_GETHOSTNAME = 0]
msvc-nothrow [test $HAVE_GETHOSTNAME = 0]
extensions
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
extensions
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
netinet_in
arpa_inet-h
inet_pton
-errno
+errno-h
perror
sockets
socket
sys_socket
socketlib
sys_time [test "$ac_cv_header_winsock2_h" = yes]
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
m4/getugroups.m4
Depends-on:
-errno
+errno-h
configure.ac:
gl_GETUGROUPS
arpa_inet-h
extensions
sys_socket [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
-errno [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
+errno-h [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
netinet_in [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
configure.ac:
extensions
c-ctype [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
sys_socket [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
-errno [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
+errno-h [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
netinet_in [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
configure.ac:
Depends-on:
sys_ioctl
sys_socket [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
-errno [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
+errno-h [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
fd-hook [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
msvc-nothrow [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
Depends-on:
c99 [test $HAVE_LCHMOD = 0]
-errno [test $HAVE_LCHMOD = 0]
+errno-h [test $HAVE_LCHMOD = 0]
extensions
fcntl-h [test $HAVE_LCHMOD = 0]
intprops [test $HAVE_LCHMOD = 0]
unistd
readlink [test $HAVE_LCHOWN = 0]
chown [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
-errno [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
+errno-h [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
stdbool [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
sys_stat [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
lstat [test $REPLACE_LCHOWN = 1]
tests/macros.h
Depends-on:
-errno
+errno-h
ignore-value
mgetgroups
nanosleep
Depends-on:
ignore-value
-errno
+errno-h
stdbool
sys_stat
at-internal [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
dirname-lgpl [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
eloop-threshold [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
-errno [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+errno-h [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
fcntl-h [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
filenamecat-lgpl [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
filename [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
Depends-on:
ignore-value
-errno
+errno-h
same-inode
stdbool
symlink
sys_stat
extensions
at-internal [test $HAVE_MKDIRAT = 0]
-errno [test $HAVE_MKDIRAT = 0]
+errno-h [test $HAVE_MKDIRAT = 0]
fchdir [test $HAVE_MKDIRAT = 0]
fcntl-h [test $HAVE_MKDIRAT = 0]
filename [test $HAVE_MKDIRAT = 0]
fcntl-h [test $HAVE_MKFIFOAT = 0 || test $REPLACE_MKFIFOAT = 1 || test $HAVE_MKNODAT = 0 || test $REPLACE_MKNODAT = 1]
fstatat [test $REPLACE_MKFIFOAT = 1 || test $REPLACE_MKNODAT = 1]
at-internal [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
-errno [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
+errno-h [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
fchdir [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
filename [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
openat-die [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
Depends-on:
attribute
c99
-errno
+errno-h
extensions
intprops
libc-config
cloexec [test $REPLACE_OPENAT = 1]
fstat [test $REPLACE_OPENAT = 1]
at-internal [test $HAVE_OPENAT = 0]
-errno [test $HAVE_OPENAT = 0]
+errno-h [test $HAVE_OPENAT = 0]
fchdir [test $HAVE_OPENAT = 0]
filename [test $HAVE_OPENAT = 0]
open [test $HAVE_OPENAT = 0]
Depends-on:
stdio
-errno [test $REPLACE_PERROR = 1]
+errno-h [test $REPLACE_PERROR = 1]
strerror-override [test $REPLACE_PERROR = 1]
strerror_r-posix [test $REPLACE_PERROR = 1]
sys_select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_socket [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_time [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
-errno [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+errno-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
msvc-nothrow [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
configure.ac:
sys_ioctl
extensions
inet_pton
-errno
+errno-h
perror
sockets
socket
spawn
alloca-opt
dup2
-errno
+errno-h
open
sh-filename
strchrnul
m4/priv-set.m4
Depends-on:
-errno
+errno-h
extern-inline
stdbool
sys_ioctl
extensions
inet_pton
-errno
+errno-h
perror
pipe-posix
socket
unistd
extensions
at-internal [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
-errno [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
+errno-h [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
fchdir [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
fcntl-h [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
filename [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
extensions
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
getpeername [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
double-slash-root
eloop-threshold
environ
-errno
+errno-h
extern-inline
fcntl-h
filename
Depends-on:
ignore-value
-errno
+errno-h
link
stdbool
symlink
assure
attribute
chdir
-errno
+errno-h
extern-inline
fchdir
fcntl-h
sys_ioctl
extensions
inet_pton
-errno
+errno-h
perror
pipe-posix
socket
Depends-on:
selinux-h
at-internal
-errno
+errno-h
extensions
fchdir
fcntl-h
m4/selinux-selinux-h.m4
Depends-on:
-errno
+errno-h
extern-inline
gen-header
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
Depends-on:
unistd
-errno [test $HAVE_SETHOSTNAME = 0 || test $REPLACE_SETHOSTNAME = 1]
+errno-h [test $HAVE_SETHOSTNAME = 0 || test $REPLACE_SETHOSTNAME = 1]
fopen-gnu [test $HAVE_SETHOSTNAME = 0 || test $REPLACE_SETHOSTNAME = 1]
configure.ac:
sys_socket
socketlib
sys_time [test "$ac_cv_header_winsock2_h" = yes]
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
Depends-on:
clock-time
-errno
+errno-h
extensions
sys_time
timespec
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
configure.ac:
Depends-on:
stdio
-errno [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+errno-h [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
stdint [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
vsnzprintf [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
Depends-on:
stdio
vasnprintf
-errno
+errno-h
stdint
configure.ac:
Depends-on:
sys_socket
socketlib
-errno [test "$ac_cv_header_winsock2_h" = yes]
+errno-h [test "$ac_cv_header_winsock2_h" = yes]
sockets [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
vszprintf [test $REPLACE_SPRINTF = 1]
mixin/printf-posix [test $REPLACE_SPRINTF = 1]
stdint [test $REPLACE_SPRINTF = 1]
-errno [test $REPLACE_SPRINTF = 1]
+errno-h [test $REPLACE_SPRINTF = 1]
configure.ac:
gl_FUNC_SPRINTF_POSIX
Depends-on:
time-h
-errno
+errno-h
extensions
extern-inline
stdckdint
Depends-on:
string
assert-h [test $REPLACE_STRERROR = 1]
-errno [test $REPLACE_STRERROR = 1]
+errno-h [test $REPLACE_STRERROR = 1]
intprops [test $REPLACE_STRERROR = 1]
strerror-override [test $REPLACE_STRERROR = 1]
m4/strerror.m4
Depends-on:
-errno
+errno-h
configure.ac:
AC_REQUIRE([gl_HEADER_ERRNO_H])
Depends-on:
string
extensions
-errno [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
+errno-h [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
lock [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
strerror-override [test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1]
extensions
fcntl-h [test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1]
at-internal [test $HAVE_SYMLINKAT = 0]
-errno [test $HAVE_SYMLINKAT = 0]
+errno-h [test $HAVE_SYMLINKAT = 0]
fchdir [test $HAVE_SYMLINKAT = 0]
filename [test $HAVE_SYMLINKAT = 0]
openat-die [test $HAVE_SYMLINKAT = 0]
Depends-on:
alignasof
-errno
+errno-h
extern-inline
gen-header
include_next
Depends-on:
stdio
vasnprintf
-errno
+errno-h
stdint
configure.ac:
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/u16-u16-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u16-u16-vasprintf])
unistdio/base
unistdio/u16-u16-vasnprintf
unistr/u16-cpy
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u16-u16-vsnprintf])
unistdio/base
unistdio/u16-u16-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u16-u16-vsprintf])
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/u16-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u16-vasprintf])
unistdio/base
unistdio/u16-vasnprintf
unistr/u16-cpy
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u16-vsnprintf])
unistdio/base
unistdio/u16-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u16-vsprintf])
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/u32-u32-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u32-u32-vasprintf])
unistdio/base
unistdio/u32-u32-vasnprintf
unistr/u32-cpy
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u32-u32-vsnprintf])
unistdio/base
unistdio/u32-u32-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u32-u32-vsprintf])
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/u32-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u32-vasprintf])
unistdio/base
unistdio/u32-vasnprintf
unistr/u32-cpy
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u32-vsnprintf])
unistdio/base
unistdio/u32-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u32-vsprintf])
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/u8-u8-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u8-u8-vasprintf])
unistdio/base
unistdio/u8-u8-vasnprintf
unistr/u8-cpy
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u8-u8-vsnprintf])
unistdio/base
unistdio/u8-u8-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u8-u8-vsprintf])
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/u8-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u8-vasprintf])
unistdio/base
unistdio/u8-vasnprintf
unistr/u8-cpy
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u8-vsnprintf])
unistdio/base
unistdio/u8-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.2]), [unistdio/u8-vsprintf])
unistdio/base
unistdio/ulc-vasnprintf
fseterr
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.3]), [unistdio/ulc-fprintf])
alloca-opt
localcharset
xsize
-errno
+errno-h
free-posix
memchr
multiarch
Depends-on:
unistdio/base
unistdio/ulc-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.3]), [unistdio/ulc-vasprintf])
unistdio/base
unistdio/ulc-vasnprintf
fseterr
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.3]), [unistdio/ulc-vfprintf])
Depends-on:
unistdio/base
unistdio/ulc-vasnprintf
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.3]), [unistdio/ulc-vsnprintf])
unistdio/base
unistdio/ulc-vasnprintf
stdint
-errno
+errno-h
configure.ac:
gl_LIBUNISTRING_MODULE(m4_ifdef([gl_PRINTF_SUPPORT_N_DIRECTIVE],[999.9],[1.3]), [unistdio/ulc-vsprintf])
openat-h [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
sys_stat [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
at-internal [test $HAVE_UNLINKAT = 0]
-errno [test $HAVE_UNLINKAT = 0]
+errno-h [test $HAVE_UNLINKAT = 0]
fchdir [test $HAVE_UNLINKAT = 0]
filename [test $HAVE_UNLINKAT = 0]
openat-die [test $HAVE_UNLINKAT = 0]
m4/utimes.m4
Depends-on:
-errno
+errno-h
extern-inline
fcntl-h
fstat
sys_stat
extensions
at-internal [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
-errno [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
+errno-h [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
fchdir [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
fcntl-h [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
filename [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
limits-h
stdint
xsize
-errno
+errno-h
memchr
assert-h
wchar
limits-h
stdint
xsize
-errno
+errno-h
memchr
assert-h
wchar
stdio
extensions
vasnprintf [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
-errno [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
+errno-h [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
stdint [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
configure.ac:
Depends-on:
stdio
vasnprintf
-errno
+errno-h
stdint
configure.ac:
stdio
vdzprintf [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
intprops [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
-errno [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
+errno-h [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
configure.ac:
gl_FUNC_VDPRINTF
intprops
free-posix
full-write
-errno
+errno-h
configure.ac:
gl_STDIO_MODULE_INDICATOR([vdzprintf])
mixin/printf-posix [test $REPLACE_VFPRINTF = 1]
intprops [test $REPLACE_VFPRINTF = 1]
fseterr [test $REPLACE_VFPRINTF = 1]
-errno [test $REPLACE_VFPRINTF = 1]
+errno-h [test $REPLACE_VFPRINTF = 1]
configure.ac:
gl_FUNC_VFPRINTF_POSIX
intprops
free-posix
fseterr
-errno
+errno-h
configure.ac:
gl_STDIO_MODULE_INDICATOR([vfzprintf])
Depends-on:
stdio
-errno [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+errno-h [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
stdint [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
vsnzprintf [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
Depends-on:
stdio
vasnprintf
-errno
+errno-h
stdint
configure.ac:
vszprintf [test $REPLACE_VSPRINTF = 1]
mixin/printf-posix [test $REPLACE_VSPRINTF = 1]
stdint [test $REPLACE_VSPRINTF = 1]
-errno [test $REPLACE_VSPRINTF = 1]
+errno-h [test $REPLACE_VSPRINTF = 1]
configure.ac:
gl_FUNC_VSPRINTF_POSIX
Depends-on:
stdio
vasnprintf
-errno
+errno-h
stdint
configure.ac:
Depends-on:
stdbool
-errno
+errno-h
time-h
gettimeofday
lib/windows-initguard.h
Depends-on:
-errno
+errno-h
time-h
gettimeofday
lib/windows-initguard.h
Depends-on:
-errno
+errno-h
time-h
gettimeofday
lib/windows-initguard.h
Depends-on:
-errno
+errno-h
stdbool
time-h
gettimeofday
extern-inline
xsize
stdarg
-errno
+errno-h
configure.ac:
gl_XVASPRINTF
+++ /dev/null
-/* Test of <errno.h> substitute in C++ mode.
- Copyright (C) 2019-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2019. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <errno.h>
-
-
-int
-main ()
-{
-}
+++ /dev/null
-/* Test of <errno.h> substitute in C++ mode.
- Copyright (C) 2019-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <cerrno>
--- /dev/null
+/* Test of <errno.h> substitute in C++ mode.
+ Copyright (C) 2019-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <errno.h>
+
+
+int
+main ()
+{
+}
--- /dev/null
+/* Test of <errno.h> substitute in C++ mode.
+ Copyright (C) 2019-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cerrno>
--- /dev/null
+/* Test of <errno.h> substitute.
+ Copyright (C) 2008-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2008. */
+
+#include <config.h>
+
+#include <errno.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* Check all POSIX-defined errno values, using M (v) to check value v. */
+#define CHECK_POSIX_ERRNOS(m) \
+ m (E2BIG) \
+ m (EACCES) \
+ m (EADDRINUSE) \
+ m (EADDRNOTAVAIL) \
+ m (EAFNOSUPPORT) \
+ m (EAGAIN) \
+ m (EALREADY) \
+ m (EBADF) \
+ m (EBADMSG) \
+ m (EBUSY) \
+ m (ECANCELED) \
+ m (ECHILD) \
+ m (ECONNABORTED) \
+ m (ECONNREFUSED) \
+ m (ECONNRESET) \
+ m (EDEADLK) \
+ m (EDESTADDRREQ) \
+ m (EDOM) \
+ m (EDQUOT) \
+ m (EEXIST) \
+ m (EFAULT) \
+ m (EFBIG) \
+ m (EHOSTUNREACH) \
+ m (EIDRM) \
+ m (EILSEQ) \
+ m (EINPROGRESS) \
+ m (EINTR) \
+ m (EINVAL) \
+ m (EIO) \
+ m (EISCONN) \
+ m (EISDIR) \
+ m (ELOOP) \
+ m (EMFILE) \
+ m (EMLINK) \
+ m (EMSGSIZE) \
+ m (EMULTIHOP) \
+ m (ENAMETOOLONG) \
+ m (ENETDOWN) \
+ m (ENETRESET) \
+ m (ENETUNREACH) \
+ m (ENFILE) \
+ m (ENOBUFS) \
+ m (ENODEV) \
+ m (ENOENT) \
+ m (ENOEXEC) \
+ m (ENOLCK) \
+ m (ENOLINK) \
+ m (ENOMEM) \
+ m (ENOMSG) \
+ m (ENOPROTOOPT) \
+ m (ENOSPC) \
+ m (ENOSYS) \
+ m (ENOTCONN) \
+ m (ENOTDIR) \
+ m (ENOTEMPTY) \
+ m (ENOTRECOVERABLE) \
+ m (ENOTSOCK) \
+ m (ENOTSUP) \
+ m (ENOTTY) \
+ m (ENXIO) \
+ m (EOPNOTSUPP) \
+ m (EOVERFLOW) \
+ m (EOWNERDEAD) \
+ m (EPERM) \
+ m (EPIPE) \
+ m (EPROTO) \
+ m (EPROTONOSUPPORT) \
+ m (EPROTOTYPE) \
+ m (ERANGE) \
+ m (EROFS) \
+ m (ESOCKTNOSUPPORT) \
+ m (ESPIPE) \
+ m (ESRCH) \
+ m (ESTALE) \
+ m (ETIMEDOUT) \
+ m (ETXTBSY) \
+ m (EWOULDBLOCK) \
+ m (EXDEV) \
+ /* end of CHECK_POSIX_ERRNOS */
+
+/* Verify that the POSIX mandated errno values can be used as integer
+ constant expressions and are all positive (except on Haiku). */
+#if defined __HAIKU__
+# define NONZERO_INTEGER_CONSTANT_EXPRESSION(e) static_assert (0 != (e) << 0);
+CHECK_POSIX_ERRNOS (NONZERO_INTEGER_CONSTANT_EXPRESSION)
+#else
+# define POSITIVE_INTEGER_CONSTANT_EXPRESSION(e) static_assert (0 < (e) << 0);
+CHECK_POSIX_ERRNOS (POSITIVE_INTEGER_CONSTANT_EXPRESSION)
+#endif
+
+/* Verify that errno values can all be used in #if. */
+#define USABLE_IN_IF(e) ^ e
+#if 0 CHECK_POSIX_ERRNOS (USABLE_IN_IF)
+#endif
+
+/* Check that errno values all differ, except possibly for
+ EWOULDBLOCK == EAGAIN and ENOTSUP == EOPNOTSUPP. */
+#define ERRTAB(e) { #e, e },
+static struct nameval { char const *name; int value; }
+ errtab[] = { CHECK_POSIX_ERRNOS (ERRTAB) };
+
+static int
+errtab_cmp (void const *va, void const *vb)
+{
+ struct nameval const *a = va, *b = vb;
+
+ /* Sort by value first, then by name (to simplify later tests).
+ Subtraction cannot overflow as both are positive. */
+ int diff = a->value - b->value;
+ return diff ? diff : strcmp (a->name, b->name);
+}
+
+int
+main ()
+{
+ int test_exit_status = EXIT_SUCCESS;
+
+ /* Verify that errno can be assigned. */
+ errno = EOVERFLOW;
+
+ /* Check that errno values all differ, except possibly for
+ EAGAIN == EWOULDBLOCK and ENOTSUP == EOPNOTSUPP. */
+ int nerrtab = sizeof errtab / sizeof *errtab;
+ qsort (errtab, nerrtab, sizeof *errtab, errtab_cmp);
+ for (int i = 1; i < nerrtab; i++)
+ if (errtab[i - 1].value == errtab[i].value)
+ {
+ fprintf (stderr, "%s == %s == %d\n",
+ errtab[i - 1].name, errtab[i].name, errtab[i].value);
+ if (! ((strcmp ("EAGAIN", errtab[i - 1].name) == 0
+ && strcmp ("EWOULDBLOCK", errtab[i].name) == 0)
+ || (strcmp ("ENOTSUP", errtab[i - 1].name) == 0
+ && strcmp ("EOPNOTSUPP", errtab[i].name) == 0)))
+ test_exit_status = EXIT_FAILURE;
+ }
+
+ return test_exit_status;
+}
+++ /dev/null
-/* Test of <errno.h> substitute.
- Copyright (C) 2008-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2008. */
-
-#include <config.h>
-
-#include <errno.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-/* Check all POSIX-defined errno values, using M (v) to check value v. */
-#define CHECK_POSIX_ERRNOS(m) \
- m (E2BIG) \
- m (EACCES) \
- m (EADDRINUSE) \
- m (EADDRNOTAVAIL) \
- m (EAFNOSUPPORT) \
- m (EAGAIN) \
- m (EALREADY) \
- m (EBADF) \
- m (EBADMSG) \
- m (EBUSY) \
- m (ECANCELED) \
- m (ECHILD) \
- m (ECONNABORTED) \
- m (ECONNREFUSED) \
- m (ECONNRESET) \
- m (EDEADLK) \
- m (EDESTADDRREQ) \
- m (EDOM) \
- m (EDQUOT) \
- m (EEXIST) \
- m (EFAULT) \
- m (EFBIG) \
- m (EHOSTUNREACH) \
- m (EIDRM) \
- m (EILSEQ) \
- m (EINPROGRESS) \
- m (EINTR) \
- m (EINVAL) \
- m (EIO) \
- m (EISCONN) \
- m (EISDIR) \
- m (ELOOP) \
- m (EMFILE) \
- m (EMLINK) \
- m (EMSGSIZE) \
- m (EMULTIHOP) \
- m (ENAMETOOLONG) \
- m (ENETDOWN) \
- m (ENETRESET) \
- m (ENETUNREACH) \
- m (ENFILE) \
- m (ENOBUFS) \
- m (ENODEV) \
- m (ENOENT) \
- m (ENOEXEC) \
- m (ENOLCK) \
- m (ENOLINK) \
- m (ENOMEM) \
- m (ENOMSG) \
- m (ENOPROTOOPT) \
- m (ENOSPC) \
- m (ENOSYS) \
- m (ENOTCONN) \
- m (ENOTDIR) \
- m (ENOTEMPTY) \
- m (ENOTRECOVERABLE) \
- m (ENOTSOCK) \
- m (ENOTSUP) \
- m (ENOTTY) \
- m (ENXIO) \
- m (EOPNOTSUPP) \
- m (EOVERFLOW) \
- m (EOWNERDEAD) \
- m (EPERM) \
- m (EPIPE) \
- m (EPROTO) \
- m (EPROTONOSUPPORT) \
- m (EPROTOTYPE) \
- m (ERANGE) \
- m (EROFS) \
- m (ESOCKTNOSUPPORT) \
- m (ESPIPE) \
- m (ESRCH) \
- m (ESTALE) \
- m (ETIMEDOUT) \
- m (ETXTBSY) \
- m (EWOULDBLOCK) \
- m (EXDEV) \
- /* end of CHECK_POSIX_ERRNOS */
-
-/* Verify that the POSIX mandated errno values can be used as integer
- constant expressions and are all positive (except on Haiku). */
-#if defined __HAIKU__
-# define NONZERO_INTEGER_CONSTANT_EXPRESSION(e) static_assert (0 != (e) << 0);
-CHECK_POSIX_ERRNOS (NONZERO_INTEGER_CONSTANT_EXPRESSION)
-#else
-# define POSITIVE_INTEGER_CONSTANT_EXPRESSION(e) static_assert (0 < (e) << 0);
-CHECK_POSIX_ERRNOS (POSITIVE_INTEGER_CONSTANT_EXPRESSION)
-#endif
-
-/* Verify that errno values can all be used in #if. */
-#define USABLE_IN_IF(e) ^ e
-#if 0 CHECK_POSIX_ERRNOS (USABLE_IN_IF)
-#endif
-
-/* Check that errno values all differ, except possibly for
- EWOULDBLOCK == EAGAIN and ENOTSUP == EOPNOTSUPP. */
-#define ERRTAB(e) { #e, e },
-static struct nameval { char const *name; int value; }
- errtab[] = { CHECK_POSIX_ERRNOS (ERRTAB) };
-
-static int
-errtab_cmp (void const *va, void const *vb)
-{
- struct nameval const *a = va, *b = vb;
-
- /* Sort by value first, then by name (to simplify later tests).
- Subtraction cannot overflow as both are positive. */
- int diff = a->value - b->value;
- return diff ? diff : strcmp (a->name, b->name);
-}
-
-int
-main ()
-{
- int test_exit_status = EXIT_SUCCESS;
-
- /* Verify that errno can be assigned. */
- errno = EOVERFLOW;
-
- /* Check that errno values all differ, except possibly for
- EAGAIN == EWOULDBLOCK and ENOTSUP == EOPNOTSUPP. */
- int nerrtab = sizeof errtab / sizeof *errtab;
- qsort (errtab, nerrtab, sizeof *errtab, errtab_cmp);
- for (int i = 1; i < nerrtab; i++)
- if (errtab[i - 1].value == errtab[i].value)
- {
- fprintf (stderr, "%s == %s == %d\n",
- errtab[i - 1].name, errtab[i].name, errtab[i].value);
- if (! ((strcmp ("EAGAIN", errtab[i - 1].name) == 0
- && strcmp ("EWOULDBLOCK", errtab[i].name) == 0)
- || (strcmp ("ENOTSUP", errtab[i - 1].name) == 0
- && strcmp ("EOPNOTSUPP", errtab[i].name) == 0)))
- test_exit_status = EXIT_FAILURE;
- }
-
- return test_exit_status;
-}