]> git.ipfire.org Git - thirdparty/gnulib.git/log
thirdparty/gnulib.git
12 hours agofts: Pacify -Wuseless-cast warnings when GNULIB_FTS_DEBUG is defined. master
Collin Funk [Sun, 9 Aug 2026 18:19:23 +0000 (11:19 -0700)] 
fts: Pacify -Wuseless-cast warnings when GNULIB_FTS_DEBUG is defined.

* lib/fts.c (find_matching_ancestor): Pacify -Wuseless-cast via compound
literals.

17 hours agobootstrap: Fix error "client sha256; server sha1" seen by some users.
Bruno Haible [Sun, 9 Aug 2026 13:24:53 +0000 (15:24 +0200)] 
bootstrap: Fix error "client sha256; server sha1" seen by some users.

Reported by Seth McDonald <dev@sethm.id.au> in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-08/msg00149.html>.

* top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Force sha1 object
format in "git init" command.
* build-aux/bootstrap: Regenerated.

37 hours agomgetgroups: Prefer reallocarray to xalloc-oversized.
Collin Funk [Sat, 8 Aug 2026 02:36:00 +0000 (19:36 -0700)] 
mgetgroups: Prefer reallocarray to xalloc-oversized.

* lib/mgetgroups.c: Don't include xalloc-oversized.h.
(realloc_groupbuf): Remove function.
(mgetgroups): Use reallocarray instead of realloc_groupbuf.
* modules/mgetgroups (Depends-on): Add reallocarray. Remove
realloc-posix and xalloc-oversized.

37 hours agomgetgroups: Avoid an unlikely signed integer overflow on macOS.
Collin Funk [Sat, 8 Aug 2026 02:27:42 +0000 (19:27 -0700)] 
mgetgroups: Avoid an unlikely signed integer overflow on macOS.

Problem found by Coverity (CID 1638872).

* lib/mgetgroups.c: Include stdckdint.h.
(mgetgroups): Check for a signed integer overflow when increasing the
size of the array for reallocation.
* modules/mgetgroups (Depends-on): Add stdckdint-h.

40 hours agoverify: Fix single-argument static_assert with glibc in C89 & C99 modes
Lasse Collin [Sat, 8 Aug 2026 10:30:08 +0000 (13:30 +0300)] 
verify: Fix single-argument static_assert with glibc in C89 & C99 modes

* lib/verify.h: glibc's <sys/cdefs.h> may define _Static_assert
with two arguments when the compiler is in C89 or C99 mode.
Undefine it so that Gnulib's own version is used instead.
Reported by G. Branden Robinson in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-08/msg00125.html>.

Copyright-paperwork-exempt: Yes

40 hours agoverify: Add a comment about Clang on Mac OS 10.7.5
Lasse Collin [Sat, 8 Aug 2026 10:30:08 +0000 (13:30 +0300)] 
verify: Add a comment about Clang on Mac OS 10.7.5

* lib/verify.h: The existing comment says "clang 4+" but the #if
checks for 5 <= __clang_major__. The mismatch looked like a bug.
Add a comment based on the commit 0cda5beb7962 ("verify: port to
Mac OS 10.7.5") to explain why the condition checks for 5 <=.

Copyright-paperwork-exempt: Yes

2 days agoFix position of _GL_ATTRIBUTE_REPRODUCIBLE in last commit.
Bruno Haible [Fri, 7 Aug 2026 23:01:43 +0000 (01:01 +0200)] 
Fix position of _GL_ATTRIBUTE_REPRODUCIBLE in last commit.

Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-08/msg00136.html>.

* lib/gl_array_omap.c (gl_array_search, gl_array_search_atleast): Put
_GL_ATTRIBUTE_REPRODUCIBLE before 'static'.
* lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
* lib/gl_hash_map.c (gl_hash_search): Likewise.
* lib/gl_linkedhash_map.c (gl_linkedhash_search): Likewise.

2 days agoFix incorrect use of _GL_ATTRIBUTE_PURE.
Bruno Haible [Fri, 7 Aug 2026 22:09:48 +0000 (00:09 +0200)] 
Fix incorrect use of _GL_ATTRIBUTE_PURE.

Reported by Arsen Arsenović <arsen@aarsen.me> in
<https://lists.gnu.org/archive/html/bug-gettext/2026-08/msg00000.html>.

* lib/gl_array_omap.c (gl_array_search, gl_array_search_atleast): Use
attribute _GL_ATTRIBUTE_REPRODUCIBLE instead of attribute
_GL_ATTRIBUTE_PURE.
* lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
* lib/gl_hash_map.c (gl_hash_search): Likewise.
* lib/gl_linkedhash_map.c (gl_linkedhash_search): Likewise.
* lib/modechange.h (mode_adjust): Likewise.

2 days agoClarify that "pure" functions don't have out parameters.
Bruno Haible [Fri, 7 Aug 2026 22:04:54 +0000 (00:04 +0200)] 
Clarify that "pure" functions don't have out parameters.

* lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial,
aclv_nontrivial): Make the 'entries' parameter a const pointer.
* lib/acl-internal.c (acl_nontrivial, acl_ace_nontrivial,
aclv_nontrivial): Likewise.
* lib/dfa.c (state_separate_contexts): Make the 'd' parameter a const
pointer.
* lib/dirent.in.h (alphasort): Clarify prototype.
* lib/fpending.h (__fpending): Likewise.
* lib/freadable.h (freadable): Likewise.
* lib/freadahead.h (freadahead): Likewise.
* lib/freading.h (freading): Likewise.
* lib/fwritable.h (fwritable): Likewise.
* lib/fwriting.h (fwriting): Likewise.

3 days ago* m4/gnulib-common.m4: update comment to match code
Paul Eggert [Fri, 7 Aug 2026 04:18:20 +0000 (23:18 -0500)] 
* m4/gnulib-common.m4: update comment to match code

5 days agoreadutmp: Add option to make use of wtmpdb.
Bruno Haible [Tue, 4 Aug 2026 15:03:56 +0000 (17:03 +0200)] 
readutmp: Add option to make use of wtmpdb.

* m4/wtmpdb.m4: New file.
* m4/readutmp.m4 (gl_READUTMP): Invoke gl_WTMPDB_CHOICE. Define
READUTMP_USE_WTMPDB. Take it into account for READUTMP_LIB.
* lib/readutmp.h (WTMPDB_FILE): New macro.
* lib/readutmp.c: Include <wtmpdb.h>.
(wtmpdb_time_to_timespec): New function.
(struct wtmpdb_locals): New type.
(wtmpdb_callback, read_utmp_from_wtmpdb): New functions.
(read_utmp): For WTMP_FILE, conditionally use read_utmp_from_wtmpdb.
* modules/readutmp (Files): Add m4/wtmpdb.m4.
(Depends-on): Add str_endswith.
* DEPENDENCIES: Mention libwtmpdb.

5 days agoreadutmp: Fix naming of configure option.
Bruno Haible [Tue, 4 Aug 2026 14:22:31 +0000 (16:22 +0200)] 
readutmp: Fix naming of configure option.

* m4/systemd.m4 (gl_SYSTEMD_CHOICE): Invoke AC_ARG_WITH. Mark
--enable-systemd as deprecated.

8 days agofree-posix tests: Avoid failure on Ubuntu 24.04 (regression 2026-07-28).
Bruno Haible [Sat, 1 Aug 2026 07:07:35 +0000 (09:07 +0200)] 
free-posix tests: Avoid failure on Ubuntu 24.04 (regression 2026-07-28).

* tests/test-free.c (main): Restore previous code for !__FILC__.

9 days agodoc: N3322 cautions
Paul Eggert [Sat, 1 Aug 2026 01:24:29 +0000 (18:24 -0700)] 
doc: N3322 cautions

* doc/gnulib-readme.texi (Other portability assumptions):
Add cautions about other parts of N3322.

9 days agolink, symlink: more errno portability issues
Paul Eggert [Fri, 31 Jul 2026 17:54:48 +0000 (10:54 -0700)] 
link, symlink: more errno portability issues

* doc/posix-functions/link.texi:
* doc/posix-functions/linkat.texi:
* doc/posix-functions/symlink.texi:
* doc/posix-functions/symlinkat.texi:
Document TZDB’s recent odyssey with hard and symlinks.  See:
https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/O5Q2I3GLZIF6GEFZ3MDWRZKG4ENPJVFQ/

9 days agostrndup: Fix configure test for "ibm-clang -O2".
Bruno Haible [Fri, 31 Jul 2026 08:43:47 +0000 (10:43 +0200)] 
strndup: Fix configure test for "ibm-clang -O2".

Reported by Lasse Collin <lasse.collin@tukaani.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-07/msg00221.html>.

* m4/strndup.m4 (gl_FUNC_STRNDUP): Do the strndup (NULL, 0) test
through a volatile function pointer.

10 days agoposix_spawn_faction_add{chdir,fchdir}: Fix checks on glibc-2.44.
Collin Funk [Sat, 25 Jul 2026 19:09:28 +0000 (12:09 -0700)] 
posix_spawn_faction_add{chdir,fchdir}: Fix checks on glibc-2.44.

Reported by Jason Montleon in
<https://bugzilla.redhat.com/show_bug.cgi?id=2502638>
and by Xi Ruoyao <xry111@xry111.site> in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-07/msg00164.html>.

* m4/posix_spawn_faction_addchdir.m4
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR): Use AC_CHECK_DECLS instead
of AC_CHECK_FUNCS_ONCE.
* m4/posix_spawn_faction_addfchdir.m4
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR): Use AC_CHECK_DECLS instead
of AC_CHECK_FUNCS_ONCE.

10 days agogettext: Update to to gettext 1.0.
Bruno Haible [Thu, 30 Jul 2026 10:39:16 +0000 (12:39 +0200)] 
gettext: Update to to gettext 1.0.

* m4/po.m4: Update from gettext 1.0.
* modules/gettext (configure.ac): Bump gettext version requirement.

11 days agolocalename: add GNULIB_LOCALENAME_SINGLE_THREAD
Paul Eggert [Wed, 29 Jul 2026 22:19:28 +0000 (15:19 -0700)] 
localename: add GNULIB_LOCALENAME_SINGLE_THREAD

If GNULIB_LOCALENAME_SINGLE_THREAD is defined,
omit locks in localename and getlocalename-related functions.
Useful for GNU grep; see <https://bugs.gnu.org/81515>.
* lib/getlocalename_l-unsafe.c, lib/getlocalename_l.c:
* lib/localename.c (USE_ISOC_AND_POSIX_THREADS, USE_ISOC_THREADS)
(USE_POSIX_THREADS, USE_WINDOWS_THREADS)
[GNULIB_LOCALENAME_SINGLE_THREAD]: Undef.

11 days agotests: Avoid some more runtime errors with Fil-C.
Bruno Haible [Wed, 29 Jul 2026 20:24:14 +0000 (22:24 +0200)] 
tests: Avoid some more runtime errors with Fil-C.

* tests/test-vma-prot.c (main): Skip assertions that fail on Fil-C.

12 days agotests: Avoid some more runtime errors with Fil-C.
Bruno Haible [Tue, 28 Jul 2026 20:37:55 +0000 (22:37 +0200)] 
tests: Avoid some more runtime errors with Fil-C.

* tests/test-c32ispunct.c (main): Skip a test case that fails on Fil-C.
* tests/test-free.c (main): Avoid converting from a pointer to uintptr_t
and back.
* tests/test-explicit_bzero.c (test_heap): Skip this test on Fil-C.
* tests/test-memset_explicit.c (test_heap): Likewise.
* tests/test-sigsegv-catch-segv1.c: Skip the entire test on Fil-C, since
it relies on converting an uintptr_t value to a pointer.
* tests/test-sigsegv-catch-segv2.c: Likewise.

12 days agogcd: Fix comments.
Bruno Haible [Tue, 28 Jul 2026 11:04:07 +0000 (13:04 +0200)] 
gcd: Fix comments.

* lib/gcd.c (GCD): Fix comments.

12 days ago* lib/gcd.c (GCD): Fix comment about c.
Paul Eggert [Tue, 28 Jul 2026 07:36:54 +0000 (00:36 -0700)] 
* lib/gcd.c (GCD): Fix comment about c.

13 days agomalloc: port to current -m32 AddressSanitizer
Paul Eggert [Mon, 27 Jul 2026 20:31:35 +0000 (13:31 -0700)] 
malloc: port to current -m32 AddressSanitizer

Also, port better to non-glibc, and in documentation update the
list of platforms needing a fix.  This includes 32-bit platforms
using AddressSanitizer, unfortunately.
* m4/malloc.m4 (gl_CHECK_MALLOC_PTRDIFF): Invoke gl_MUSL_LIBC.
musl is safe, as is FreeBSD 11+, NetBSD 8+, OpenBSD 5.6+, AIX,
Microsoft Windows.  However, the AddressSanitizer is unsafe.

2 weeks ago[v]szprintf: Improve port to Fil-C.
Bruno Haible [Sun, 26 Jul 2026 23:45:50 +0000 (01:45 +0200)] 
[v]szprintf: Improve port to Fil-C.

Suggested by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-07/msg00181.html>.

* lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on Fil-C.
* lib/szprintf.c (szprintf): Revert last change.
* lib/vszprintf.c (vszprintf): Likewise.
* lib/unistdio/u-vsprintf.h (VSPRINTF): Likewise.

2 weeks agoPacify -fsanitize=address in rawmemchr, strchrnul also with clang < 22.
Bruno Haible [Sun, 26 Jul 2026 22:48:34 +0000 (00:48 +0200)] 
Pacify -fsanitize=address in rawmemchr, strchrnul also with clang < 22.

* lib/memchr.c (__has_feature): New macro.
(__memchr): Test the feature 'address_sanitizer'.
* lib/memchr2.c (__has_feature): New macro.
(memchr2): Test the feature 'address_sanitizer'.
* lib/rawmemchr.c (__has_feature): New macro.
(rawmemchr): Test the feature 'address_sanitizer'.
* lib/strchrnul.c (__has_feature): New macro.
(strchrnul): Test the feature 'address_sanitizer'.

2 weeks agodoc: Update for glibc 2.44.
Bruno Haible [Sun, 26 Jul 2026 20:49:13 +0000 (22:49 +0200)] 
doc: Update for glibc 2.44.

* doc/posix-headers/*.texi: Update.
* doc/posix-functions/*.texi: Likewise.

2 weeks agodoc: Update for glibc 2.43.
Bruno Haible [Sun, 26 Jul 2026 20:32:46 +0000 (22:32 +0200)] 
doc: Update for glibc 2.43.

* doc/glibc-functions/mseal.texi: New file.
* doc/gnulib.texi (Glibc sys/mman.h): Include it.
* doc/posix-headers/*.texi: Update.
* doc/posix-functions/*.texi: Likewise.

2 weeks agoPacify -fsanitize=address in rawmemchr, strchrnul
Paul Eggert [Sun, 26 Jul 2026 20:46:46 +0000 (13:46 -0700)] 
Pacify -fsanitize=address in rawmemchr, strchrnul

Problem reported by Lasse Collin in:
https://lists.gnu.org/r/bug-gnulib/2026-07/msg00174.html
* lib/memchr.c (__memchr), lib/memchr2.c (memchr2):
* lib/rawmemchr.c (rawmemchr), lib/strchrnul.c (strchrnul):
Omit the longword optimization if __SANITIZE_ADDRESS__.

2 weeks agoFix strict aliasing violations in memchr etc
Paul Eggert [Sun, 26 Jul 2026 18:49:42 +0000 (11:49 -0700)] 
Fix strict aliasing violations in memchr etc

Problem and fix reported by Lasse Collin in:
https://lists.gnu.org/r/bug-gnulib/2026-07/msg00172.html
* lib/memchr.c (__memchr), lib/memchr2.c (memchr2):
* lib/memrchr.c (__memrchr), lib/rawmemchr.c (rawmemchr):
* lib/strchrnul.c (strchrnul):
Add _GL_ATTRIBUTE_MAY_ALIAS to the longword typedef.

2 weeks agosnprintf, vsnprintf: update doc
Paul Eggert [Sun, 26 Jul 2026 18:43:06 +0000 (11:43 -0700)] 
snprintf, vsnprintf: update doc

* doc/gnulib-intro.texi (Supported Platforms):
Also mention z/OS, Fil-C.  Not sure where they should be listed
but I gave it a guess.
* doc/posix-functions/snprintf.texi (snprintf):
* doc/posix-functions/vsnprintf.texi (vsnprintf):
Also mention Fil-C bug.

2 weeks agotests: Avoid some runtime errors with Fil-C.
Bruno Haible [Sat, 25 Jul 2026 22:42:05 +0000 (00:42 +0200)] 
tests: Avoid some runtime errors with Fil-C.

* tests/test-alignalloc.c (MAX_ALIGNMENT): New macro. Use it instead
of 16 MiB.
* tests/test-calloc-posix.c (main): Skip big allocations on Fil-C.
* tests/test-calloc-gnu.c (main): Likewise.
* tests/test-malloc-posix.c (main): Likewise.
* tests/test-malloc-gnu.c (main): Likewise.
* tests/test-realloc-posix.c (main): Likewise.
* tests/test-reallocarray.c (main): Likewise.
* tests/test-fprintf-posix2.c: Likewise.
* tests/test-printf-posix2.c: Likewise.

2 weeks agosigsegv: Port to Fil-C.
Bruno Haible [Sat, 25 Jul 2026 22:38:07 +0000 (00:38 +0200)] 
sigsegv: Port to Fil-C.

* lib/sigsegv.in.h (HAVE_STACK_OVERFLOW_RECOVERY): Don't define with Fil-C.

2 weeks agoszprintf: Port to Fil-C.
Bruno Haible [Sat, 25 Jul 2026 23:15:14 +0000 (01:15 +0200)] 
szprintf: Port to Fil-C.

* lib/szprintf.c (szprintf): Ensure lenbuf is at most INT_MAX.
* lib/vszprintf.c (vszprintf): Likewise.
* lib/unistdio/u-vsprintf.h (VSPRINTF): Ensure lenbuf is at most
INT_MAX / sizeof (DCHAR_T).

2 weeks agofpucw: Avoid runtime error with Fil-C.
Bruno Haible [Sat, 25 Jul 2026 16:02:37 +0000 (18:02 +0200)] 
fpucw: Avoid runtime error with Fil-C.

* lib/fpucw.h: Use no-op definitions with Fil-C.

2 weeks agothread-optim: Avoid runtime error with Fil-C.
Bruno Haible [Sat, 25 Jul 2026 14:53:43 +0000 (16:53 +0200)] 
thread-optim: Avoid runtime error with Fil-C.

* lib/thread-optim.h (_GL_MULTITHREADED_VIA_ELF): Don't define with Fil-C.

2 weeks agoisinf: Avoid compilation error with Fil-C.
Bruno Haible [Sat, 25 Jul 2026 14:16:30 +0000 (16:16 +0200)] 
isinf: Avoid compilation error with Fil-C.

* lib/math.in.h (isinf): In C++ mode, don't define as a macro.

2 weeks agogettext-h: conform to C on Solaris
Paul Eggert [Sat, 25 Jul 2026 16:05:21 +0000 (09:05 -0700)] 
gettext-h: conform to C on Solaris

On Solaris, gettext.h was sometimes converting char const * to char *
without a cast, which violates a constraint of the C standard.
GCC 3.4.3 complained about this.  Though the compile succeeded
it’s better to not violate constraints when it’s easy.
* lib/gettext.h (gettext, dgettext, dcgettext)
[__sun && __GNUC__ && !__clang__ && !__cplusplus && !ENABLE_NLS]:
Cast msgid to char * before returning.

2 weeks agoverify: port to Solaris 10 + gcc 3.4.3 + assert-h
Paul Eggert [Sat, 25 Jul 2026 14:52:01 +0000 (07:52 -0700)] 
verify: port to Solaris 10 + gcc 3.4.3 + assert-h

I ran into this problem when building GNU m4 (Savannah commit
7d5125b78d56dfa08b6bb4205428eb9962ad9244) on Solaris 10 sparc.
It has GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath),
which lacks _Static_assert.  GNU m4 both uses assert-h and
includes <verify.h>, and without this patch the latter mistakenly
#undefs the _Static_assert that the former defined.
* lib/verify.h (_Static_assert) [_GL_STATIC_ASSERT]: Do not undef.

2 weeks agoautoupdate
Karl Berry [Fri, 24 Jul 2026 14:39:12 +0000 (07:39 -0700)] 
autoupdate

2 weeks agoautoupdate
Karl Berry [Wed, 22 Jul 2026 14:48:12 +0000 (07:48 -0700)] 
autoupdate

2 weeks agogetopt-gnu: Clarify NetBSD status.
Bruno Haible [Tue, 21 Jul 2026 22:44:32 +0000 (00:44 +0200)] 
getopt-gnu: Clarify NetBSD status.

* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Add comments regarding NetBSD.

2 weeks agombiter-aux: Avoid gcc -Wcomment warning.
Bruno Haible [Tue, 21 Jul 2026 10:02:14 +0000 (12:02 +0200)] 
mbiter-aux: Avoid gcc -Wcomment warning.

Reported by G. Branden Robinson in
<https://lists.gnu.org/archive/html/bug-gnulib/2026-07/msg00127.html>.

* lib/mbiter-aux.c (mbiter_is_utf8): Tweak comment.

3 weeks agophysmem: On NetBSD, consider the available swap space.
Bruno Haible [Sun, 19 Jul 2026 15:18:31 +0000 (17:18 +0200)] 
physmem: On NetBSD, consider the available swap space.

* lib/physmem.c (physmem_claimable): Also consider the number of
available swap pages.

3 weeks agodiffseq: Restore gcc 17 -fanalyzer customization (regr. yesterday).
Bruno Haible [Sat, 18 Jul 2026 23:22:57 +0000 (01:22 +0200)] 
diffseq: Restore gcc 17 -fanalyzer customization (regr. yesterday).

* lib/diffseq.h: Don't assume that -Wanalyzer-use-of-uninitialized
is fixed in gcc 17.

3 weeks agodiffseq: gcc bug 80922 should be fixed now
Paul Eggert [Sat, 18 Jul 2026 03:59:32 +0000 (20:59 -0700)] 
diffseq: gcc bug 80922 should be fixed now

* lib/diffseq.h: Stop ignoring -Wmaybe-uninitialized and
-Wanalyzer-use-of-uninitialized-value in GCC 17 and later,
as the bug I reported to GCC seems to have been fixed.

3 weeks agogetopt: fix comment typo in previous patch
Paul Eggert [Fri, 17 Jul 2026 21:16:07 +0000 (14:16 -0700)] 
getopt: fix comment typo in previous patch

3 weeks agogetopt: port to NetBSD git head gcc -Wuseless cast
Paul Eggert [Fri, 17 Jul 2026 20:47:19 +0000 (13:47 -0700)] 
getopt: port to NetBSD git head gcc -Wuseless cast

Problem reported by Thomas Klausner in:
https://lists.gnu.org/r/emacs-devel/2026-07/msg00169.html
* lib/getopt-pfx-ext.h (__getopt_argv_const_is_empty): New macro,
defined to 1 when we define __getopt_argv_const to empty.
* lib/getopt1.c (ARGV_CAST): New macro.
(getopt_long, getopt_long_only): Use it.

3 weeks agogendocs: output human-readable file sizes
Paul Eggert [Fri, 17 Jul 2026 17:50:24 +0000 (10:50 -0700)] 
gendocs: output human-readable file sizes

* build-aux/gendocs.sh (calcsize): Output human-readable file
size, rather than always size in KiB mislabled as "K bytes".
But fall back on a plain byte count if GNU du is not in use.
(time-stamp-time-zone): Now "UTC0" so scriptversion does not decrease.
* doc/gendocs_template, doc/gendocs_template_min:
Don’t assume sizes are in KiB (the old values were mislabeled anyway).
Be more consistent about file type labels.

3 weeks agogendocs: correct the calculation of file sizes.
James Youngman [Fri, 17 Jul 2026 11:55:29 +0000 (12:55 +0100)] 
gendocs: correct the calculation of file sizes.

* build-aux/gendocs.sh (calcsize): do not assume "ls -sk" tells us the
size of the file in KiB.  Calculate it from the file length instead.

3 weeks agophysmem: fix typo causing configure failure
Pádraig Brady [Thu, 16 Jul 2026 10:47:48 +0000 (11:47 +0100)] 
physmem: fix typo causing configure failure

* m4/physmem.m4: Add missing line continuation.

3 weeks agophysmem: allow physmem_claimable to return more than 4 GiB on NetBSD.
Collin Funk [Thu, 16 Jul 2026 03:13:02 +0000 (20:13 -0700)] 
physmem: allow physmem_claimable to return more than 4 GiB on NetBSD.

Problem reported by Bruno Haible in:
<https://lists.gnu.org/r/bug-gnulib/2026-07/msg00046.html>.

* m4/physmem.m4 (gl_PHYSMEM): Check for the presence of
uvm/uvm_extern.h.
* lib/physmem.c [HAVE_UVM_UVM_EXTERN_H]: Include uvm/uvm_extern.h.
(physmem_claimable) [HAVE_SYSCTL && VM_UVMEXP2]: Calculate the free
memory using a NetBSD-specific sysctl.

3 weeks agophysmem: Use countof.
Collin Funk [Thu, 16 Jul 2026 02:57:39 +0000 (19:57 -0700)] 
physmem: Use countof.

* modules/physmem (Depends-on): Add stdcountof-h.
* lib/physmem.c: Include stdcountof.h.
(ARRAY_SIZE): Remove macro.
(physmem_total, physmem_claimable): Use countof instead of ARRAY_SIZE.

3 weeks agophysmem: allow physmem_claimable to return more than 8 GiB on FreeBSD.
Collin Funk [Wed, 15 Jul 2026 03:31:54 +0000 (20:31 -0700)] 
physmem: allow physmem_claimable to return more than 8 GiB on FreeBSD.

Problem reported by Bruno Haible in:
<https://lists.gnu.org/r/bug-gnulib/2026-07/msg00046.html>.

* m4/physmem.m4 (gl_PHYSMEM): Check for the sysctlbyname function.
* lib/physmem.c (physmem_claimable) [HAVE_SYSCTLBYNAME && __FreeBSD__]:
Calculate of free memory from some FreeBSD-specific sysctl strings.

3 weeks agoFix test failures on FreeBSD 15.1.
Bruno Haible [Wed, 15 Jul 2026 14:56:28 +0000 (16:56 +0200)] 
Fix test failures on FreeBSD 15.1.

* tests/test-c32isalnum.c (main): On FreeBSD, disable tests that fail
without mmodule uchar-h-c23.
* tests/test-c32isalpha.c (main): Likewise.
* tests/test-c32islower.c (main): Likewise.
* tests/test-c32isupper.c (main): Likewise.
* tests/test-c32tolower.c (main): Likewise.
* tests/test-c32toupper.c (main): Likewise.

3 weeks agovasnwprintf-extra-tests: Refactor.
Bruno Haible [Tue, 14 Jul 2026 17:34:35 +0000 (19:34 +0200)] 
vasnwprintf-extra-tests: Refactor.

* tests/test-vasnwprintf-big2.c: Renamed from
tests/test-vasnwprintf-big.c.
* modules/vasnwprintf-extra-tests: Update.

3 weeks agovaszprintf-extra-tests: Refactor.
Bruno Haible [Tue, 14 Jul 2026 17:32:31 +0000 (19:32 +0200)] 
vaszprintf-extra-tests: Refactor.

* tests/test-vaszprintf-big1.c: Renamed from
tests/test-vaszprintf-big.c.
* modules/vaszprintf-extra-tests: Update.

3 weeks agovasprintf-extra-tests: Refactor.
Bruno Haible [Tue, 14 Jul 2026 17:30:55 +0000 (19:30 +0200)] 
vasprintf-extra-tests: Refactor.

* tests/test-vasprintf-big1.c: Renamed from tests/test-vasprintf-big.c.
* modules/vasprintf-extra-tests: Update.

3 weeks agovasnprintf-extra-tests: Refactor.
Bruno Haible [Tue, 14 Jul 2026 17:28:10 +0000 (19:28 +0200)] 
vasnprintf-extra-tests: Refactor.

* tests/test-vasnprintf-big1.c: New file, based on
tests/test-vasnprintf-big.c.
* tests/test-vasnprintf-big2.c: New file, based on
tests/test-vasnprintf-big.c.
* tests/test-vasnprintf-big.c: Remove file.
* modules/vasnprintf-extra-tests: Update to build two separate programs.

3 weeks agoobstack-zprintf-extra-tests: Refactor.
Bruno Haible [Tue, 14 Jul 2026 17:21:23 +0000 (19:21 +0200)] 
obstack-zprintf-extra-tests: Refactor.

* tests/test-obstack-zprintf-big2.c: Renamed from
tests/test-obstack-zprintf-big.c.
* modules/obstack-zprintf-extra-tests: Update.

3 weeks agovasnprintf-extra-tests: Fix test bug.
Bruno Haible [Tue, 14 Jul 2026 17:04:20 +0000 (19:04 +0200)] 
vasnprintf-extra-tests: Fix test bug.

* tests/test-vasnprintf-big.c (main): Properly NUL-terminate the second
string.

3 weeks agovasnprintf, vasnwprintf: Revisit THOUSEP_MAXLEN.
Bruno Haible [Tue, 14 Jul 2026 10:17:24 +0000 (12:17 +0200)] 
vasnprintf, vasnwprintf: Revisit THOUSEP_MAXLEN.

* lib/vasnprintf.c (THOUSEP_MAXLEN): Add comment.
(VASNPRINTF): Don't use THOUSEP_MAXLEN here.

3 weeks agovasnwprintf: Fix test failure on NetBSD.
Bruno Haible [Mon, 13 Jul 2026 23:11:27 +0000 (01:11 +0200)] 
vasnwprintf: Fix test failure on NetBSD.

* lib/vasnprintf.c (THOUSEP_MAXLEN): Correct value.

3 weeks agovaszprintf-extra-tests: New module.
Bruno Haible [Mon, 13 Jul 2026 21:06:33 +0000 (23:06 +0200)] 
vaszprintf-extra-tests: New module.

* tests/test-vaszprintf-big.c: New file, extracted from
tests/test-vaszprintf-posix.c.
* tests/test-vaszprintf-posix.c (test_function): Revert last change.
* modules/vaszprintf-extra-tests: New file.
* modules/vaszprintf-tests: New file.

3 weeks agovasprintf-extra-tests: New module.
Bruno Haible [Mon, 13 Jul 2026 20:50:31 +0000 (22:50 +0200)] 
vasprintf-extra-tests: New module.

* tests/test-vasprintf-big.c: New file, extracted from
tests/test-vasprintf-posix.c.
* tests/test-vasprintf-posix.c (test_function): Revert last change.
* modules/vasprintf-extra-tests: New file.
* modules/vasprintf-tests (Depends-on): Add vasprintf-extra-tests.

3 weeks agovasnprintf-extra-tests: Move new expensive test to here.
Bruno Haible [Mon, 13 Jul 2026 20:27:16 +0000 (22:27 +0200)] 
vasnprintf-extra-tests: Move new expensive test to here.

* tests/test-vasnprintf-big.c (main): Move INT_MAX test case to here.
* tests/test-vasnprintf-posix.c (test_function): Revert last change.

3 weeks agovasnprintf: Fix compilation error on FreeBSD, OpenBSD (regr. today).
Bruno Haible [Mon, 13 Jul 2026 18:12:54 +0000 (20:12 +0200)] 
vasnprintf: Fix compilation error on FreeBSD, OpenBSD (regr. today).

* lib/vasnprintf.c (THOUSEP_MAXLEN): Define always.

3 weeks agovasnprintf: Fix several test failures on NetBSD (regr. 2026-07-06).
Bruno Haible [Mon, 13 Jul 2026 16:08:21 +0000 (18:08 +0200)] 
vasnprintf: Fix several test failures on NetBSD (regr. 2026-07-06).

* lib/vasnprintf.c (USE_SNPRINTF): Don't enable on NetBSD.
* doc/posix-functions/snprintf.texi: Update regarding NetBSD.
* doc/posix-functions/vsnprintf.texi: Likewise.

3 weeks agovasnprintf: Fix test failure on Solaris 11 OmniOS (regr. 2026-07-06).
Bruno Haible [Mon, 13 Jul 2026 16:04:47 +0000 (18:04 +0200)] 
vasnprintf: Fix test failure on Solaris 11 OmniOS (regr. 2026-07-06).

* lib/vasnprintf.c (THOUSEP_MAXLEN): New macro.
(MAX_ROOM_NEEDED, VASNPRINTF): Use it for the estimate for FLAG_GROUP.

3 weeks agovasnprintf: Fix compilation error on MSVC (regression 2026-07-06).
Bruno Haible [Mon, 13 Jul 2026 13:32:05 +0000 (15:32 +0200)] 
vasnprintf: Fix compilation error on MSVC (regression 2026-07-06).

* lib/vasnprintf.c (USE_SNPRINTF): Fix condition.
(VASNPRINTF): Avoid declaring multiple variables in one declaration.

4 weeks agoRemove unnecessary include after 2026-06-26 change.
Bruno Haible [Sun, 12 Jul 2026 20:18:44 +0000 (22:18 +0200)] 
Remove unnecessary include after 2026-06-26 change.

* lib/struniq.h: Update comment.
* lib/getlocalename_l-unsafe.c: Don't include <limits.h>.
* lib/getlocalename_l.c: Likewise.
* lib/hashcode-mem.c: Likewise.
* lib/hashcode-string2.c: Likewise.
* lib/hashkey-string.c: Likewise.
* lib/localename.c: Likewise.
* lib/mem-hash-map.c: Likewise.
* tests/test-array_map.c: Likewise.
* tests/test-avltreehash_list.c: Likewise.
* tests/test-hash_map.c: Likewise.
* tests/test-linkedhash_list.c: Likewise.
* tests/test-linkedhash_map.c: Likewise.
* tests/test-rbtreehash_list.c: Likewise.

4 weeks agomaintainer-makefile: Fix false syntax-check failure when using inttostr.
Collin Funk [Sun, 12 Jul 2026 17:32:11 +0000 (10:32 -0700)] 
maintainer-makefile: Fix false syntax-check failure when using inttostr.

* top/maint.mk (sc_prohibit_inttostr_without_use): Adjust the regular
expression to also match inttostr.

4 weeks agodoc: Fix typo.
Bruno Haible [Sun, 12 Jul 2026 16:42:34 +0000 (18:42 +0200)] 
doc: Fix typo.

* doc/posix-functions/readlinkat.texi: Fix typo in 2026-06-07 commit.

4 weeks agoautoupdate
Karl Berry [Sun, 12 Jul 2026 13:31:29 +0000 (06:31 -0700)] 
autoupdate

4 weeks agofree-posix: Fix bogus -Wmismatched-dealloc warnings (regr. 2026-05-30).
Bruno Haible [Wed, 8 Jul 2026 21:08:12 +0000 (23:08 +0200)] 
free-posix: Fix bogus -Wmismatched-dealloc warnings (regr. 2026-05-30).

* modules/free-posix (Depends-on): Add back wchar-h.

4 weeks agopthread_sigmask: Avoid compilation error on mingw with gcc >= 14.
Bruno Haible [Wed, 8 Jul 2026 11:42:23 +0000 (13:42 +0200)] 
pthread_sigmask: Avoid compilation error on mingw with gcc >= 14.

* lib/signal.in.h (pthread_sigmask): Revert 2018-01-04 change, now
unnecessary due to 2026-04-10 change.

4 weeks agomanywarnings: Fix for compilers that are named '$host-gcc', part 2.
Bruno Haible [Wed, 8 Jul 2026 11:22:51 +0000 (13:22 +0200)] 
manywarnings: Fix for compilers that are named '$host-gcc', part 2.

* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Apply the fix for
-Wuseless-cast and -Wzero-as-null-pointer-constant also for GCC >= 10.

4 weeks agovasnprintf: fix ("%*d", INT_MAX, n)
Paul Eggert [Tue, 7 Jul 2026 03:35:24 +0000 (20:35 -0700)] 
vasnprintf: fix ("%*d", INT_MAX, n)

I ran into this problem when doing stress testing with GNU m4.
The problem is that ("%*d", INT_MAX, n) fails because the code
refuses to create a buffer of size INT_MAX + 1u,
due to problems when dealing with older nonconforming snprintf.
The simplest fix was to use snprintf only if it handles
sizes like INT_MAX + 1u, and to fall back on sprintf otherwise.
Nowadays I think snprintf should work on most practical targets.
Assuming this patch works out, perhaps we could simplify
lib/vasnprintf.c to ease further maintenance,
as nowadays I hope we can assume both HAVE_SNPRINTF_RETVAL_C99 and
HAVE_SNPRINTF_TRUNCATION_C99 on platforms where USE_SNPRINTF.
* lib/vasnprintf.c: Include minmax.h.
(USE_SNPRINTF): Define to 1 only if glibc 2+, Android, musl,
the BSDs, macOS, or Microsoft UCRT.
(VASNPRINTF) [USE_SNPRINTF]:
Allow maxlen to be 1 greater than INT_MAX on 64-bit platforms.
Document the limit’s derivation by using named locals.
Do not attempt to work around bugs in pre-C99 implementations,
as USE_SNPRINTF is pickier now.
* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF):
Move gl_MUSL_LIBC call from here ...
(gl_PREREQ_VASNXPRINTF): ... to here.
* modules/c-vasnprintf, modules/unistdio/u16-u16-vasnprintf:
* modules/unistdio/u16-vasnprintf:
* modules/unistdio/u32-u32-vasnprintf:
* modules/unistdio/u32-vasnprintf:
* modules/unistdio/u8-u8-vasnprintf:
* modules/unistdio/u8-vasnprintf, modules/unistdio/ulc-vasnprintf:
* modules/vasnprintf, modules/vasnwprintf:
(Files): Add m4/musl.m4 if it isn’t there already.
(Depends-on): Add minmax.
* tests/test-vasnprintf-posix.c:
* tests/test-vasprintf-posix.c:
* tests/test-vaszprintf-posix.c:
Include <limits.h> and <errno.h> if needed.
(test_function): Test for the bug, if RUN_EXPENSIVE_TESTS=yes
in the environment; this the coreutils tradition and I
didn’t see any Gnulib tradition so I just used it.

5 weeks agoautoupdate
Karl Berry [Sun, 5 Jul 2026 15:34:38 +0000 (08:34 -0700)] 
autoupdate

5 weeks agodoc: Mention gnulib-202607 git bundle.
Simon Josefsson [Sat, 4 Jul 2026 11:16:16 +0000 (13:16 +0200)] 
doc: Mention gnulib-202607 git bundle.

* doc/gnulib-git-bundle.texi: Update for 20270604 release.

5 weeks agodoc: Update regarding stable branches.
Simon Josefsson [Sat, 4 Jul 2026 10:09:02 +0000 (12:09 +0200)] 
doc: Update regarding stable branches.

* doc/gnulib-readme.texi (Stable Branches): Mention new branch
stable-202607. Mention that stable-202507 is no longer updated.

5 weeks agobcp47: Relicense under LGPLv2+.
Bruno Haible [Fri, 3 Jul 2026 22:17:04 +0000 (00:17 +0200)] 
bcp47: Relicense under LGPLv2+.

* modules/bcp47 (License): Change to LGPLv2+.
* lib/bcp47.h: Update license notice.
* lib/bcp47.c: Likewise.

5 weeks agoFix last ChangeLog entry.
Bruno Haible [Tue, 30 Jun 2026 17:02:58 +0000 (19:02 +0200)] 
Fix last ChangeLog entry.

5 weeks agogetaddrinfo tests: Skip when DNS resolution is unavailable
Zineb Zaadoud [Tue, 30 Jun 2026 16:10:59 +0000 (18:10 +0200)] 
getaddrinfo tests: Skip when DNS resolution is unavailable

* tests/test-getaddrinfo.c (simple): Skip tests for unavailable DNS.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
6 weeks agoautoupdate
Karl Berry [Sun, 28 Jun 2026 14:43:16 +0000 (07:43 -0700)] 
autoupdate

6 weeks agoautoupdate
Karl Berry [Sat, 27 Jun 2026 14:27:11 +0000 (07:27 -0700)] 
autoupdate

6 weeks agostrfmon_l: be consistent about unsigned vs size_t
Paul Eggert [Fri, 26 Jun 2026 18:34:12 +0000 (11:34 -0700)] 
strfmon_l: be consistent about unsigned vs size_t

* lib/strfmon_l.c (directives_t, fmon_parse):
Count is merely unsigned int, not size_t.

6 weeks agohashcode-mem: don’t infloop if UINT_MAX < size
Paul Eggert [Fri, 26 Jun 2026 18:28:58 +0000 (11:28 -0700)] 
hashcode-mem: don’t infloop if UINT_MAX < size

* lib/hashcode-mem.c (hash_pjw_bare): Use size_t for loop index.

6 weeks agogen-uni-tables: prefer size_t for size loops
Paul Eggert [Fri, 26 Jun 2026 18:27:32 +0000 (11:27 -0700)] 
gen-uni-tables: prefer size_t for size loops

* lib/gen-uni-tables.c (output_predicate, output_category)
(output_combclass, output_bidi_category, output_decimal_digit)
(output_digit, output_numeric, output_mirror)
(output_indic_conjunct_break, output_joining_type)
(output_joining_group, output_scripts, output_ident_category)
(output_lbpea, output_wbp, output_gbp_table)
(output_decomposition, output_simple_mapping):
Use size_t for loop indexes when the upper bound is size_t.

6 weeks agocrypto/gc-pbkdf2: redo unsigned indexes
Paul Eggert [Fri, 26 Jun 2026 18:23:40 +0000 (11:23 -0700)] 
crypto/gc-pbkdf2: redo unsigned indexes

* lib/gc-pbkdf2.c (gc_pbkdf2_prf):
Don’t infloop if upper bound of loop is UINT_MAX.

6 weeks agobitset: possibly widen unsigned indexes
Paul Eggert [Fri, 26 Jun 2026 18:20:50 +0000 (11:20 -0700)] 
bitset: possibly widen unsigned indexes

* lib/bitset/vector.c (vbitset_empty_p, vbitset_not)
(vbitset_disjoint_p, vbitset_and, vbitset_and_or)
(vbitset_and_or_cmp, vbitset_andn_or, vbitset_andn_or_cmp)
(vbitset_or_and, vbitset_or_and_cmp):
In a for-loop, use an index type related to the upper bound’s type
rather than trusting ‘unsigned’ to be wide enough.

6 weeks agobitrotate: prefer C2y to bitrotate or by-hand
Paul Eggert [Fri, 26 Jun 2026 17:29:05 +0000 (10:29 -0700)] 
bitrotate: prefer C2y to bitrotate or by-hand

Deprecate the bitrotate module; it is superseded by C2y’s
stdc_rotate_left and stdc_rotate_right.  In several places, prefer
the C2y functions to doing things by hand.
* lib/arctwo.c (arctwo_encrypt, arctwo_decyrpt):
* lib/hash.c (raw_hasher):
* lib/hashcode-mem.c (hash_pjw_bare):
* lib/hashcode-string1.c (hash_string):
* lib/hashcode-string2.c (hash_pjw):
* lib/hashkey-string.c (hashkey_string_hash):
* lib/mem-hash-map.c (compute_hashval):
* lib/struniq.h (hash):
* tests/test-array_map.c (string_hash):
* tests/test-avltreehash_list.c (string_hash):
* tests/test-hash_map.c (string_hash):
* tests/test-linkedhash_list.c (string_hash):
* tests/test-linkedhash_map.c (string_hash):
* tests/test-rbtreehash_list.c (string_hash):
Use stdbit.h functions, instead of bitrotate.h functions or doing
things by hand.  Include stdbit.h to get them.  Don’t include
bitrotate.h, if it was being included.
* lib/getlocalename_l-unsafe.c, lib/getlocalename_l.c:
* lib/localename.c:
Include stdbit.h, since struniq.h now needs this.
* lib/hashcode-mem.c, lib/hashcode-string2.c, lib/hashkey-string.c:
* lib/struniq.h, tests/test-array_map.c, tests/test-avltreehash_list.c:
* tests/test-hash_map.c, tests/test-linkedhash_list.c:
* tests/test-linkedhash_map.c, tests/test-rbtreehash_list.c:
(SIZE_BITS): Remove; no longer needed.
* modules/array-map-tests, modules/avltreehash-list-tests:
* modules/crypto/arctwo, modules/getlocalename_l-simple:
* modules/getlocalename_l-unsafe, modules/hash:
* modules/hash-map-tests, modules/hashcode-mem:
* modules/hashcode-string1, modules/hashcode-string2:
* modules/hashkey-string, modules/linkedhash-list-tests:
* modules/linkedhash-map-tests, modules/localename:
* modules/mem-hash-map, modules/rbtree-list-tests:
Depend on stdc_rotate_left.
Don’t depend on bitrotate, if we were depending on it.
* modules/bitrotate: Deprecate.
* modules/crypto/arctwo: Depend on stdc_rotate_right.

6 weeks agomkdtemp: Provide declaration in <stdlib.h>.
Bruno Haible [Fri, 26 Jun 2026 16:02:41 +0000 (18:02 +0200)] 
mkdtemp: Provide declaration in <stdlib.h>.

* lib/stdlib.in.h: Include <unistd.h> when needed for mkdtemp.
* doc/posix-functions/mkdtemp.texi: Document macOS bug.

6 weeks agofnmatch: Fix syntax error in C++ mode on CentOS 7.
Bruno Haible [Fri, 26 Jun 2026 14:42:01 +0000 (16:42 +0200)] 
fnmatch: Fix syntax error in C++ mode on CentOS 7.

* lib/fnmatch.in.h (fnmatch): Provide declaration of overridden fnmatch
function, needed for _GL_CXXALIASWARN.

6 weeks agodoc: Add reference to NetBSD bug.
Bruno Haible [Thu, 25 Jun 2026 19:54:41 +0000 (21:54 +0200)] 
doc: Add reference to NetBSD bug.

* doc/posix-functions/mbrtowc.texi: Add reference.
* doc/posix-functions/mbrlen.texi: Likewise.

6 weeks agofstatat: port null file support to Alpine 3.24
Paul Eggert [Thu, 25 Jun 2026 15:27:36 +0000 (08:27 -0700)] 
fstatat: port null file support to Alpine 3.24

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2026-06/msg00093.html
* m4/fstatat.m4 (gl_FUNC_FSTATAT): When checking for
support for a null pointer file, check nonnegative directory
file descriptors as well as AT_FDCWD.

6 weeks agomanywarnings: Fix for compilers that are named '$host-gcc'.
Bruno Haible [Thu, 25 Jun 2026 13:45:24 +0000 (15:45 +0200)] 
manywarnings: Fix for compilers that are named '$host-gcc'.

* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Use only the first line
of `$CC --version`. Allow $CC to be of the form '$host-gcc'.

6 weeks agosetlocale: Update a comment.
Bruno Haible [Wed, 24 Jun 2026 17:21:15 +0000 (19:21 +0200)] 
setlocale: Update a comment.

* lib/setlocale.c: Mention that gl_locale_name_from_win32_LANGID is now
defined in localename-unsafe.c instead of localename.c.

6 weeks agocrypto/af_alg: Deprecate.
Collin Funk [Tue, 23 Jun 2026 01:03:40 +0000 (18:03 -0700)] 
crypto/af_alg: Deprecate.

* modules/crypto/af_alg (Status, Notice): New sections.
(configure.ac): Add a module indicator.
* lib/md5-stream.c (md5_stream): Only use the AF_ALG API if the module
indicator is defined.
* lib/sha1-stream.c (sha1_stream): Likewise.
* lib/sha256-stream.c (shaxxx_stream): Likewise.
* lib/sha3-stream.c (sha3_xxx_stream): Likewise.
* lib/sha512-stream.c (shaxxx_stream): Likewise.
* modules/crypto/md5 (Depends-on): Remove crypto/af_alg dependency.
* modules/crypto/sha1 (Depends-on): Likewise.
* modules/crypto/sha256 (Depends-on): Likewise.
* modules/crypto/sha3 (Depends-on): Likewise.
* modules/crypto/sha512 (Depends-on): Likewise.
* NEWS: Mention the deprecation.

7 weeks agogethrxtime: don’t use nanouptime, microuptime
Paul Eggert [Sat, 20 Jun 2026 17:45:10 +0000 (10:45 -0700)] 
gethrxtime: don’t use nanouptime, microuptime

* lib/gethrxtime.c (gethrxtime): On platforms with
CLOCK_MONOTONIC, try it first.  If it fails, just fall back on
CLOCK_REALTIME as that’s what current_timespec would do anyway.
On platforms lacking CLOCK_MONOTONIC, just use current_timespec.
* m4/gethrxtime.m4 (gl_GETHRXTIME): Don’t check for microuptime or
nanouptime.  They aren’t exposed to user space by BSD kernels now,
and it’s not clear that they ever were.