]> git.ipfire.org Git - thirdparty/gnulib.git/log
thirdparty/gnulib.git
2 months agoposix_spawn-internal: Fix use of vfork on SPARC and PowerPC platforms.
Bruno Haible [Fri, 7 Nov 2025 12:15:48 +0000 (13:15 +0100)] 
posix_spawn-internal: Fix use of vfork on SPARC and PowerPC platforms.

Reported by Pádraig Brady <P@draigBrady.com> in
<https://lists.gnu.org/archive/html/coreutils/2025-11/msg00052.html>.

* lib/spawni.c (__spawni): Revert last change. Do the stack allocations
with alloca() in the parent process, not in the child process.

2 months agodoc: add stdcountof.h to <> list
Paul Eggert [Fri, 7 Nov 2025 06:39:51 +0000 (22:39 -0800)] 
doc: add stdcountof.h to <> list

2 months agostdcountof-h: allow compound literal args
Paul Eggert [Fri, 7 Nov 2025 06:38:55 +0000 (22:38 -0800)] 
stdcountof-h: allow compound literal args

* lib/stdcountof.in.h (countof, _gl_verify_is_array):
Allow arguments that are compound literals, and thus
appear as multiple arguments to a C macro.
* tests/test-stdcountof-h.c: Test for this.

2 months agodoc: update MODULES.html.sh for deprecations
Paul Eggert [Fri, 7 Nov 2025 06:14:14 +0000 (22:14 -0800)] 
doc: update MODULES.html.sh for deprecations

* MODULES.html.sh: Update as per module deprecations,
mostly FOO -> FOO-h.

2 months agostdio-windows: fix <stdarg.h> include position
Paul Eggert [Thu, 6 Nov 2025 22:32:10 +0000 (14:32 -0800)] 
stdio-windows: fix <stdarg.h> include position

Problem reported by Andy Moreton in:
https://lists.gnu.org/r/bug-gnulib/2025-11/msg00059.html
* lib/stdio-consolesafe.c [__MINGW32__ && __USE_MINGW_ANSI_STDIO]:
Include <stdarg.h> even if HAVE_VASPRINTF

2 months agoposix_spawn-internal: Don't use vfork() on Solaris/SPARC.
Bruno Haible [Thu, 6 Nov 2025 19:41:07 +0000 (20:41 +0100)] 
posix_spawn-internal: Don't use vfork() on Solaris/SPARC.

Reported by Pádraig Brady <P@draigBrady.com> in
<https://lists.gnu.org/archive/html/coreutils/2025-11/msg00052.html>.

* lib/spawni.c (__spawni): Don't use vfork() on Solaris/SPARC.

2 months agostdio-windows: Add fallback code for very old mingw without vasprintf.
Bruno Haible [Thu, 6 Nov 2025 19:16:45 +0000 (20:16 +0100)] 
stdio-windows: Add fallback code for very old mingw without vasprintf.

Reported by Eli Zaretskii <eliz@gnu.org> in
<https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00194.html>.

* lib/stdio-consolesafe.c (vasprintf) [!HAVE_VASPRINTF]: New function.
* modules/stdio-windows (configure.ac): Test whether vasprintf exists.

2 months agostdio-windows: New module.
Bruno Haible [Thu, 6 Nov 2025 10:28:43 +0000 (11:28 +0100)] 
stdio-windows: New module.

* modules/stdio-windows: New file, based on modules/stdio-h.
* modules/stdio-h: Simplify accordingly.
(Depends-on): Add stdio-windows.

2 months agorandom_r tests: Update a comment.
Bruno Haible [Thu, 6 Nov 2025 10:17:22 +0000 (11:17 +0100)] 
random_r tests: Update a comment.

* tests/test-random_r.c: Update comment.

2 months agoacl-permissions: Don't use AC_REPLACE_FUNCS.
Bruno Haible [Thu, 6 Nov 2025 00:01:48 +0000 (01:01 +0100)] 
acl-permissions: Don't use AC_REPLACE_FUNCS.

* m4/acl.m4 (gl_FUNC_ACL): Set variable NEED_ACL_ENTRIES. Don't use
AC_REPLACE_FUNCS.
* modules/acl-permissions (configure.ac): Define
GL_COND_OBJ_ACL_ENTRIES.
(Makefile.am): Conditionally add acl_entries.c to lib_SOURCES.
* m4/README: Modernize.

2 months agoacl-permissions: Fix compilation error (regression 2025-09-10).
Bruno Haible [Wed, 5 Nov 2025 23:17:21 +0000 (00:17 +0100)] 
acl-permissions: Fix compilation error (regression 2025-09-10).

Reported by Eli Zaretskii <eliz@gnu.org> in
<https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00155.html>.

* lib/acl_entries.c (acl_entries): Restore a #if, mistakenly removed on
2025-09-10.

2 months agodoc: NULL + 0 updates for C23 and Clang 20
Paul Eggert [Wed, 5 Nov 2025 21:32:48 +0000 (13:32 -0800)] 
doc: NULL + 0 updates for C23 and Clang 20

2 months agonproc: Fix compilation error with Android API ≤ 20.
Collin Funk [Wed, 5 Nov 2025 03:56:18 +0000 (19:56 -0800)] 
nproc: Fix compilation error with Android API ≤ 20.

Reported by Po Lu in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-11/msg00027.html>.

* lib/nproc.c (cgroup2_mount): Don't assume we have setmntent if we have
mntent.h.
* m4/nproc.m4 (gl_PREREQ_NPROC): Check if setmntent is supported by the
current Android API.

2 months agotime_rz: tzfree now preserves errno
Paul Eggert [Tue, 4 Nov 2025 16:10:49 +0000 (08:10 -0800)] 
time_rz: tzfree now preserves errno

This is consistent with bleeding-edge TZDB and with POSIX 'free'.
* lib/time.in.h (tzfree) [!HAVE_TZALLOC]: Replace tzfree.
I suspect Android and NetBSD (the major implementations) don’t
always preserve errno, and it’s easier to replace tzfree everywhere.
* lib/time_rz.c: Always include errno.h.
(tzfree) [HAVE_TZALLOC]: New replacement function.
(set_tz): Do not bother to save and restore errno,
now that tzfree preserves errno.
* modules/time_rz (Depends-on): Add free-posix.
(configure.ac, Makefile.am): Always compile time_rz.c.

2 months agofchmodat: don’t depend on openat
Paul Eggert [Mon, 3 Nov 2025 05:05:04 +0000 (21:05 -0800)] 
fchmodat: don’t depend on openat

* modules/fchmodat (Depends-on): Remove openat.  Even though
fchmodat.c calls openat, that call is used only on platforms
that do not need anything that the openat module supplies.
Removing the unnecessary dependency simplifies GNU Emacs.

2 months agofts tests: Add a test for FTS_MOUNT.
Collin Funk [Sat, 25 Oct 2025 03:58:02 +0000 (20:58 -0700)] 
fts tests: Add a test for FTS_MOUNT.

* modules/fts-tests (Files): Add tests/macros.h.
* tests/test-fts.c: Include macros.h.
(test_fts_mount): New function.
(main): Call test_fts_mount.

2 months agofts: Introduce the FTS_MOUNT flag.
Lukáš Zaoral [Thu, 23 Oct 2025 07:16:52 +0000 (09:16 +0200)] 
fts: Introduce the FTS_MOUNT flag.

This mimics behaviour of the FTW_MOUNT flag described in nftw(3) which
implements the behaviour of find(1) -mount primary standardized by
POSIX.1-2024.

* lib/fts.in.h (FTS_MOUNT): New flag.
(FTS_OPTIONMASK): Adjust.
(FTS_NAMEONLY): Adjust.
(FTS_STOP): Adjust.
* lib/fts.c (fts_read): Implement FTS_MOUNT.
(fts_build): Do not skip stat(2) when FTS_MOUNT as set.

3 months agodoc: mcel: give more detail on error interface
Pádraig Brady [Sat, 18 Oct 2025 20:47:52 +0000 (21:47 +0100)] 
doc: mcel: give more detail on error interface

* lib/mcel.h: Mention that errors may be given on
some systems even with the "C" locale, as mcel
has explicitly disabled the workaround for:
https://sourceware.org/PR29511
Also state that len is set to 1 on any error.

3 months agonstrftime: do not return PTRDIFF_MAX
Paul Eggert [Sun, 2 Nov 2025 00:45:12 +0000 (18:45 -0600)] 
nstrftime: do not return PTRDIFF_MAX

Previously, nstrftime (NULL, SIZE_MAX, ...) could return
PTRDIFF_MAX, which would cause problems in the common case
where the caller adds 1 to the result in order to allocate.
To avoid this, arrange for nstrftime to return at most PTRDIFF_MAX - 1.
* lib/strftime.c (__strftime_internal) [FAILURE && !FPRINTFTIME]:
Silently ceiling MAXSIZE to PTRDIFF_MAX.

3 months agonstrftime: fix very-unlikely integer overflow issues
Paul Eggert [Sat, 1 Nov 2025 20:38:13 +0000 (14:38 -0600)] 
nstrftime: fix very-unlikely integer overflow issues

* lib/strftime.c (SBYTE_COUNT_MAX): Remove.
(incr_overflow): New macro.
(width_add): Use it.
(__strftime_internal): Omit no-longer-needed local.
Fail If the width overflows rather than substituting
SBYTE_COUNT_MAX, as the latter approach is unreliable.

3 months agonstrftime: don’t assume <time.h> defines ptrdiff_t
Paul Eggert [Sat, 1 Nov 2025 17:02:53 +0000 (11:02 -0600)] 
nstrftime: don’t assume <time.h> defines ptrdiff_t

* lib/strftime.h: Include <stddef.h>

3 months agonstrftime: do not preserve errno on success
Paul Eggert [Sat, 1 Nov 2025 16:54:55 +0000 (10:54 -0600)] 
nstrftime: do not preserve errno on success

* NEWS: Mention this, and coalesce recent changes for the
benefit of future readers.
* lib/strftime.c (__strftime_internal):
Preserve errno only if FAILURE == 0,
for consistency with other functions returning -1 on failure.

3 months agonstrftime: parenthesize macro body
Paul Eggert [Sat, 1 Nov 2025 16:24:11 +0000 (10:24 -0600)] 
nstrftime: parenthesize macro body

3 months agoopenat2 tests: Avoid test failure on native Windows.
Bruno Haible [Sat, 1 Nov 2025 13:17:10 +0000 (14:17 +0100)] 
openat2 tests: Avoid test failure on native Windows.

* tests/test-openat2.c (do_prepare_symlinks): New function, extracted
from do_prepare.
(main): Invoke it before do_test_resolve, do_test_basic. Disable these
tests on native Windows.

3 months agoopenat2: Fix invalid memory access on Cygwin.
Bruno Haible [Sat, 1 Nov 2025 12:37:35 +0000 (13:37 +0100)] 
openat2: Fix invalid memory access on Cygwin.

* lib/openat2.c (do_openat2): Don't use an expression with side effects
as argument of ISSLASH.

3 months agoopenat2 tests: Avoid gratuitous test failure when debugging.
Bruno Haible [Sat, 1 Nov 2025 11:47:38 +0000 (12:47 +0100)] 
openat2 tests: Avoid gratuitous test failure when debugging.

* tests/test-openat2.c: Include ignore-value.h.
(do_prepare): Remove left-overs on disk.
* modules/openat2-tests (Depends-on): Add ignore-value.

3 months agofprintftime: Return -1 on output error.
Bruno Haible [Sat, 1 Nov 2025 07:58:08 +0000 (08:58 +0100)] 
fprintftime: Return -1 on output error.

* lib/strftime.c (FPUTC): On failure, return FAILURE, not EOF.
(width_cpy) [FPRINTFTIME]: Write -1 as FAILURE, for consistency.

3 months agofprintftime: return negative on output error
Paul Eggert [Sat, 1 Nov 2025 04:22:50 +0000 (22:22 -0600)] 
fprintftime: return negative on output error

* lib/strftime.c (FPUTC) [FPRINTFTIME]:
New macro.  All uses of fputc changed to FPUTC.
(width_cpy) [FPRINTFTIME]: Do not ignore fwrite failure.
(fwrite_lowcase, fwrite_uppcase) [FPRINTFTIME]:
Remove.  All uses replaced with inline code.

3 months agofprintftime: omit unnecessary errno restore
Paul Eggert [Sat, 1 Nov 2025 04:10:58 +0000 (22:10 -0600)] 
fprintftime: omit unnecessary errno restore

* lib/strftime.c (__strftime_internal) [FPRINTFTIME]:
Do not restore errno if there is no error,
as the API does not promise this.

3 months agoposix_spawn_file_actions_addclose: Ignore test failure on NetBSD 10.0.
Bruno Haible [Fri, 31 Oct 2025 22:54:37 +0000 (23:54 +0100)] 
posix_spawn_file_actions_addclose: Ignore test failure on NetBSD 10.0.

Based on comments by Collin Funk and Grisha Levit.

* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): Revert
last change.
* tests/test-posix_spawn_file_actions_addclose.c (main): Treat NetBSD
like musl and Cygwin.
* doc/posix-functions/posix_spawn_file_actions_addclose.texi: Document
the large fd bug as "not fixed".

3 months agonstrftime, fprintftime: Return -1, not 0, in case of failure.
Bruno Haible [Fri, 31 Oct 2025 22:36:27 +0000 (23:36 +0100)] 
nstrftime, fprintftime: Return -1, not 0, in case of failure.

* lib/strftime.h (nstrftime, c_nstrftime): Change return type to
ptrdiff_t.
* lib/strftime.c (retval_t): New type.
(FAILURE): New macro.
(width_add): Return FAILURE instead of 0.
(my_strftime): Change return type to retval_t.
(__strftime_internal): Likewise. Change some local variables to
retval_t. Handle failure of recursive __strftime_internal invocation.
Return FAILURE instead of 0.
* lib/fprintftime.h (fprintftime): Update specification.
* tests/test-nstrftime.h (FUNC_CHECKED): Change return type to
ptrdiff_t.
(posixtm_test, tzalloc_test, quarter_test, errno_test, locales_test):
Update.
* tests/test-nstrftime-DE.c (main): Update.
* tests/test-nstrftime-ET.c (main): Likewise.
* tests/test-nstrftime-IR.c (main): Likewise.
* tests/test-nstrftime-TH.c (main): Likewise.
* tests/test-nstrftime-w32utf8.c (main): Likewise.
* NEWS: Mention the changes.

3 months agoFix support for Mac OS X/PowerPC G5.
Bruno Haible [Fri, 31 Oct 2025 14:01:55 +0000 (15:01 +0100)] 
Fix support for Mac OS X/PowerPC G5.

Reported by Sergey Fedorov <vital.had@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00149.html>.

* lib/fenv.in.h: Test _ARCH_PPC instead of __powerpc__ or __ppc__.
* lib/fenv-private.h: Likewise.
* lib/fenv-env.c: Likewise.
* lib/fenv-except-state-get.c: Likewise.
* lib/fenv-except-state-set.c: Likewise.
* lib/fenv-except-state-test.c: Likewise.
* lib/fenv-except-tracking-clear.c: Likewise.
* lib/fenv-except-tracking-raise.c: Likewise.
* lib/fenv-except-tracking-set.c: Likewise.
* lib/fenv-except-tracking-test.c: Likewise.
* lib/fenv-except-trapping.c: Likewise.
* lib/fenv-round.c: Likewise.
* lib/float.in.h: Likewise.
* lib/immutable.c: Likewise.
* lib/jit/cache.h: Likewise.
* lib/snan.h: Likewise.
* m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
* tests/qemu.h: Likewise.
* tests/test-exp2.h: Likewise.
* tests/test-fenv-except-state-3.c: Likewise.
* tests/test-fenv-except-tracking-5.c: Likewise.
* tests/test-fenv-except-trapping-2.c: Likewise.
* tests/test-frexpl.c: Likewise.
* tests/test-getpayloadl.c: Likewise.
* tests/test-ilogbl.c: Likewise.
* tests/test-logbl.c: Likewise.
* tests/test-nonblocking-pipe.h: Likewise.
* tests/test-printf-frexpl.c: Likewise.
* tests/test-setpayloadl.c: Likewise.
* tests/test-setpayloadsigl.c: Likewise.
* tests/test-ssfmalloc.c: Likewise.

3 months agofprintftime: check for overflow due to padding
Paul Eggert [Fri, 31 Oct 2025 04:44:00 +0000 (22:44 -0600)] 
fprintftime: check for overflow due to padding

* lib/strftime.c (__strftime_internal):
Check for result overflow if the padding is too large,
which can happen only with fprintftime.

3 months agofprintftime: sbyte_count_t to fix some overflows
Paul Eggert [Fri, 31 Oct 2025 00:04:48 +0000 (18:04 -0600)] 
fprintftime: sbyte_count_t to fix some overflows

* lib/strftime.c: Include <stdint.h>, for PTRDIFF_MAX.
(byte_count_t): Now a typedef instead of a macro.
(sbyte_count_t): New typedef.
(SBYTE_COUNT_MAX): New macro.
(memset_byte, width_add, __strftime_internal):
(fwrite_lowcase, fwrite_uppcase) [FPRINTFTIME]:
Avoid overflow issues with fprintftime by using byte_count_t
or sbyte_count_t instead of size_t or int.
* modules/nstrftime: Depend on stdint-h.

3 months agolibc-config: Don't disable __attribute__ when compiling with Tiny C.
Eric Wong [Thu, 30 Oct 2025 22:54:59 +0000 (23:54 +0100)] 
libc-config: Don't disable __attribute__ when compiling with Tiny C.

* lib/cdefs.h (__attribute__): Don't define to empty on Tiny C.

Copyright-paperwork-exempt: Yes

3 months agofprintftime: Avoid size_t overflow for very large outputs.
Bruno Haible [Thu, 30 Oct 2025 11:56:21 +0000 (12:56 +0100)] 
fprintftime: Avoid size_t overflow for very large outputs.

Reported by Jeff Epler <jepler@unpythonic.net> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00126.html>.

* lib/fprintftime.h: Include <sys/types.h>.
(fprintftime): Change return type to off64_t.
* lib/strftime.c (byte_count_t): New macro.
(my_strftime, __strftime_internal): Change return type to off64_t.
* modules/fprintftime (Depends-on): Add sys_types-h.
* NEWS: Mention the change.

3 months agoFix support for Mac OS X/PowerPC.
Bruno Haible [Wed, 29 Oct 2025 21:21:10 +0000 (22:21 +0100)] 
Fix support for Mac OS X/PowerPC.

Reported by Sergey Fedorov <vital.had@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00097.html>.

* lib/fenv.in.h: Whenever we test __powerpc__ and the OS could be
Mac OS X, test also __ppc__.
* lib/fenv-private.h: Likewise.
* lib/fenv-env.c: Likewise.
* lib/fenv-except-state-get.c: Likewise.
* lib/fenv-except-state-set.c: Likewise.
* lib/fenv-except-state-test.c: Likewise.
* lib/fenv-except-tracking-clear.c: Likewise.
* lib/fenv-except-tracking-raise.c: Likewise.
* lib/fenv-except-tracking-set.c: Likewise.
* lib/fenv-except-tracking-test.c: Likewise.
* lib/fenv-except-trapping.c: Likewise.
* lib/fenv-round.c: Likewise.
* lib/float.in.h: Likewise.
* lib/snan.h: Likewise.
* m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
* tests/qemu.h: Likewise.
* tests/test-fenv-except-state-3.c: Likewise.
* tests/test-fenv-except-tracking-5.c: Likewise.
* tests/test-getpayloadl.c: Likewise.
* tests/test-setpayloadl.c: Likewise.
* tests/test-setpayloadsigl.c: Likewise.

3 months agoposix_spawn: Don't give sigismember an invalid signal number.
Collin Funk [Wed, 29 Oct 2025 07:08:56 +0000 (00:08 -0700)] 
posix_spawn: Don't give sigismember an invalid signal number.

This caused the child process to exit with a 127 exit status on OpenBSD
and Solaris.

* lib/spawni.c (__spawni): Use < instead of <= when comparing the signal
number to NSIG.

3 months agoopenat2: port O_TMPFILE check to non-GNU/Linux
Paul Eggert [Wed, 29 Oct 2025 04:15:11 +0000 (21:15 -0700)] 
openat2: port O_TMPFILE check to non-GNU/Linux

* lib/openat2.c (openat2): Don’t assume !!(O_TMPFILE & O_DIRECTORY).
Although true on GNU/Linux, it is a hack and might not be true on
other systems such as Cygwin.

3 months agoopenat2-tests: port to FreeBSD, NetBSD
Paul Eggert [Wed, 29 Oct 2025 00:03:28 +0000 (17:03 -0700)] 
openat2-tests: port to FreeBSD, NetBSD

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2025-10/msg00117.html
* tests/test-openat2.c (is_nofollow_error): New function.
(do_test_resolve): Use it.

3 months agoposix_spawn_file_actions_addclose: Fix test failure on NetBSD 10.0.
Bruno Haible [Tue, 28 Oct 2025 21:11:11 +0000 (22:11 +0100)] 
posix_spawn_file_actions_addclose: Fix test failure on NetBSD 10.0.

* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): Test
also against the NetBSD bug.
* doc/posix-functions/posix_spawn_file_actions_addclose.texi: Document
the NetBSD bug.

3 months agoopenat2: new module
Paul Eggert [Tue, 28 Oct 2025 00:00:53 +0000 (17:00 -0700)] 
openat2: new module

This supports the openat2 system call of Linux 5.6 (2020) and
later.  Although not yet exposed by glibc, the call is useful for
programs like GNU Tar that need to be paranoid about traversing
file names from untrusted sources.  On platforms lacking
openat2, it is emulated in user space.
* lib/openat2.c, m4/openat2.m4, modules/openat2:
* modules/openat2-tests, tests/test-openat2.c: New files.
* lib/fcntl.in.h (struct open_how, RESOLVE_NO_XDEV)
(RESOLVE_NO_MAGICLINKS, RESOLVE_NO_SYMLINKS, RESOLVE_BENEATH)
(RESOLVE_IN_ROOT, RESOLVE_CACHED):
New type and constants, if <linux/openat2.h> does not define.
(openat2): New decls.
* m4/fcntl_h.m4 (gl_FCNTL_H, gl_FCNTL_H_REQUIRE_DEFAULTS)
(gl_FCNTL_H_DEFAULTS):
* modules/fcntl-h (fcntl.h):
Also check for openat2.

3 months agostdcountof-tests: pacify ODS 12.6
Paul Eggert [Mon, 27 Oct 2025 20:38:08 +0000 (13:38 -0700)] 
stdcountof-tests: pacify ODS 12.6

* tests/test-stdcountof-h.c (test_func) [__SUNPRO_C]: Omit tests
involving u"xxx" and u8"...", as Oracle Developer Studio 12.6
lacks support for this despite claiming C11 conformance.
(a, b, c) [__SUNPRO_C]: Define; ODS 12.6 has the same bug as MSVC 14.

3 months agodoc: mention empty symlink issues
Paul Eggert [Sun, 26 Oct 2025 22:07:39 +0000 (15:07 -0700)] 
doc: mention empty symlink issues

3 months agoautoupdate
Karl Berry [Sun, 26 Oct 2025 14:10:14 +0000 (07:10 -0700)] 
autoupdate

3 months agoautoupdate
Karl Berry [Sun, 26 Oct 2025 14:09:53 +0000 (07:09 -0700)] 
autoupdate

3 months agodoc: mention -fsanitize-trap=all etc
Paul Eggert [Fri, 24 Oct 2025 06:35:36 +0000 (23:35 -0700)] 
doc: mention -fsanitize-trap=all etc

* doc/gnulib-readme.texi: Mention _GLIBCXX_ASSERTIONS,
-fsanitize-trap=all, -fhardened.
Problem reported by Basil L. Contovounesios in:
https://lists.gnu.org/r/bug-gnulib/2025-10/msg00068.html

3 months agodoc: allow for _FORTIFY_SOURCE = 3
Paul Eggert [Fri, 24 Oct 2025 06:10:44 +0000 (23:10 -0700)] 
doc: allow for _FORTIFY_SOURCE = 3

Problem reported by Basil L. Contovounesios in:
https://lists.gnu.org/r/bug-gnulib/2025-10/msg00068.html

3 months agostdioext: Add support for OpenBSD >= 7.8.
Bruno Haible [Thu, 23 Oct 2025 14:14:15 +0000 (16:14 +0200)] 
stdioext: Add support for OpenBSD >= 7.8.

* lib/stdio-impl.h (fp_): Separate definitions for OpenBSD from those
for Android. Add definition for OpenBSD >= 7.8.
* lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
update_fpos_cache, rpl_fflush): Don't test for __OpenBSD__, since
OpenBSD <= 7.7 is covered by the __sferror test and OpenBSD >= 7.8 does
not need the workarounds.
* lib/fseeko.c (fseeko): Likewise.
* lib/fpurge.c (fpurge): Likewise.

3 months agostdioext: Revert unneeded changes in 2025-07-20 commit.
Bruno Haible [Thu, 23 Oct 2025 14:06:22 +0000 (16:06 +0200)] 
stdioext: Revert unneeded changes in 2025-07-20 commit.

* lib/fpending.c (__fpending): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __fpending.
* lib/freadahead.c (freadahead): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __freadahead.
* lib/freading.c (freading): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __freading.
* lib/freadptr.c (freadptr): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __freadptr.
* lib/freadseek.c (freadptrinc): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __freadptrinc.
* lib/fseterr.c (fseterr): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __fseterr.
* lib/fwriting.c (fwriting): Don't test for __OpenBSD__, since
OpenBSD >= 7.6 already has __fwriting.

3 months agodoc: Update gmtime_r documentation for OpenBSD 7.8.
Collin Funk [Wed, 22 Oct 2025 19:15:16 +0000 (12:15 -0700)] 
doc: Update gmtime_r documentation for OpenBSD 7.8.

* doc/posix-functions/gmtime_r.texi: Mention that only OpenBSD 7.7 and
earlier use GMT instead of UTC.

3 months agofenv-rounding tests: Avoid test failure on Android.
Collin Funk [Tue, 21 Oct 2025 03:50:21 +0000 (20:50 -0700)] 
fenv-rounding tests: Avoid test failure on Android.

* tests/test-fenv-round.c (test_towardzero, test_upward)
(test_downward): Disable tests that are known to fail.
* doc/posix-functions/fesetround.texi: Update list of platforms.

3 months agosnan tests: Avoid test failure on Android.
Collin Funk [Tue, 21 Oct 2025 02:49:45 +0000 (19:49 -0700)] 
snan tests: Avoid test failure on Android.

* tests/test-snan-1.c (main): Disable test that is known to fail.

3 months agofts: Attempt to silence Coverity Scan.
Bruno Haible [Tue, 21 Oct 2025 07:47:13 +0000 (09:47 +0200)] 
fts: Attempt to silence Coverity Scan.

* lib/fts.c (fts_safe_changedir): Add an assertion.

3 months agoglob: Fix a memory leak.
Bruno Haible [Tue, 21 Oct 2025 07:40:46 +0000 (09:40 +0200)] 
glob: Fix a memory leak.

Found by Coverity.

* lib/glob.c (__glob): Add scratch_buffer_free invocation, to match
scratch_buffer_init invocation.

3 months agoglob: Add support for Android.
Bruno Haible [Mon, 20 Oct 2025 19:13:39 +0000 (21:13 +0200)] 
glob: Add support for Android.

Reported by Collin Funk in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00054.html>.

* m4/glob.m4 (gl_GLOB): On Android, skip a test that assumes that
/bin/sh exists. Update cross-compilation guess.
* tests/test-glob.c (main): On Android, skip a test that assumes that
/bin/sh exists.
* doc/posix-functions/glob.texi: Mention also Android.

3 months agognulib-tool.sh: Trivial simplification.
Bruno Haible [Mon, 20 Oct 2025 02:08:11 +0000 (04:08 +0200)] 
gnulib-tool.sh: Trivial simplification.

* gnulib-tool.sh (func_exists_local_module): Remove redundant semicolon.

3 months agosavedir tests: Check the length of the file names.
Collin Funk [Sat, 18 Oct 2025 03:04:59 +0000 (20:04 -0700)] 
savedir tests: Check the length of the file names.

Suggested by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00049.html>.

* tests/test-savedir.c (test_savedir_sort_none)
(test_savedir_sort_name): Check that the file names are only one
character long.

3 months agosavedir: Add tests.
Collin Funk [Fri, 17 Oct 2025 23:45:30 +0000 (16:45 -0700)] 
savedir: Add tests.

* tests/test-savedir.c: New file.
* modules/savedir-tests: Likewise.

3 months agoglob tests: Avoid a test failure on native Windows.
Bruno Haible [Wed, 15 Oct 2025 14:30:10 +0000 (16:30 +0200)] 
glob tests: Avoid a test failure on native Windows.

* tests/test-glob.c (main): Disable the new test cases on native
Windows.

3 months agoglob: Fix test failure on Cygwin.
Bruno Haible [Wed, 15 Oct 2025 13:16:59 +0000 (15:16 +0200)] 
glob: Fix test failure on Cygwin.

* m4/glob.m4 (gl_GLOB): Add a second test case.
* doc/posix-functions/glob.texi: Mention Cygwin.

3 months agoglob tests: Improve maintainability.
Bruno Haible [Wed, 15 Oct 2025 13:01:55 +0000 (15:01 +0200)] 
glob tests: Improve maintainability.

* tests/test-glob.c (main): Make the second added test independent from
the first one.

3 months agogetdelim: Avoid the symbol __getdelim with ASAN (regr. 2025-10-13).
Collin Funk [Wed, 15 Oct 2025 01:30:47 +0000 (18:30 -0700)] 
getdelim: Avoid the symbol __getdelim with ASAN (regr. 2025-10-13).

* lib/stdio.in.h (rpl_getdelim)
[__GLIBC__ >= 2 && !__ADDRESS_SANITIZER__]: Don't define to __getdelim
so that ___interceptor_getdelim doesn't override our symbol.

3 months agoglob: Ensure --enable-cross-guesses is obeyed (regr. yesterday).
Collin Funk [Wed, 15 Oct 2025 01:10:48 +0000 (18:10 -0700)] 
glob: Ensure --enable-cross-guesses is obeyed (regr. yesterday).

Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00041.html>.

* m4/glob.m4 (gl_GLOB): Set gl_cv_glob_overflows_stack on platforms
other than glibc.

3 months agoglob tests: Add a test for the glibc bug.
Collin Funk [Tue, 14 Oct 2025 03:39:25 +0000 (20:39 -0700)] 
glob tests: Add a test for the glibc bug.

* tests/test-glob.c (main): Add a test case for all slash characters and
a test case for many slash characters following a wildcard character.

3 months agoglob: Prevent a stack overflow with many slashes.
Collin Funk [Sat, 11 Oct 2025 05:34:19 +0000 (22:34 -0700)] 
glob: Prevent a stack overflow with many slashes.

* lib/glob.c (__glob): Strip trailing slashes before making the
recursive call.
* m4/glob.m4 (gl_GLOB): Check for the glibc bug.
* doc/posix-functions/glob.texi: Mention the bug.

3 months agogetline: Fix compilation error in C++ mode (regression 2025-10-10).
Bruno Haible [Mon, 13 Oct 2025 10:41:39 +0000 (12:41 +0200)] 
getline: Fix compilation error in C++ mode (regression 2025-10-10).

* lib/stdio.in.h (getdelim): On glibc, define __getdelim instead of
rpl_getdelim.
(getline): In C++ mode, define getline as an inline function instead of
as a macro.
* lib/getdelim.c (getdelim): On glibc, don't test whether fp is NULL.

3 months agostdcountof-h tests: Fix link error on MSVC 14 (regression 2025-06-07).
Bruno Haible [Sun, 12 Oct 2025 11:31:49 +0000 (13:31 +0200)] 
stdcountof-h tests: Fix link error on MSVC 14 (regression 2025-06-07).

* tests/test-stdcountof-h.c (a, b, c): Define as variables on MSVC.

3 months agoCorrect indentation in last commits.
Bruno Haible [Sat, 11 Oct 2025 00:56:32 +0000 (02:56 +0200)] 
Correct indentation in last commits.

* m4/getdelim.m4 (gl_FUNC_GETDELIM): Correct indentation.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.

3 months agogetline tests: Add a test for the glibc bug.
Collin Funk [Fri, 10 Oct 2025 03:42:05 +0000 (20:42 -0700)] 
getline tests: Add a test for the glibc bug.

* tests/test-getline.c (main): Check that the buffer is terminated with
a NUL character when the first character read is EOF.

3 months agogetline: Work around a glibc bug.
Collin Funk [Fri, 10 Oct 2025 03:41:09 +0000 (20:41 -0700)] 
getline: Work around a glibc bug.

* m4/getline.m4 (gl_FUNC_GETLINE): Check that the buffer is terminated
with a NUL character when the first character read is EOF. Guess that
the function does not work on glibc.
* doc/posix-functions/getline.texi: Mention the bug.

3 months agogetdelim tests: Add a test for the glibc bug.
Collin Funk [Fri, 10 Oct 2025 03:40:05 +0000 (20:40 -0700)] 
getdelim tests: Add a test for the glibc bug.

* tests/test-getdelim.c (main): Check that the buffer is terminated with
a NUL character when the first character read is EOF.

3 months agogetdelim: Work around a glibc bug.
Collin Funk [Fri, 10 Oct 2025 03:36:15 +0000 (20:36 -0700)] 
getdelim: Work around a glibc bug.

* m4/getdelim.m4 (gl_FUNC_GETDELIM): Check that the buffer is terminated
with a NUL character when the first character read is EOF. Guess that
the function does not work on glibc.
* doc/posix-functions/getdelim.texi: Mention the bug.

3 months agostdcountof-h tests: Test more kinds of string literals.
Bruno Haible [Wed, 8 Oct 2025 12:12:51 +0000 (14:12 +0200)] 
stdcountof-h tests: Test more kinds of string literals.

* tests/test-stdcountof-h.c (test_func): Test also wide string literals
and Unicode string literals.

3 months agostdcountof-h tests: Test a string literal.
Alejandro Colomar [Wed, 8 Oct 2025 09:40:58 +0000 (11:40 +0200)] 
stdcountof-h tests: Test a string literal.

* tests/test-stdcountof-h.c (test_func): Test a string literal.

Copyright-paperwork-exempt: Yes

3 months agostdcountof-h: Add support for string literal arguments in C++ mode.
Bruno Haible [Wed, 8 Oct 2025 12:10:13 +0000 (14:10 +0200)] 
stdcountof-h: Add support for string literal arguments in C++ mode.

Reported by Alejandro Colomar <alx@kernel.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00010.html>.

* lib/stdcountof.in.h (_gl_array_type_test): Add a partial instantiation
for string literals.

3 months agolocalename-unsafe: Fix handling of yue-Hans locale on macOS.
Bruno Haible [Sat, 4 Oct 2025 02:21:50 +0000 (04:21 +0200)] 
localename-unsafe: Fix handling of yue-Hans locale on macOS.

Reported by Grisha Levit <grishalevit@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00002.html>.

* lib/localename-unsafe.c (langtag_entry): Adjust array dimensions of
elements.

3 months agounimetadata/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:51:11 +0000 (21:51 +0200)] 
unimetadata/base: Add tests.

* tests/unimetadata/test-unimetadata-h.c: New file.
* modules/unimetadata/base-tests: New file.
* tests/unimetadata/test-unimetadata-h-c++.cc: New file.
* modules/unimetadata/base-c++-tests: New file.

3 months agounicase/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:51:08 +0000 (21:51 +0200)] 
unicase/base: Add tests.

* tests/unicase/test-unicase-h.c: New file.
* modules/unicase/base-tests: New file.
* tests/unicase/test-unicase-h-c++.cc: New file.
* modules/unicase/base-c++-tests: New file.

3 months agouninorm/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:51:05 +0000 (21:51 +0200)] 
uninorm/base: Add tests.

* tests/uninorm/test-uninorm-h.c: New file.
* modules/uninorm/base-tests: New file.
* tests/uninorm/test-uninorm-h-c++.cc: New file.
* modules/uninorm/base-c++-tests: New file.

3 months agounilbrk/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:51:01 +0000 (21:51 +0200)] 
unilbrk/base: Add tests.

* tests/unilbrk/test-unilbrk-h.c: New file.
* modules/unilbrk/base-tests: New file.
* tests/unilbrk/test-unilbrk-h-c++.cc: New file.
* modules/unilbrk/base-c++-tests: New file.

3 months agouniwbrk/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:59 +0000 (21:50 +0200)] 
uniwbrk/base: Add tests.

* tests/uniwbrk/test-uniwbrk-h.c: New file.
* modules/uniwbrk/base-tests: New file.
* tests/uniwbrk/test-uniwbrk-h-c++.cc: New file.
* modules/uniwbrk/base-c++-tests: New file.

3 months agounigbrk/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:56 +0000 (21:50 +0200)] 
unigbrk/base: Add tests.

* tests/unigbrk/test-unigbrk-h.c: New file.
* modules/unigbrk/base-tests: New file.
* tests/unigbrk/test-unigbrk-h-c++.cc: New file.
* modules/unigbrk/base-c++-tests: New file.

3 months agouniwidth/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:53 +0000 (21:50 +0200)] 
uniwidth/base: Add tests.

* tests/uniwidth/test-uniwidth-h.c: New file.
* modules/uniwidth/base-tests: New file.
* tests/uniwidth/test-uniwidth-h-c++.cc: New file.
* modules/uniwidth/base-c++-tests: New file.

3 months agounictype/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:51 +0000 (21:50 +0200)] 
unictype/base: Add tests.

* tests/unictype/test-unictype-h.c: New file.
* modules/unictype/base-tests: New file.
* tests/unictype/test-unictype-h-c++.cc: New file.
* modules/unictype/base-c++-tests: New file.

3 months agouniname/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:48 +0000 (21:50 +0200)] 
uniname/base: Add tests.

* tests/uniname/test-uniname-h.c: New file.
* modules/uniname/base-tests: New file.
* tests/uniname/test-uniname-h-c++.cc: New file.
* modules/uniname/base-c++-tests: New file.

3 months agounistdio/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:46 +0000 (21:50 +0200)] 
unistdio/base: Add tests.

* tests/unistdio/test-unistdio-h.c: New file.
* modules/unistdio/base-tests: New file.
* tests/unistdio/test-unistdio-h-c++.cc: New file.
* modules/unistdio/base-c++-tests: New file.

3 months agouniconv/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:42 +0000 (21:50 +0200)] 
uniconv/base: Add tests.

* tests/uniconv/test-uniconv-h.c: New file.
* modules/uniconv/base-tests: New file.
* tests/uniconv/test-uniconv-h-c++.cc: New file.
* modules/uniconv/base-c++-tests: New file.

3 months agounistr/base: Add tests.
Bruno Haible [Fri, 3 Oct 2025 19:50:29 +0000 (21:50 +0200)] 
unistr/base: Add tests.

* tests/unistr/test-unistr-h.c: New file.
* modules/unistr/base-tests: New file.
* tests/unistr/test-unistr-h-c++.cc: New file.
* modules/unistr/base-c++-tests: New file.

3 months agounistr, unigbrk: Fix compilation error in C++ mode (regr. 2025-02-09).
Bruno Haible [Fri, 3 Oct 2025 19:50:13 +0000 (21:50 +0200)] 
unistr, unigbrk: Fix compilation error in C++ mode (regr. 2025-02-09).

Reported by Ryan Carsten Schmidt <gnulib@ryandesign.com>
at <https://savannah.gnu.org/bugs/?67576>.

* lib/unistr.in.h (u*_check, u*_chr, u*_next, u*_prev, u*_strchr,
u*_strrchr, u*_strpbrk, u*_strstr): Define C++ templates outside of
'extern "C"' block.
* lib/unigbrk.in.h (u*_grapheme_next, u*_grapheme_prev): Likewise.

4 months agoautoupdate
Karl Berry [Wed, 1 Oct 2025 15:07:41 +0000 (08:07 -0700)] 
autoupdate

4 months agoxsetenv: Revert the previous change.
Collin Funk [Sun, 28 Sep 2025 20:30:15 +0000 (13:30 -0700)] 
xsetenv: Revert the previous change.

* modules/xsetenv (Description): Restore the description of unsetenv.

4 months agoxsetenv: Remove unnecessary text from module description.
Collin Funk [Sun, 28 Sep 2025 18:51:48 +0000 (11:51 -0700)] 
xsetenv: Remove unnecessary text from module description.

* modules/xsetenv (Description): Remove mention of the unsetenv function
which is not provided by this module.

4 months agoautoupdate
Karl Berry [Thu, 25 Sep 2025 14:44:28 +0000 (07:44 -0700)] 
autoupdate

4 months agoUpdate to Unicode 17.0.0.
Bruno Haible [Wed, 24 Sep 2025 21:28:18 +0000 (23:28 +0200)] 
Update to Unicode 17.0.0.

* lib/gen-uni-tables.c (is_property_alphabetic): Add three
YANGQIN SIGNs.
(UC_JOINING_GROUP_THIN_NOON): New enum item.
(fill_arabicshaping, joining_group_as_c_identifier): Handle
UC_JOINING_GROUP_THIN_NOON.
(LBP_*): Split LBP_SA into LBP_SA1 and LBP_SA2.
(LBP_HH, LBP_SA): New enum items.
(get_lbp): Use them. Update such that unilbrk/lbrkprop.txt comes out as
expected.
(debug_output_lbp): Handle LBP_HH. Print either LBP_SA1, LBP_SA2 as
LBP_SA.
(fill_org_lbp, debug_output_org_lbp): Handle LBP_HH.
(lbp_value_to_string): Handle LBP_HH. Handle LBP_SA1, LBP_SA2 instead of
LBP_SA.
(output_lbrk_rules_as_tables): Update for LBP_HH change. Update rules
LBP12a, LB21 as specified by
https://www.unicode.org/reports/tr14/tr14-55.html.
(get_wbp): Update such that uniwbrk/wbrkprop.txt comes out as expected.

* lib/unictype.in.h (UC_JOINING_GROUP_THIN_NOON): New enum item.
* lib/unictype/joininggroup_byname.gperf: Handle it.
* lib/unictype/joininggroup_name.h: Likewise.

* lib/unilbrk/lbrktables.h (LBP_*): Split LBP_SA into LBP_SA1 and
LBP_SA2.
(LBP_HH): New enum item.
(unilbrk_table): Update bounds.
* lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks_loop):
Use LBP_HL_HY instead of LBP_HL_BA. Use LBP_SA1 instead of LBP_SA. Treat
LBP_SA2 like LBP_CM. Update rules LB20a and LB21a, as specified by
https://www.unicode.org/reports/tr14/tr14-55.html.
* lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks_loop):
Likewise.
* lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks_loop):
Likewise.

* tests/unigbrk/test-u8-grapheme-breaks.c (main): Use U+2B50 instead of
U+2605, because U+2605 no longer is an Extended_Pictographic character.
* tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
* tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
* tests/unigbrk/test-u8-grapheme-next.c (main): Likewise.
* tests/unigbrk/test-u16-grapheme-next.c (main): Likewise.
* tests/unigbrk/test-u32-grapheme-next.c (main): Likewise.
* tests/unigbrk/test-u8-grapheme-prev.c (main): Likewise.
* tests/unigbrk/test-u16-grapheme-prev.c (main): Likewise.
* tests/unigbrk/test-u32-grapheme-prev.c (main): Likewise.

* tests/uniwidth/test-uc_width2.sh: Update expected test result.

* All generated files under lib/uni* and tests/uni*: Regenerate.
* tests/uniname/NameAliases.txt: Update.
* tests/uniname/UnicodeData.txt: Update.
* tests/uninorm/NormalizationTest.txt: Update.
* tests/unigbrk/GraphemeBreakTest.txt: Update.
* tests/uniwbrk/WordBreakTest.txt: Update.
* tests/unilbrk/LineBreakTest.txt: Update.

* All the affected modules: Bump required libunistring version.

4 months agounilbrk: Fix handling of future emojis in rule LB30b.
Bruno Haible [Wed, 24 Sep 2025 21:28:14 +0000 (23:28 +0200)] 
unilbrk: Fix handling of future emojis in rule LB30b.

* lib/unilbrk/lbrktables.h (LBP_ID): Renamed from LBP_ID1.
(LBP_EBF): Renamed from LBP_ID2.
* lib/gen-uni-tables.c (LBP_ID): Renamed from LBP_ID1.
(LBP_EBF): Renamed from LBP_ID2.
(get_lbp): Update. Move is_property_extended_pictographic invocation.
(debug_output_org_lbp): Augment the information from the LineBreak.txt
file with the Extended_Pictographic property. Print the LBP_ID and
LBP_EBF values distinctly.
(fill_org_lbp): Assign value LBP_EBF to all unassigned
Extended_Pictographic characters.
(debug_output_org_lbp): Handle LBP_EBF.
(lbp_value_to_string): Update.
(output_lbrk_rules_as_tables): Treat LBP_EBF like LBP_EB instead of like
LBP_ID.
* lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks_loop):
Update.
* lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks_loop):
Likewise.
* lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks_loop):
Likewise.
* lib/unilbrk/lbrkprop2.h: Regenerated.
* lib/unilbrk/lbrktables.c: Regenerated.
* tests/unilbrk/test-uc-possible-linebreaks.c (main): Skip test cases
that contain the U+1F8FF character.
* modules/unilbrk/*-linebreaks: Bump required libunistring version.

4 months agoautoupdate
Karl Berry [Wed, 24 Sep 2025 15:25:57 +0000 (08:25 -0700)] 
autoupdate

4 months agogen-uni-tables: Fix compilation error (regression 2025-09-17).
Bruno Haible [Tue, 23 Sep 2025 19:44:46 +0000 (21:44 +0200)] 
gen-uni-tables: Fix compilation error (regression 2025-09-17).

* lib/gen-uni-tables.c (streq, memeq): Move definitions before their
first use.

4 months agoClarify link dependency towards libgcrypt or OpenSSL's libcrypto.
Bruno Haible [Tue, 23 Sep 2025 08:22:38 +0000 (10:22 +0200)] 
Clarify link dependency towards libgcrypt or OpenSSL's libcrypto.

* modules/crypto/gc-arcfour (Link): New section.
* modules/crypto/gc-arctwo (Link): Likewise.
* modules/crypto/gc-camellia (Link): Likewise.
* modules/crypto/gc-des (Link): Likewise.
* modules/crypto/gc-hmac-md5 (Link): Likewise.
* modules/crypto/gc-hmac-sha1 (Link): Likewise.
* modules/crypto/gc-hmac-sha256 (Link): Likewise.
* modules/crypto/gc-hmac-sha512 (Link): Likewise.
* modules/crypto/gc-md2 (Link): Likewise.
* modules/crypto/gc-md4 (Link): Likewise.
* modules/crypto/gc-md5 (Link): Likewise.
* modules/crypto/gc-pbkdf2 (Link): Likewise.
* modules/crypto/gc-pbkdf2-sha1 (Link): Likewise.
* modules/crypto/gc-rijndael (Link): Likewise.
* modules/crypto/gc-sha1 (Link): Likewise.
* modules/crypto/gc-sha256 (Link): Likewise.
* modules/crypto/gc-sha512 (Link): Likewise.
* modules/crypto/gc-sm3 (Link): Likewise.
* modules/crypto/gc-random (Link): Add $(LIB_CRYPTO).

4 months agocrypto/gc-arctwo-tests: Fix link error when OpenSSL is enabled.
Collin Funk [Tue, 23 Sep 2025 04:27:13 +0000 (21:27 -0700)] 
crypto/gc-arctwo-tests: Fix link error when OpenSSL is enabled.

* modules/crypto/gc (Link): Add $(LIB_CRYPTO).
* modules/crypto/gc-arctwo-tests (Makefile.am): Link the test program to
@LIB_CRYPTO@.