]> Savannah Git Hosting - gnulib.git/log
gnulib.git
4 months agogit-version-gen: fix preceding change
Simon Josefsson [Sat, 28 Dec 2024 17:57:46 +0000 (18:57 +0100)]
git-version-gen: fix preceding change

* build-aux/git-version-gen: Do use *-git content when keyword
is not present.  Move post-processing later.  Doc fixes.

4 months agodoc: Omit deprecated modules from the "Undocumented modules" index.
Bruno Haible [Sat, 28 Dec 2024 19:16:40 +0000 (20:16 +0100)]
doc: Omit deprecated modules from the "Undocumented modules" index.

* doc/Makefile (undocumented-modules.texi): Filter out the deprecated
modules.

4 months agomaintainer-makefile: Improve gnulib-version derivation.
Simon Josefsson [Sat, 28 Dec 2024 18:46:30 +0000 (19:46 +0100)]
maintainer-makefile: Improve gnulib-version derivation.

* top/maint.mk (gnulib-version): Use git only when possible,
falling back to GNULIB_REVISION or ChangeLog date otherwise.  Use
consistent full identifier.

4 months agoannounce-gen: Support VPATH builds better.
Simon Josefsson [Sat, 28 Dec 2024 18:42:43 +0000 (19:42 +0100)]
announce-gen: Support VPATH builds better.

* build-aux/announce-gen: Pass -C$srcdir to git.

4 months agoendian: Fix link error on CentOS 5.
Bruno Haible [Sat, 28 Dec 2024 17:39:24 +0000 (18:39 +0100)]
endian: Fix link error on CentOS 5.

* m4/endian_h.m4 (gl_ENDIAN_H): Use AC_LINK_IFELSE, not
AC_COMPILE_IFELSE.

4 months agogit-version-gen: fix preceding change
Jim Meyering [Sat, 28 Dec 2024 17:42:21 +0000 (18:42 +0100)]
git-version-gen: fix preceding change

* build-aux/git-version-gen: Use the contents of the -git file
when its first line has the proper form (fixing a reversed test).
Also, reference the file only once, rather than three times.
Also, double quote $tarball_version_file in preexisting code.

4 months agogit-version-gen: fix preceding change
Jim Meyering [Sat, 28 Dec 2024 17:35:08 +0000 (09:35 -0800)]
git-version-gen: fix preceding change

* build-aux/git-version-gen: Use the contents of the -git file
when its first line has the proper form (fixing a reversed test).
Also, reference the file only once, rather than three times.
Also, double quote $tarball_version_file in preexisting code.

4 months agofile-has-acl: Fix compilation error on CentOS 6 (regression 2024-09-29).
Bruno Haible [Sat, 28 Dec 2024 17:26:39 +0000 (18:26 +0100)]
file-has-acl: Fix compilation error on CentOS 6 (regression 2024-09-29).

* lib/file-has-acl.c (XATTR_NAME_SMACK, XATTR_NAME_SELINUX): Add
fallback definitions.

4 months agoassert-h, verify: Make static_assert work in C++ mode on FreeBSD 11.
Bruno Haible [Sat, 28 Dec 2024 16:40:44 +0000 (17:40 +0100)]
assert-h, verify: Make static_assert work in C++ mode on FreeBSD 11.

* lib/verify.h (static_assert): Override when using old versions of
clang++.

4 months agoendian: Fix compilation error on NetBSD 7.1.
Bruno Haible [Sat, 28 Dec 2024 15:47:16 +0000 (16:47 +0100)]
endian: Fix compilation error on NetBSD 7.1.

* m4/endian_h.m4 (gl_ENDIAN_H): Test for <sys/endian.h>. Set
HAVE_SYS_ENDIAN_H.
* lib/endian.in.h: Test HAVE_SYS_ENDIAN_H as an alternative to
HAVE_ENDIAN_H.
* modules/endian (Makefile.am): Substitute HAVE_SYS_ENDIAN_H.

4 months agowchar-h: Fix wcrtomb prototype conflict in C++ mode on OpenBSD 6.0.
Bruno Haible [Sat, 28 Dec 2024 15:38:23 +0000 (16:38 +0100)]
wchar-h: Fix wcrtomb prototype conflict in C++ mode on OpenBSD 6.0.

* lib/wchar.in.h (rpl_mbstate_t): Don't define on OpenBSD.

4 months agostack-trace: Fix compilation errors on older BSD systems.
Bruno Haible [Sat, 28 Dec 2024 12:03:52 +0000 (13:03 +0100)]
stack-trace: Fix compilation errors on older BSD systems.

* m4/stack-trace.m4 (gl_STACK_TRACE_EARLY): Test whether we can link
with libexecinfo before modifying LIBS.

4 months agoRename module stdbool-h to bool.
Bruno Haible [Sat, 28 Dec 2024 05:08:15 +0000 (06:08 +0100)]
Rename module stdbool-h to bool.

Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-12/msg00193.html>.

* modules/bool: Renamed from modules/stdbool-h.
* modules/bool-tests: Renamed from modules/stdbool-h-tests.
* modules/bool-c++-tests: Renamed from modules/stdbool-h-c++-tests.
* tests/test-bool.c: Renamed from tests/test-stdbool-h.c.
* tests/test-bool-c++.cc: Renamed from tests/test-stdbool-h-c++.cc.
* tests/test-bool-c++2.cc: Renamed from tests/test-stdbool-h-c++2.cc.
* modules/stdbool-h-c99-tests: Update.
* modules/stdbool-h-c99-c++-tests: Update.
* tests/test-stdbool-h-c99.c: Update.
* tests/test-stdbool-h-c99-c++.cc: Update.
* doc/posix-headers/stdbool.texi: Update.
* doc/gnulib-readme.texi: Update.
* doc/gnulib.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdbool: Update.

4 months agoRename module wchar to wchar-h.
Bruno Haible [Fri, 27 Dec 2024 22:43:27 +0000 (23:43 +0100)]
Rename module wchar to wchar-h.

* modules/wchar-h: Renamed from modules/wchar.
* modules/wchar-h-tests: Renamed from modules/wchar-tests.
* modules/wchar-h-c++-tests: Renamed from modules/wchar-c++-tests.
* tests/test-wchar-h.c: Renamed from tests/test-wchar.c.
* tests/test-wchar-h-c++.cc: Renamed from tests/test-wchar-c++.cc.
* tests/test-wchar-h-c++2.cc: Renamed from tests/test-wchar-c++2.cc.
* tests/test-wchar-h-c++3.cc: Renamed from tests/test-wchar-c++3.cc.
* doc/posix-headers/wchar.texi: Update.
* modules/* (Depends-on): Update.
* modules/wchar: New file.

4 months agoRename module utmp to utmp-h.
Bruno Haible [Fri, 27 Dec 2024 22:43:25 +0000 (23:43 +0100)]
Rename module utmp to utmp-h.

* modules/utmp-h: Renamed from modules/utmp.
* modules/utmp-h-tests: Renamed from modules/utmp-tests.
* modules/utmp-h-c++-tests: Renamed from modules/utmp-c++-tests.
* tests/test-utmp-h.c: Renamed from tests/test-utmp.c.
* tests/test-utmp-h-c++.cc: Renamed from tests/test-utmp-c++.cc.
* doc/posix-headers/utmp.texi: Update.
* modules/* (Depends-on): Update.
* modules/utmp: New file.

4 months agoRename module unitypes to unitypes-h.
Bruno Haible [Fri, 27 Dec 2024 22:43:23 +0000 (23:43 +0100)]
Rename module unitypes to unitypes-h.

* modules/unitypes-h: Renamed from modules/unitypes.
* doc/libunistring.texi: Update.
* modules/* (Depends-on): Update.
* modules/unitypes: New file.

4 months agoRename module unistd to unistd-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:53 +0000 (23:41 +0100)]
Rename module unistd to unistd-h.

* modules/unistd-h: Renamed from modules/unistd.
* modules/unistd-h-tests: Renamed from modules/unistd-tests.
* modules/unistd-h-c++-tests: Renamed from modules/unistd-c++-tests.
* tests/test-unistd-h.c: Renamed from tests/test-unistd.c.
* tests/test-unistd-h-c++.cc: Renamed from tests/test-unistd-c++.cc.
* doc/posix-headers/unistd.texi: Update.
* doc/posix-functions/_exit.texi: Update.
* modules/* (Depends-on): Update.
* modules/unistd: New file.

4 months agoRename module uchar-c23 to uchar-h-c23.
Bruno Haible [Fri, 27 Dec 2024 22:41:52 +0000 (23:41 +0100)]
Rename module uchar-c23 to uchar-h-c23.

* modules/uchar-h-c23: Renamed from modules/uchar-c23.
* lib/uchar.in.h: Update.
* doc/posix-headers/uchar.texi: Update.
* doc/posix-functions/mbrtoc32.texi: Update.
* doc/strings.texi: Update.
* modules/* (Depends-on): Update.
* modules/uchar-c23: New file.

4 months agoRename module uchar to uchar-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:50 +0000 (23:41 +0100)]
Rename module uchar to uchar-h.

* modules/uchar-h: Renamed from modules/uchar.
* modules/uchar-h-tests: Renamed from modules/uchar-tests.
* modules/uchar-h-c++-tests: Renamed from modules/uchar-c++-tests.
* tests/test-uchar-h.c: Renamed from tests/test-uchar.c.
* tests/test-uchar-h-c++.cc: Renamed from tests/test-uchar-c++.cc.
* tests/test-uchar-h-c++2.cc: Renamed from tests/test-uchar-c++2.cc.
* doc/posix-headers/uchar.texi: Update.
* modules/* (Depends-on): Update.
* modules/uchar: New file.

4 months agoRename module termios to termios-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:47 +0000 (23:41 +0100)]
Rename module termios to termios-h.

* modules/termios-h: Renamed from modules/termios.
* modules/termios-h-tests: Renamed from modules/termios-tests.
* modules/termios-h-c++-tests: Renamed from modules/termios-c++-tests.
* tests/test-termios-h.c: Renamed from tests/test-termios.c.
* tests/test-termios-h-c++.cc: Renamed from tests/test-termios-c++.cc.
* doc/posix-headers/termios.texi: Update.
* modules/* (Depends-on): Update.
* modules/termios: New file.

4 months agoRename module sys_wait to sys_wait-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:45 +0000 (23:41 +0100)]
Rename module sys_wait to sys_wait-h.

* modules/sys_wait-h: Renamed from modules/sys_wait.
* modules/sys_wait-h-tests: Renamed from modules/sys_wait-tests.
* modules/sys_wait-h-c++-tests: Renamed from modules/sys_wait-c++-tests.
* tests/test-sys_wait-h.h: Renamed from tests/test-sys_wait.h.
* tests/test-sys_wait-h.c: Renamed from tests/test-sys_wait.c.
* tests/test-stdlib-h.c: Update.
* tests/test-sys_wait-h-c++.cc: Renamed from tests/test-sys_wait-c++.cc.
* doc/posix-headers/sys_wait.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_wait: New file.

4 months agoRename module sys_utsname to sys_utsname-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:43 +0000 (23:41 +0100)]
Rename module sys_utsname to sys_utsname-h.

* modules/sys_utsname-h: Renamed from modules/sys_utsname.
* modules/sys_utsname-h-tests: Renamed from modules/sys_utsname-tests.
* modules/sys_utsname-h-c++-tests: Renamed from
modules/sys_utsname-c++-tests.
* tests/test-sys_utsname-h.c: Renamed from tests/test-sys_utsname.c.
* tests/test-sys_utsname-h-c++.cc: Renamed from
tests/test-sys_utsname-c++.cc.
* doc/posix-headers/sys_utsname.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_utsname: New file.

4 months agoRename module sys_un to sys_un-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:42 +0000 (23:41 +0100)]
Rename module sys_un to sys_un-h.

* modules/sys_un-h: Renamed from modules/sys_un.
* modules/sys_un-h-tests: Renamed from modules/sys_un-tests.
* modules/sys_un-h-c++-tests: Renamed from modules/sys_un-c++-tests.
* tests/test-sys_un-h.c: Renamed from tests/test-sys_un.c.
* tests/test-sys_un-h-c++.cc: Renamed from tests/test-sys_un-c++.cc.
* doc/posix-headers/sys_un.texi: Update.
* modules/sys_un: New file.

4 months agoRename module sys_uio to sys_uio-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:41 +0000 (23:41 +0100)]
Rename module sys_uio to sys_uio-h.

* modules/sys_uio-h: Renamed from modules/sys_uio.
* modules/sys_uio-h-tests: Renamed from modules/sys_uio-tests.
* modules/sys_uio-h-c++-tests: Renamed from modules/sys_uio-c++-tests.
* tests/test-sys_uio-h.c: Renamed from tests/test-sys_uio.c.
* tests/test-sys_uio-h-c++.cc: Renamed from tests/test-sys_uio-c++.cc.
* doc/posix-headers/sys_uio.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_uio: New file.

4 months agoRename module sys_types to sys_types-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:40 +0000 (23:41 +0100)]
Rename module sys_types to sys_types-h.

* modules/sys_types-h: Renamed from modules/sys_types.
* modules/sys_types-h-tests: Renamed from modules/sys_types-tests.
* modules/sys_types-h-c++-tests: Renamed from
modules/sys_types-c++-tests.
* tests/test-sys_types-h.c: Renamed from tests/test-sys_types.c.
* tests/test-sys_types-h-c++.cc: Renamed from
tests/test-sys_types-c++.cc.
* doc/posix-headers/sys_types.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_types: New file.

4 months agoRename module sys_times to sys_times-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:38 +0000 (23:41 +0100)]
Rename module sys_times to sys_times-h.

* modules/sys_times-h: Renamed from modules/sys_times.
* modules/sys_times-h-tests: Renamed from modules/sys_times-tests.
* modules/sys_times-h-c++-tests: Renamed from
modules/sys_times-c++-tests.
* tests/test-sys_times-h.c: Renamed from tests/test-sys_times.c.
* tests/test-sys_times-h-c++.cc: Renamed from
tests/test-sys_times-c++.cc.
* doc/posix-headers/sys_times.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_times: New file.

4 months agoRename module sys_time to sys_time-h.
Bruno Haible [Fri, 27 Dec 2024 22:41:36 +0000 (23:41 +0100)]
Rename module sys_time to sys_time-h.

* modules/sys_time-h: Renamed from modules/sys_time.
* modules/sys_time-h-tests: Renamed from modules/sys_time-tests.
* modules/sys_time-h-c++-tests: Renamed from modules/sys_time-c++-tests.
* tests/test-sys_time-h.c: Renamed from tests/test-sys_time.c.
* tests/test-sys_time-h-c++.cc: Renamed from tests/test-sys_time-c++.cc.
* doc/posix-headers/sys_time.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_time: New file.

4 months agoRename module sys_stat to sys_stat-h.
Bruno Haible [Fri, 27 Dec 2024 22:40:10 +0000 (23:40 +0100)]
Rename module sys_stat to sys_stat-h.

* modules/sys_stat-h: Renamed from modules/sys_stat.
* modules/sys_stat-h-tests: Renamed from modules/sys_stat-tests.
* modules/sys_stat-h-c++-tests: Renamed from modules/sys_stat-c++-tests.
* tests/test-sys_stat-h.c: Renamed from tests/test-sys_stat.c.
* tests/test-sys_stat-h-c++.cc: Renamed from tests/test-sys_stat-c++.cc.
* doc/posix-headers/sys_stat.texi: Update.
* doc/posix-functions/mkdir.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_stat: New file.

4 months agoRename module sys_socket to sys_socket-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:59 +0000 (23:39 +0100)]
Rename module sys_socket to sys_socket-h.

* modules/sys_socket-h: Renamed from modules/sys_socket.
* modules/sys_socket-h-tests: Renamed from modules/sys_socket-tests.
* modules/sys_socket-h-c++-tests: Renamed from
modules/sys_socket-c++-tests.
* tests/test-sys_socket-h.c: Renamed from tests/test-sys_socket.c.
* tests/test-sys_socket-h-c++.cc: Renamed from
tests/test-sys_socket-c++.cc.
* doc/posix-headers/sys_socket.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_socket: New file.

4 months agoRename module sys_shm to sys_shm-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:57 +0000 (23:39 +0100)]
Rename module sys_shm to sys_shm-h.

* modules/sys_shm-h: Renamed from modules/sys_shm.
* doc/posix-headers/sys_shm.texi: Update.
* modules/sys_shm: New file.

4 months agoRename module sys_sem to sys_sem-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:56 +0000 (23:39 +0100)]
Rename module sys_sem to sys_sem-h.

* modules/sys_sem-h: Renamed from modules/sys_sem.
* doc/posix-headers/sys_sem.texi: Update.
* modules/sys_sem: New file.

4 months agoRename module sys_select to sys_select-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:55 +0000 (23:39 +0100)]
Rename module sys_select to sys_select-h.

* modules/sys_select-h: Renamed from modules/sys_select.
* modules/sys_select-h-tests: Renamed from modules/sys_select-tests.
* modules/sys_select-h-c++-tests: Renamed from
modules/sys_select-c++-tests.
* tests/test-sys_select-h.c: Renamed from tests/test-sys_select.c.
* tests/test-sys_select-h-c++.cc: Renamed from
tests/test-sys_select-c++.cc.
* doc/posix-headers/sys_select.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_select: New file.

4 months agoRename module sys_resource to sys_resource-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:53 +0000 (23:39 +0100)]
Rename module sys_resource to sys_resource-h.

* modules/sys_resource-h: Renamed from modules/sys_resource.
* modules/sys_resource-h-tests: Renamed from modules/sys_resource-tests.
* modules/sys_resource-h-c++-tests: Renamed from
modules/sys_resource-c++-tests.
* tests/test-sys_resource-h.c: Renamed from tests/test-sys_resource.c.
* tests/test-sys_resource-h-c++.cc: Renamed from
tests/test-sys_resource-c++.cc.
* doc/posix-headers/sys_resource.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_resource: New file.

4 months agoRename module sys_random to sys_random-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:52 +0000 (23:39 +0100)]
Rename module sys_random to sys_random-h.

* modules/sys_random-h: Renamed from modules/sys_random.
* modules/sys_random-h-tests: Renamed from modules/sys_random-tests.
* modules/sys_random-h-c++-tests: Renamed from
modules/sys_random-c++-tests.
* tests/test-sys_random-h.c: Renamed from tests/test-sys_random.c.
* tests/test-sys_random-h-c++.cc: Renamed from
tests/test-sys_random-c++.cc.
* doc/glibc-headers/sys_random.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_random: New file.

4 months agoRename module sys_msg to sys_msg-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:51 +0000 (23:39 +0100)]
Rename module sys_msg to sys_msg-h.

* modules/sys_msg-h: Renamed from modules/sys_msg.
* doc/posix-headers/sys_msg.texi: Update.
* modules/sys_msg: New file.

4 months agoRename module sys_ioctl to sys_ioctl-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:49 +0000 (23:39 +0100)]
Rename module sys_ioctl to sys_ioctl-h.

* modules/sys_ioctl-h: Renamed from modules/sys_ioctl.
* modules/sys_ioctl-h-tests: Renamed from modules/sys_ioctl-tests.
* modules/sys_ioctl-h-c++-tests: Renamed from
modules/sys_ioctl-c++-tests.
* tests/test-sys_ioctl-h.c: Renamed from tests/test-sys_ioctl.c.
* tests/test-sys_ioctl-h-c++.cc: Renamed from
tests/test-sys_ioctl-c++.cc.
* doc/glibc-headers/sys_ioctl.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_ioctl: New file.

4 months agoRename module sys_file to sys_file-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:47 +0000 (23:39 +0100)]
Rename module sys_file to sys_file-h.

* modules/sys_file-h: Renamed from modules/sys_file.
* modules/sys_file-h-tests: Renamed from modules/sys_file-tests.
* modules/sys_file-h-c++-tests: Renamed from modules/sys_file-c++-tests.
* tests/test-sys_file-h.c: Renamed from tests/test-sys_file.c.
* tests/test-sys_file-h-c++.cc: Renamed from tests/test-sys_file-c++.cc.
* doc/glibc-headers/sys_file.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_file: New file.

4 months agoRename module sysexits to sysexits-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:46 +0000 (23:39 +0100)]
Rename module sysexits to sysexits-h.

* modules/sysexits-h: Renamed from modules/sysexits.
* modules/sysexits-h-tests: Renamed from modules/sysexits-tests.
* modules/sysexits-h-c++-tests: Renamed from modules/sysexits-c++-tests.
* tests/test-sysexits-h.c: Renamed from tests/test-sysexits.c.
* tests/test-sysexits-h-c++.cc: Renamed from tests/test-sysexits-c++.cc.
* doc/glibc-headers/sysexits.texi: Update.
* modules/* (Depends-on): Update.
* modules/sysexits: New file.

4 months agoRename module strings to strings-h.
Bruno Haible [Fri, 27 Dec 2024 22:39:42 +0000 (23:39 +0100)]
Rename module strings to strings-h.

* modules/strings-h: Renamed from modules/strings.
* modules/strings-h-tests: Renamed from modules/strings-tests.
* modules/strings-h-c++-tests: Renamed from modules/strings-c++-tests.
* tests/test-strings-h.c: Renamed from tests/test-strings.c.
* tests/test-strings-h-c++.cc: Renamed from tests/test-strings-c++.cc.
* doc/posix-headers/strings.texi: Update.
* modules/* (Depends-on): Update.
* modules/strings: New file.

4 months agoRename module string to string-h.
Bruno Haible [Fri, 27 Dec 2024 22:37:59 +0000 (23:37 +0100)]
Rename module string to string-h.

* modules/string-h: Renamed from modules/string.
* modules/string-h-tests: Renamed from modules/string-tests.
* modules/string-h-c++-tests: Renamed from modules/string-c++-tests.
* tests/test-string-h.c: Renamed from tests/test-string.c.
* tests/test-string-h-c++.cc: Renamed from tests/test-string-c++.cc.
* tests/test-string-h-c++2.cc: Renamed from tests/test-string-c++2.cc.
* doc/posix-headers/string.texi: Update.
* doc/posix-functions/strcat.texi: Update.
* doc/posix-functions/strcpy.texi: Update.
* doc/posix-functions/strncpy.texi: Update.
* modules/* (Depends-on): Update.
* modules/string: New file.

4 months agoRename module stdnoreturn to stdnoreturn-h.
Bruno Haible [Fri, 27 Dec 2024 22:29:02 +0000 (23:29 +0100)]
Rename module stdnoreturn to stdnoreturn-h.

* modules/stdnoreturn-h: Renamed from modules/stdnoreturn.
* modules/stdnoreturn-h-tests: Renamed from modules/stdnoreturn-tests.
* tests/test-stdnoreturn-h.c: Renamed from tests/test-stdnoreturn.c.
* doc/posix-headers/stdnoreturn.texi: Update.
* doc/noreturn.texi: Update.
* modules/stdnoreturn: New file.

4 months agoRename module stdlib to stdlib-h.
Bruno Haible [Fri, 27 Dec 2024 22:28:45 +0000 (23:28 +0100)]
Rename module stdlib to stdlib-h.

* modules/stdlib-h: Renamed from modules/stdlib.
* modules/stdlib-h-tests: Renamed from modules/stdlib-tests.
* modules/stdlib-h-c++-tests: Renamed from modules/stdlib-c++-tests.
* tests/test-stdlib-h.c: Renamed from tests/test-stdlib.c.
* tests/test-stdlib-h-c++.cc: Renamed from tests/test-stdlib-c++.cc.
* tests/test-stdlib-h-c++2.cc: Renamed from tests/test-stdlib-c++2.cc.
* doc/posix-headers/stdlib.texi: Update.
* doc/posix-functions/exit.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdlib: New file.

4 months agoRename module stdio to stdio-h.
Bruno Haible [Fri, 27 Dec 2024 22:24:51 +0000 (23:24 +0100)]
Rename module stdio to stdio-h.

* modules/stdio-h: Renamed from modules/stdio.
* modules/stdio-h-tests: Renamed from modules/stdio-tests.
* modules/stdio-h-c++-tests: Renamed from modules/stdio-c++-tests.
* tests/test-stdio-h.c: Renamed from tests/test-stdio.c.
* tests/test-stdio-h-c++.cc: Renamed from tests/test-stdio-c++.cc.
* tests/test-stdio-h-c++2.cc: Renamed from tests/test-stdio-c++2.cc.
* doc/posix-headers/stdio.texi: Update.
* doc/posix-functions/fgetc.texi: Update.
* doc/posix-functions/fgets.texi: Update.
* doc/posix-functions/fprintf.texi: Update.
* doc/posix-functions/fputc.texi: Update.
* doc/posix-functions/fputs.texi: Update.
* doc/posix-functions/fread.texi: Update.
* doc/posix-functions/fscanf.texi: Update.
* doc/posix-functions/fwrite.texi: Update.
* doc/posix-functions/getc.texi: Update.
* doc/posix-functions/getchar.texi: Update.
* doc/posix-functions/printf.texi: Update.
* doc/posix-functions/putc.texi: Update.
* doc/posix-functions/putchar.texi: Update.
* doc/posix-functions/puts.texi: Update.
* doc/posix-functions/read.texi: Update.
* doc/posix-functions/scanf.texi: Update.
* doc/posix-functions/vfprintf.texi: Update.
* doc/posix-functions/vprintf.texi: Update.
* doc/posix-functions/write.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdio: New file.

4 months agoRename module stdint to stdint-h.
Bruno Haible [Fri, 27 Dec 2024 22:23:13 +0000 (23:23 +0100)]
Rename module stdint to stdint-h.

* modules/stdint-h: Renamed from modules/stdint.
* modules/stdint-h-tests: Renamed from modules/stdint-tests.
* modules/stdint-h-c++-tests: Renamed from modules/stdint-c++-tests.
* tests/test-stdint-h.c: Renamed from tests/test-stdint.c.
* tests/test-stdint-h-c++.cc: Renamed from tests/test-stdint-c++.cc.
* tests/test-stdint-h-c++2.cc: Renamed from tests/test-stdint-c++2.cc.
* doc/posix-headers/stdint.texi: Update.
* doc/gnulib-readme.texi: Update.
* doc/gnulib.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdint: New file.

4 months agoRename module stddef to stddef-h.
Bruno Haible [Fri, 27 Dec 2024 22:23:10 +0000 (23:23 +0100)]
Rename module stddef to stddef-h.

* modules/stddef-h: Renamed from modules/stddef.
* modules/stddef-h-tests: Renamed from modules/stddef-tests.
* modules/stddef-h-c++-tests: Renamed from modules/stddef-c++-tests.
* tests/test-stddef-h.c: Renamed from tests/test-stddef.c.
* tests/test-stddef-h-c++.cc: Renamed from tests/test-stddef-c++.cc.
* tests/test-stddef-h-c++2.cc: Renamed from tests/test-stddef-c++2.cc.
* doc/posix-headers/stddef.texi: Update.
* modules/* (Depends-on): Update.
* modules/stddef: New file.

4 months agoRename module stdckdint to stdckdint-h.
Bruno Haible [Fri, 27 Dec 2024 22:21:40 +0000 (23:21 +0100)]
Rename module stdckdint to stdckdint-h.

* modules/stdckdint-h: Renamed from modules/stdckdint.
* modules/stdckdint-h-tests: Renamed from modules/stdckdint-tests.
* modules/stdckdint-h-c++-tests: Renamed from
modules/stdckdint-c++-tests.
* tests/test-stdckdint-h.c: Renamed from tests/test-stdckdint.c.
* tests/test-stdckdint-h-c++.cc: Renamed from
tests/test-stdckdint-c++.cc.
* doc/posix-headers/stdckdint.texi: Update.
* doc/intprops.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdckdint: New file.

4 months agoRename module stdbool to stdbool-h.
Bruno Haible [Fri, 27 Dec 2024 22:18:14 +0000 (23:18 +0100)]
Rename module stdbool to stdbool-h.

* modules/stdbool-h: Renamed from modules/stdbool.
* modules/stdbool-h-tests: Renamed from modules/stdbool-tests.
* modules/stdbool-h-c++-tests: Renamed from modules/stdbool-c++-tests.
* tests/test-stdbool-h.c: Renamed from tests/test-stdbool.c.
* tests/test-stdbool-h-c++.cc: Renamed from tests/test-stdbool-c++.cc.
* tests/test-stdbool-h-c++2.cc: Renamed from tests/test-stdbool-c++2.cc.
* tests/test-stdbool-h-c99.c: Update.
* tests/test-stdbool-h-c99-c++.cc: Update.
* doc/posix-headers/stdbool.texi: Update.
* doc/gnulib-readme.texi: Update.
* doc/gnulib.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdbool: New file.

4 months agoRename module stdbool-c99 to stdbool-h-c99.
Bruno Haible [Fri, 27 Dec 2024 22:18:10 +0000 (23:18 +0100)]
Rename module stdbool-c99 to stdbool-h-c99.

* modules/stdbool-h-c99: Renamed from modules/stdbool-c99.
* modules/stdbool-h-c99-tests: Renamed from modules/stdbool-c99-tests.
* modules/stdbool-h-c99-c++-tests: Renamed from
modules/stdbool-c99-c++-tests.
* tests/test-stdbool-h-c99.c: Renamed from tests/test-stdbool-c99.c.
* tests/test-stdbool-h-c99-c++.cc: Renamed from
tests/test-stdbool-c99-c++.cc.
* doc/posix-headers/stdbool.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdbool-c99: New file.

4 months agoRename module stdarg to stdarg-h.
Bruno Haible [Fri, 27 Dec 2024 22:18:08 +0000 (23:18 +0100)]
Rename module stdarg to stdarg-h.

* modules/stdarg-h: Renamed from modules/stdarg.
* modules/stdarg-h-tests: Renamed from modules/stdarg-tests.
* modules/stdarg-h-c++-tests: Renamed from modules/stdarg-c++-tests.
* tests/test-stdarg-h-c++.cc: Renamed from tests/test-stdarg-c++.cc.
* tests/test-stdarg-h-c++2.cc: Renamed from tests/test-stdarg-c++2.cc.
* doc/posix-headers/stdarg.texi: Update.
* doc/posix-functions/va_copy.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdarg: New file.

4 months agoRename module stdalign to stdalign-h.
Bruno Haible [Fri, 27 Dec 2024 22:16:18 +0000 (23:16 +0100)]
Rename module stdalign to stdalign-h.

* modules/stdalign-h: Renamed from modules/stdalign.
* modules/stdalign-h-tests: Renamed from modules/stdalign-tests.
* modules/stdalign-h-c++-tests: Renamed from modules/stdalign-c++-tests.
* tests/test-stdalign-h-c++.cc: Renamed from tests/test-stdalign-c++.cc.
* doc/posix-headers/stdalign.texi: Update.
* modules/stdalign: New file.

4 months agoRename module spawn to spawn-h.
Bruno Haible [Fri, 27 Dec 2024 22:16:16 +0000 (23:16 +0100)]
Rename module spawn to spawn-h.

* modules/spawn-h: Renamed from modules/spawn.
* modules/spawn-h-tests: Renamed from modules/spawn-tests.
* modules/spawn-h-c++-tests: Renamed from modules/spawn-c++-tests.
* tests/test-spawn-h.c: Renamed from tests/test-spawn.c.
* tests/test-spawn-h-c++.cc: Renamed from tests/test-spawn-c++.cc.
* doc/posix-headers/spawn.texi: Update.
* modules/* (Depends-on): Update.
* modules/spawn: New file.

4 months agoRename module search to search-h.
Bruno Haible [Fri, 27 Dec 2024 22:16:13 +0000 (23:16 +0100)]
Rename module search to search-h.

* modules/search-h: Renamed from modules/search.
* modules/search-h-tests: Renamed from modules/search-tests.
* modules/search-h-c++-tests: Renamed from modules/search-c++-tests.
* tests/test-search-h.c: Renamed from tests/test-search.c.
* tests/test-search-h-c++.cc: Renamed from tests/test-search-c++.cc.
* doc/posix-headers/search.texi: Update.
* modules/* (Depends-on): Update.
* modules/search: New file.

4 months agoRename module sched to sched-h.
Bruno Haible [Fri, 27 Dec 2024 22:16:10 +0000 (23:16 +0100)]
Rename module sched to sched-h.

* modules/sched-h: Renamed from modules/sched.
* modules/sched-h-tests: Renamed from modules/sched-tests.
* modules/sched-h-c++-tests: Renamed from modules/sched-c++-tests.
* tests/test-sched-h.c: Renamed from tests/test-sched.c.
* tests/test-sched-h-c++.cc: Renamed from tests/test-sched-c++.cc.
* doc/posix-headers/sched.texi: Update.
* modules/* (Depends-on): Update.
* modules/sched: New file.

4 months agoRename module pty to pty-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:38 +0000 (23:14 +0100)]
Rename module pty to pty-h.

* modules/pty-h: Renamed from modules/pty.
* modules/pty-h-tests: Renamed from modules/pty-tests.
* modules/pty-h-c++-tests: Renamed from modules/pty-c++-tests.
* tests/test-pty-h.c: Renamed from tests/test-pty.c.
* tests/test-pty-h-c++.cc: Renamed from tests/test-pty-c++.cc.
* doc/glibc-headers/pty.texi: Update.
* doc/gnulib-intro.texi: Update.
* modules/* (Depends-on): Update.
* modules/pty: New file.

4 months agoRename module netinet_in to netinet_in-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:35 +0000 (23:14 +0100)]
Rename module netinet_in to netinet_in-h.

* modules/netinet_in-h: Renamed from modules/netinet_in.
* modules/netinet_in-h-tests: Renamed from modules/netinet_in-tests.
* modules/netinet_in-h-c++-tests: Renamed from
modules/netinet_in-c++-tests.
* tests/test-netinet_in-h.c: Renamed from tests/test-netinet_in.c.
* tests/test-netinet_in-h-c++.cc: Renamed from
tests/test-netinet_in-c++.cc.
* doc/posix-headers/netinet_in.texi: Update.
* modules/* (Depends-on): Update.
* modules/netinet_in: New file.

4 months agoRename module net_if to net_if-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:32 +0000 (23:14 +0100)]
Rename module net_if to net_if-h.

* modules/net_if-h: Renamed from modules/net_if.
* modules/net_if-h-tests: Renamed from modules/net_if-tests.
* modules/net_if-h-c++-tests: Renamed from modules/net_if-c++-tests.
* tests/test-net_if-h.c: Renamed from tests/test-net_if.c.
* tests/test-net_if-h-c++.cc: Renamed from tests/test-net_if-c++.cc.
* doc/posix-headers/net_if.texi: Update.
* modules/net_if: New file.

4 months agoRename module netdb to netdb-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:29 +0000 (23:14 +0100)]
Rename module netdb to netdb-h.

* modules/netdb-h: Renamed from modules/netdb.
* modules/netdb-h-tests: Renamed from modules/netdb-tests.
* modules/netdb-h-c++-tests: Renamed from modules/netdb-c++-tests.
* tests/test-netdb-h.c: Renamed from tests/test-netdb.c.
* tests/test-netdb-h-c++.cc: Renamed from tests/test-netdb-c++.cc.
* doc/posix-headers/netdb.texi: Update.
* modules/* (Depends-on): Update.
* modules/netdb: New file.

4 months agoRename module monetary to monetary-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:27 +0000 (23:14 +0100)]
Rename module monetary to monetary-h.

* modules/monetary-h: Renamed from modules/monetary.
* modules/monetary-h-tests: Renamed from modules/monetary-tests.
* modules/monetary-h-c++-tests: Renamed from modules/monetary-c++-tests.
* tests/test-monetary-h.c: Renamed from tests/test-monetary.c.
* tests/test-monetary-h-c++.cc: Renamed from tests/test-monetary-c++.cc.
* doc/posix-headers/monetary.texi: Update.
* modules/* (Depends-on): Update.
* modules/monetary: New file.

4 months agoRename module mntent to mntent-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:24 +0000 (23:14 +0100)]
Rename module mntent to mntent-h.

* modules/mntent-h: Renamed from modules/mntent.
* doc/glibc-headers/mntent.texi: Update.
* modules/* (Depends-on): Update.
* modules/mntent: New file.

4 months agoRename module math to math-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:22 +0000 (23:14 +0100)]
Rename module math to math-h.

* modules/math-h: Renamed from modules/math.
* modules/math-h-tests: Renamed from modules/math-tests.
* modules/math-h-c++-tests: Renamed from modules/math-c++-tests.
* tests/test-math-h.c: Renamed from tests/test-math.c.
* tests/test-math-h-c++.cc: Renamed from tests/test-math-c++.cc.
* tests/test-math-h-c++2.cc: Renamed from tests/test-math-c++2.cc.
* doc/posix-headers/math.texi: Update.
* modules/* (Depends-on): Update.
* modules/math: New file.

4 months agoRename module locale to locale-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:18 +0000 (23:14 +0100)]
Rename module locale to locale-h.

* modules/locale-h: Renamed from modules/locale.
* modules/locale-h-tests: Renamed from modules/locale-tests.
* modules/locale-h-c++-tests: Renamed from modules/locale-c++-tests.
* tests/test-locale-h.c: Renamed from tests/test-locale.c.
* tests/test-locale-h-c++.cc: Renamed from tests/test-locale-c++.cc.
* tests/test-locale-h-c++2.cc: Renamed from tests/test-locale-c++2.cc.
* doc/posix-headers/locale.texi: Update.
* modules/* (Depends-on): Update.
* modules/locale: New file.

4 months agoRename module langinfo to langinfo-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:16 +0000 (23:14 +0100)]
Rename module langinfo to langinfo-h.

* modules/langinfo-h: Renamed from modules/langinfo.
* modules/langinfo-h-tests: Renamed from modules/langinfo-tests.
* modules/langinfo-h-c++-tests: Renamed from modules/langinfo-c++-tests.
* tests/test-langinfo-h.c: Renamed from tests/test-langinfo.c.
* tests/test-langinfo-h-c++.cc: Renamed from tests/test-langinfo-c++.cc.
* doc/posix-headers/langinfo.texi: Update.
* modules/* (Depends-on): Update.
* modules/langinfo: New file.

4 months agoRename module inttypes to inttypes-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:13 +0000 (23:14 +0100)]
Rename module inttypes to inttypes-h.

* modules/inttypes-h: Renamed from modules/inttypes.
* modules/inttypes-h-tests: Renamed from modules/inttypes-tests.
* modules/inttypes-h-c++-tests: Renamed from modules/inttypes-c++-tests.
* tests/test-inttypes-h.c: Renamed from tests/test-inttypes.c.
* tests/test-inttypes-h-c++.cc: Renamed from tests/test-inttypes-c++.cc.
* tests/test-inttypes-h-c++2.cc: Renamed from tests/test-inttypes-c++2.cc.
* doc/posix-headers/inttypes.texi: Update.
* modules/* (Depends-on): Update.
* modules/inttypes: New file.

4 months agoRename module inttypes-incomplete to inttypes-h-incomplete.
Bruno Haible [Fri, 27 Dec 2024 22:14:11 +0000 (23:14 +0100)]
Rename module inttypes-incomplete to inttypes-h-incomplete.

* modules/inttypes-h-incomplete: Renamed from
modules/inttypes-incomplete.
* modules/* (Depends-on): Update.
* modules/inttypes-incomplete: New file.

4 months agoRename module float to float-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:08 +0000 (23:14 +0100)]
Rename module float to float-h.

* modules/float-h: Renamed from modules/float.
* modules/float-h-tests: Renamed from modules/float-tests.
* modules/float-h-c++-tests: Renamed from modules/float-c++-tests.
* tests/test-float-h.c: Renamed from tests/test-float.c.
* tests/test-float-h-c++.cc: Renamed from tests/test-float-c++.cc.
* tests/test-float-h-c++2.cc: Renamed from tests/test-float-c++2.cc.
* doc/posix-headers/float.texi: Update.
* modules/* (Depends-on): Update.
* modules/float: New file.

4 months agoRename module fenv to fenv-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:06 +0000 (23:14 +0100)]
Rename module fenv to fenv-h.

* modules/fenv-h: Renamed from modules/fenv.
* modules/fenv-h-tests: Renamed from modules/fenv-tests.
* modules/fenv-h-c++-tests: Renamed from modules/fenv-c++-tests.
* tests/test-fenv-h.c: Renamed from tests/test-fenv.c.
* tests/test-fenv-h-c++.cc: Renamed from tests/test-fenv-c++.cc.
* doc/posix-headers/fenv.texi: Update.
* modules/* (Depends-on): Update.
* modules/fenv: New file.

4 months agoRename module errno to errno-h.
Bruno Haible [Fri, 27 Dec 2024 22:14:03 +0000 (23:14 +0100)]
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.

4 months agoRename module dirent to dirent-h.
Bruno Haible [Fri, 27 Dec 2024 22:12:58 +0000 (23:12 +0100)]
Rename module dirent to dirent-h.

* modules/dirent-h: Renamed from modules/dirent.
* modules/dirent-h-tests: Renamed from modules/dirent-tests.
* modules/dirent-h-c++-tests: Renamed from modules/dirent-c++-tests.
* tests/test-dirent-h.c: Renamed from tests/test-dirent.c.
* tests/test-dirent-h-c++.cc: Renamed from tests/test-dirent-c++.cc.
* doc/posix-headers/dirent.texi: Update.
* modules/* (Depends-on): Update.
* modules/dirent: New file.

4 months agoRename module arpa_inet to arpa_inet-h.
Bruno Haible [Fri, 27 Dec 2024 22:11:34 +0000 (23:11 +0100)]
Rename module arpa_inet to arpa_inet-h.

* modules/arpa_inet-h: Renamed from modules/arpa_inet.
* modules/arpa_inet-h-tests: Renamed from modules/arpa_inet-tests.
* modules/arpa_inet-h-c++-tests: Renamed from
modules/arpa_inet-c++-tests.
* tests/test-arpa_inet-h.c: Renamed from tests/test-arpa_inet.c.
* tests/test-arpa_inet-h-c++.cc: Renamed from
tests/test-arpa_inet-c++.cc.
* doc/posix-headers/arpa_inet.texi: Update.
* modules/* (Depends-on): Update.
* modules/arpa_inet: New file.

4 months agogit-version-gen: Support git-archive tarballs.
Simon Josefsson [Fri, 27 Dec 2024 13:01:18 +0000 (14:01 +0100)]
git-version-gen: Support git-archive tarballs.

* build-aux/git-version-gen: Use .tarball-version-git as final guess.

4 months agogit-version-gen: Support git-archive tarballs.
Simon Josefsson [Fri, 27 Dec 2024 09:44:16 +0000 (10:44 +0100)]
git-version-gen: Support git-archive tarballs.

* build-aux/git-version-gen: Use .tarball-version-git as final guess.

4 months agoDocument the ieee754-h module better.
Bruno Haible [Fri, 27 Dec 2024 09:58:12 +0000 (10:58 +0100)]
Document the ieee754-h module better.

* doc/glibc-headers/ieee754.texi: Mention the module ieee754-h. Give an
example of a platform without IEEE floating-point numbers.

4 months agoDocument the libunistring modules.
Bruno Haible [Fri, 27 Dec 2024 09:47:42 +0000 (10:47 +0100)]
Document the libunistring modules.

* doc/libunistring.texi: New file.
* doc/gnulib.texi (Particular Modules): Include it.

4 months agodoc: Improve an external reference.
Bruno Haible [Fri, 27 Dec 2024 09:46:26 +0000 (10:46 +0100)]
doc: Improve an external reference.

* doc/zprintf.texi: For an external reference, use @url when not
producing an info file.

4 months agogitlog-to-changelog: Handle srcdir!=builddir builds.
Simon Josefsson [Fri, 27 Dec 2024 09:18:24 +0000 (10:18 +0100)]
gitlog-to-changelog: Handle srcdir!=builddir builds.

* doc/gitlog-to-changelog.texi (dist-hook): Use --srcdir.

4 months agogitlog-to-changelog: Handle srcdir!=builddir builds.
Simon Josefsson [Thu, 26 Dec 2024 23:33:36 +0000 (00:33 +0100)]
gitlog-to-changelog: Handle srcdir!=builddir builds.

* doc/gitlog-to-changelog.texi (dist-hook): Use --srcdir.

4 months agodoc: Document the *-ieee modules.
Bruno Haible [Thu, 26 Dec 2024 06:21:51 +0000 (07:21 +0100)]
doc: Document the *-ieee modules.

* doc/posix-functions/cbrt.texi: Mention the cbrt-ieee module.
* doc/posix-functions/cbrtf.texi: Mention the cbrtf-ieee module.
* doc/posix-functions/exp.texi: Mention the exp-ieee module.
* doc/posix-functions/exp2.texi: Mention the exp2-ieee module.
* doc/posix-functions/exp2f.texi: Mention the exp2f-ieee module.
* doc/posix-functions/expf.texi: Mention the expf-ieee module.
* doc/posix-functions/expl.texi: Mention the expl-ieee module.
* doc/posix-functions/expm1l.texi: Mention the expm1l-ieee module.
* doc/posix-functions/fabs.texi: Mention the fabs-ieee module.
* doc/posix-functions/fabsf.texi: Mention the fabsf-ieee module.
* doc/posix-functions/fabsl.texi: Mention the fabsl-ieee module.
* doc/posix-functions/fma.texi: Mention the fma-ieee module.
* doc/posix-functions/fmaf.texi: Mention the fmaf-ieee module.
* doc/posix-functions/fmal.texi: Mention the fmal-ieee module.
* doc/posix-functions/frexp.texi: Mention the frexp-ieee module.
* doc/posix-functions/frexpf.texi: Mention the frexpf-ieee module.
* doc/posix-functions/frexpl.texi: Mention the frexpl-ieee module.
* doc/posix-functions/ldexp.texi: Mention the ldexp-ieee module.
* doc/posix-functions/ldexpf.texi: Mention the ldexpf-ieee module.
* doc/posix-functions/ldexpl.texi: Mention the ldexpl-ieee module.
* doc/posix-functions/log10l.texi: Mention the log10l-ieee module.
* doc/posix-functions/log2l.texi: Mention the log2l-ieee module.
* doc/posix-functions/logb.texi: Mention the logb-ieee module.
* doc/posix-functions/logbf.texi: Mention the logbf-ieee module.
* doc/posix-functions/logbl.texi: Mention the logbl-ieee module.
* doc/posix-functions/logl.texi: Mention the logl-ieee module.
* doc/posix-functions/rint.texi: Mention the rint-ieee module.
* doc/posix-functions/rintf.texi: Mention the rintf-ieee module.
* doc/posix-functions/rintl.texi: Mention the rintl-ieee module.
* doc/posix-functions/sqrt.texi: Mention the sqrt-ieee module.
* doc/posix-functions/sqrtf.texi: Mention the sqrtf-ieee module.
* doc/posix-functions/sqrtl.texi: Mention the sqrtl-ieee module.

4 months agoDocument the *zprintf functions.
Bruno Haible [Wed, 25 Dec 2024 20:17:50 +0000 (21:17 +0100)]
Document the *zprintf functions.

* doc/zprintf.texi: New file.
* doc/gnulib.texi (Particular Modules): Include it.

4 months agoxprintf, xprintf-posix, xprintf-gnu: Use *zprintf.
Bruno Haible [Wed, 25 Dec 2024 18:13:53 +0000 (19:13 +0100)]
xprintf, xprintf-posix, xprintf-gnu: Use *zprintf.

* lib/xprintf.h (xprintf, xvprintf, xfprintf, xvfprintf): Change return
type to off64_t. Move documentation from xprintf.c to here. Mention
EOVERFLOW as another possible error unrelated to file I/O.
* lib/xprintf.c (xprintf): Change return type to off64_t.
(xvprintf): Likewise. Use vzprintf.
(xfprintf): Change return type to off64_t.
(xvfprintf): Likewise. Use vfzprintf.
* modules/xprintf (Description): Mention also fprintf. Mention EOVERFLOW
as another possible error unrelated to file I/O.
(Depends-on): Add vzprintf, vfzprintf.
* modules/xprintf-posix (Description): Mention also fprintf. Mention
EOVERFLOW as another possible error unrelated to file I/O.
(Depends-on): Add vzprintf-posix, vfzprintf-posix. Remove vprintf-posix,
vfprintf-posix.
* modules/xprintf-gnu (Description): Mention also fprintf. Mention
EOVERFLOW as another possible error unrelated to file I/O.
(Depends-on): Add vzprintf-gnu, vfzprintf-gnu. Remove vprintf-gnu,
vfprintf-gnu.
* tests/test-xprintf-posix.c (RETTYPE): Change to off64_t.
* tests/test-xfprintf-posix.c (RETTYPE): Likewise.
* NEWS: Document the change.

4 months agostdlib: Improve change from 2024-12-23.
Bruno Haible [Wed, 25 Dec 2024 14:14:32 +0000 (15:14 +0100)]
stdlib: Improve change from 2024-12-23.

* m4/stdlib_h.m4 (gl_STDLIB_H): Improve indentation.

4 months agoaccess, euidaccess tests: Avoid test failure in Cygwin 3.5.5.
Bruno Haible [Wed, 25 Dec 2024 00:34:23 +0000 (01:34 +0100)]
access, euidaccess tests: Avoid test failure in Cygwin 3.5.5.

* tests/test-access.h [__CYGWIN__]: Include <grp.h>, <string.h>,
<unistd.h>.
(is_administrator): New function.
(is_root): New macro.
(test_access): Reenable F_OK test for non-administrators on Cygwin.
Disable X_OK test for administrators on Cygwin.

4 months agolocalename-unsafe: Improve the Windows UTF-8 environment support.
Bruno Haible [Tue, 24 Dec 2024 21:10:47 +0000 (22:10 +0100)]
localename-unsafe: Improve the Windows UTF-8 environment support.

Reported by Lasse Collin <lasse.collin@tukaani.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-12/msg00165.html>.

* lib/localename-unsafe.c (gl_locale_name_from_win32_LANGID): In locale
names with a modifier, insert the codeset part ".UTF-8" before the
modifier.

4 months agostdlib: support including stdlib.h from config.h
Paul Eggert [Tue, 24 Dec 2024 21:41:04 +0000 (13:41 -0800)]
stdlib: support including stdlib.h from config.h

Emacs <config.h> includes <stdlib.h> in some situations, causing
problems on macOS as described by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2024-12/msg00923.html
Although this usage is not recommended, it is easier to support
it for POSIX-required headers, than to fix Emacs.
* doc/extern-inline.texi (extern inline): Document the Emacs problem.
* lib/endian.c, lib/math.c, lib/stdbit.c, lib/stdlib.c:
* lib/sys_socket.c, lib/unistd.c, lib/wctype-h.c:
Define #define _GL_..._INLINE to _GL_EXTERN_INLINE
before including <config.h>, not merely before including
the .h file that defines the inline function.

4 months agosetlocale: Fix a buffer overflow check (mistake in yesterday's commit).
Bruno Haible [Tue, 24 Dec 2024 17:35:01 +0000 (18:35 +0100)]
setlocale: Fix a buffer overflow check (mistake in yesterday's commit).

* lib/setlocale.c (setlocale_unixlike): Update buffer overflow check.

4 months agodoc: Document mingw with MSVCRT vs. mingw with UCRT.
Bruno Haible [Tue, 24 Dec 2024 13:45:58 +0000 (14:45 +0100)]
doc: Document mingw with MSVCRT vs. mingw with UCRT.

* doc/posix-functions/btowc.texi: Add more details regarding mingw.
* doc/posix-functions/fopen.texi: Likewise.
* doc/posix-functions/mbrtowc.texi: Likewise.
* doc/posix-functions/mbsinit.texi: Likewise.
* doc/posix-functions/modf.texi: Likewise.
* doc/posix-functions/modff.texi: Likewise.
* doc/posix-functions/round.texi: Likewise.
* doc/posix-functions/roundf.texi: Likewise.
* doc/posix-functions/swprintf.texi: Likewise.
* doc/posix-functions/timespec_get.texi: Likewise.
* doc/posix-functions/wcrtomb.texi: Likewise.

4 months agowchar: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:23:45 +0000 (11:23 +0100)]
wchar: Support several gnulib-tool invocations better.

* lib/wchar.in.h (_GL_ALREADY_INCLUDING_WCHAR_H): Rename to a macro that
depends on GUARD_PREFIX.
(mbszero): Avoid duplicate definition.

4 months agothreads-h: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:22:40 +0000 (11:22 +0100)]
threads-h: Support several gnulib-tool invocations better.

* lib/threads.in.h (_GL_ALREADY_INCLUDING_THREADS_H): Rename to a macro
that depends on GUARD_PREFIX.
(struct thrd_with_exitcode): Avoid duplicate definition.

4 months agosys_socket: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:21:51 +0000 (11:21 +0100)]
sys_socket: Support several gnulib-tool invocations better.

* lib/sys_socket.in.h (_GL_ALREADY_INCLUDING_SYS_SOCKET_H): Rename to a
macro that depends on GUARD_PREFIX.
(struct msghdr): Avoid duplicate definition.

4 months agostring: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:20:52 +0000 (11:20 +0100)]
string: Support several gnulib-tool invocations better.

* lib/string.in.h (_GL_ALREADY_INCLUDING_STRING_H): Rename to a macro
that depends on GUARD_PREFIX.

4 months agostdio: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:19:49 +0000 (11:19 +0100)]
stdio: Support several gnulib-tool invocations better.

* lib/stdio.in.h: Test _GL_SKIP_GNULIB_STDIO_H.
(_GL_ALREADY_INCLUDING_STDIO_H): Rename to a macro that depends on
GUARD_PREFIX.
* lib/fopen.c: Set _GL_SKIP_GNULIB_STDIO_H instead of
_GL_ALREADY_INCLUDING_STDIO_H.
* lib/freopen.c: Likewise.

4 months agospawn: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:17:31 +0000 (11:17 +0100)]
spawn: Support several gnulib-tool invocations better.

* lib/spawn.in.h (_GL_ALREADY_INCLUDING_SPAWN_H): Rename to a macro that
depends on GUARD_PREFIX.

4 months agosignal-h: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:25:01 +0000 (11:25 +0100)]
signal-h: Support several gnulib-tool invocations better.

* lib/signal.in.h (_GL_ALREADY_INCLUDING_SIGNAL_H): Rename to a macro
that depends on GUARD_PREFIX.

4 months agopthread-h: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:16:25 +0000 (11:16 +0100)]
pthread-h: Support several gnulib-tool invocations better.

* lib/pthread.in.h (_GL_ALREADY_INCLUDING_PTHREAD_H): Rename to a macro
that depends on GUARD_PREFIX.

4 months agomalloc-h: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:15:25 +0000 (11:15 +0100)]
malloc-h: Support several gnulib-tool invocations better.

* lib/malloc.in.h (_GL_ALREADY_INCLUDING_MALLOC_H): Rename to a macro
that depends on GUARD_PREFIX.

4 months agolocale: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:14:20 +0000 (11:14 +0100)]
locale: Support several gnulib-tool invocations better.

* lib/locale.in.h (_GL_ALREADY_INCLUDING_LOCALE_H): Rename to a macro
that depends on GUARD_PREFIX.
(struct lconv): Avoid duplicate definition.

4 months agolimits-h: Support several gnulib-tool invocations better.
Bruno Haible [Tue, 24 Dec 2024 10:13:16 +0000 (11:13 +0100)]
limits-h: Support several gnulib-tool invocations better.

* lib/limits.in.h (_GL_ALREADY_INCLUDING_LIMITS_H): Rename to a macro
that depends on GUARD_PREFIX.

4 months agostdlib: fix MB_CUR_MAX on older Android
Paul Eggert [Mon, 23 Dec 2024 20:57:12 +0000 (12:57 -0800)]
stdlib: fix MB_CUR_MAX on older Android

Android NDK r16 MB_CUR_MAX doesn’t link when compiling C.
Problem found in GNU Emacs, which worked around it this way:
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=39a7e6b79fdeafc539a36f6831d922a2622cb679
... but this ran afoul of the recent Gnulib change that
added lib/stdlib.c.
* lib/stdlib.in.h (gl_MB_CUR_MAX): If @REPLACE_MB_CUR_MAX@
is positive, use its value directly.
* m4/stdlib_h.m4 (gl_STDLIB_H): Set REPLACE_MB_CUR_MAX to (-1)
if the Solaris bug, and to 4 if the Android bug.  Use AS_CASE
so that Emacs can navigate this code better.
* tests/test-stdlib.c (main): Check that MB_CUR_MAX compiles
and is nonzero.

4 months agostdlib: MB_CUR_MAX is type size_t
Paul Eggert [Mon, 23 Dec 2024 20:23:22 +0000 (12:23 -0800)]
stdlib: MB_CUR_MAX is type size_t

* lib/stdlib.in.h (gl_MB_CUR_MAX): Return size_t, not int,
to conform to POSIX.

4 months agombrtowc tests: Test in the UTF-8 environment on native Windows.
Bruno Haible [Mon, 23 Dec 2024 15:59:20 +0000 (16:59 +0100)]
mbrtowc tests: Test in the UTF-8 environment on native Windows.

* tests/test-mbrtowc-w32utf8.sh: New file.
* tests/test-mbrtowc-w32utf8.c: New file.
* modules/mbrtowc-tests (Files): Add these files and
m4/windows-rc.m4, tests/windows-utf8.rc, tests/windows-utf8.manifest.
(Depends-on): Add test-xfail.
(configure.ac): Invoke gl_WINDOWS_RC.
(Makefile.am): Arrange to compile test-mbrtowc-w32utf8 and run
test-mbrtowc-w32utf8.sh.

4 months agosetlocale tests: Test in the UTF-8 environment on native Windows.
Bruno Haible [Mon, 23 Dec 2024 15:58:53 +0000 (16:58 +0100)]
setlocale tests: Test in the UTF-8 environment on native Windows.

* tests/test-setlocale-w32utf8.sh: New file.
* tests/test-setlocale-w32utf8.c: New file.
* modules/setlocale-tests (Files): Add these files and
m4/windows-rc.m4, tests/windows-utf8.rc, tests/windows-utf8.manifest.
(Depends-on): Add test-xfail.
(configure.ac): Invoke gl_WINDOWS_RC.
(Makefile.am): Arrange to compile test-setlocale-w32utf8 and run
test-setlocale-w32utf8.sh.