]> Savannah Git Hosting - gnulib.git/log
gnulib.git
4 years agofcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
Bruno Haible [Sun, 29 Nov 2020 20:13:33 +0000 (21:13 +0100)]
fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.

* m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
works.
* lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
fallback implementation as on Haiku.
* tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
effective.
* doc/posix-functions/fcntl.texi: Mention the NetBSD bug.

4 years agospawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
Bruno Haible [Sun, 29 Nov 2020 17:37:33 +0000 (18:37 +0100)]
spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).

* lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
* lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
* lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
* lib/windows-spawn.c: Remove modifications for kLIBC.
* modules/spawn-pipe (Files): Add the new files.
(configure.ac): Arrange to compile os2-spawn.c on OS/2.

4 years agoasyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
Bruno Haible [Sat, 28 Nov 2020 11:04:47 +0000 (12:04 +0100)]
asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.

Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.

* m4/sparcv8+.m4: New file.
* modules/sparcv8+: New file.
* modules/asyncsafe-spin (Depends-on): Add sparcv8+.

4 years agoasyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
Bruno Haible [Sat, 28 Nov 2020 11:03:36 +0000 (12:03 +0100)]
asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.

* lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.

4 years agowindows-spawn: New module.
Bruno Haible [Sat, 28 Nov 2020 09:46:23 +0000 (10:46 +0100)]
windows-spawn: New module.

* lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
implementations.
* lib/windows-spawn.c: Renamed from lib/w32spawn.h.
* modules/windows-spawn: New file.
* lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
* lib/spawn-pipe.c: Likewise.
* modules/execute (Files): Remove lib/w32spawn.h.
(Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
xalloc.
(Makefile.am): Remove w32spawn.h from lib_SOURCES.
* modules/spawn-pipe (Files): Remove lib/w32spawn.h.
(Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
xalloc.
(Makefile.am): Remove w32spawn.h from lib_SOURCES.

4 years agossfmalloc tests: Port to macOS 11.
Bruno Haible [Fri, 27 Nov 2020 19:56:19 +0000 (20:56 +0100)]
ssfmalloc tests: Port to macOS 11.

* tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.

4 years agoFix dependencies of modules that use '_exit' on native Windows.
Bruno Haible [Thu, 26 Nov 2020 21:13:20 +0000 (22:13 +0100)]
Fix dependencies of modules that use '_exit' on native Windows.

Reported by Jim Meyering in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.

* modules/_Exit (Depends-on): Add unistd.
* modules/closein (Depends-on): Likewise.
* modules/closeout (Depends-on): Likewise.
* modules/forkpty (Depends-on): Likewise.
* modules/posix_spawn-internal (Depends-on): Likewise.
* modules/savewd (Depends-on): Likewise.
* modules/stat-time-tests (Depends-on): Likewise.

4 years agoraise-tests: Fix compilation error on MSVC (regression 2020-11-25).
Bruno Haible [Thu, 26 Nov 2020 16:06:46 +0000 (17:06 +0100)]
raise-tests: Fix compilation error on MSVC (regression 2020-11-25).

* modules/raise-tests (Depends-on): Add unistd.
* doc/posix-functions/_exit.texi: Mention the 'unistd' module.

4 years agosetlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
Jim Meyering [Thu, 26 Nov 2020 02:21:25 +0000 (18:21 -0800)]
setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument

* tests/test-setlocale1.c (main): Assert that each strcmp argument is
non-NULL, since we don't bother handing strdup failure.

4 years agoraise-tests: avoid GCC 11's new exit-from-signal-handler warning
Jim Meyering [Thu, 26 Nov 2020 02:06:36 +0000 (18:06 -0800)]
raise-tests: avoid GCC 11's new exit-from-signal-handler warning

gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
* tests/test-raise.c: Include unistd.h.
(handler): Use _exit, not exit.

4 years agoautoupdate
Karl Berry [Wed, 25 Nov 2020 16:44:49 +0000 (08:44 -0800)]
autoupdate

4 years agoUse the correct printf format attribute for mingw.
Bruno Haible [Tue, 24 Nov 2020 00:32:51 +0000 (01:32 +0100)]
Use the correct printf format attribute for mingw.

Reported by Reuben Thomas <rrt@sc3d.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.

* modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
* modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.

* lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
(_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
_GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
(_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.

* modules/vasnprintf (Depends-on): Add stdio.
* lib/vasnprintf.h: Include <stdio.h>.
(asnprintf, vasnprintf): Use the standard printf format attribute.

* modules/xvasprintf (Depends-on): Add stdio.
* lib/xvasprintf.h: Include <stdio.h>.
(xasprintf, xvasprintf): Use the standard printf format attribute.

* modules/xprintf (Depends-on): List stdio first.
* lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
depends on GNULIB_VPRINTF_POSIX.
(xfprintf, xvfprintf): Use a printf format attribute that depends on
GNULIB_VFPRINTF_POSIX.

* modules/c-vasnprintf (Depends-on): Add stdio.
* lib/c-vasnprintf.h: Include <stdio.h>.
(c_vasnprintf): Use the standard printf format attribute.

* modules/c-vasprintf (Depends-on): Add stdio.
* lib/c-vasprintf.h: Include <stdio.h>.
(c_asprintf, c_vasprintf): Use the standard printf format attribute.

* modules/c-vsnprintf (Depends-on): Add stdio.
* lib/c-vsnprintf.h: Include <stdio.h>.
(c_vsnprintf): Use the standard printf format attribute.

* modules/c-snprintf (Depends-on): Add stdio.
* lib/c-snprintf.h: Include <stdio.h>.
(c_snprintf): Use the standard printf format attribute.

* modules/c-xvasprintf (Depends-on): Add stdio.
* lib/c-xvasprintf.h: Include <stdio.h>.
(c_xasprintf, c_xvasprintf): Use the standard printf format attribute.

* modules/error (Depends-on): Depend on stdio always.
* lib/error.h: Include <stdio.h>.
(_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
(error, error_at_line): Use a printf format attribute that depends on
GNULIB_VFPRINTF_POSIX.
* lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
_GL_ATTRIBUTE_FORMAT_PRINTF.

* modules/verror (Depends-on): Add stdio.
* lib/verror.h: Include <stdio.h>. Don't include "error.h".
(verror, verror_at_line): Use the standard printf format attribute.
* lib/verror.c: Include "error.h".

* modules/argp (Depends-on): Add stdio.
* lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.

* modules/libtextstyle-optional (Depends-on): Add stdio.
* lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
printf format attribute.

* tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
format attribute.

4 years agoselinux-at, selinux-h: use const correct declarations
Pádraig Brady [Mon, 23 Nov 2020 15:14:50 +0000 (15:14 +0000)]
selinux-at, selinux-h: use const correct declarations

* lib/se-selinux.in.h: Use const for "set" functions,
to match current selinux, and support cleaner user code.
* lib/selinux-at.c: Likewise.
* lib/selinux-at.h: Likewise.

4 years agocanonicalize-lgpl: fix memory leak
Paul Eggert [Mon, 23 Nov 2020 07:37:57 +0000 (23:37 -0800)]
canonicalize-lgpl: fix memory leak

* lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
which could have occurred if BUF was so large that malloc was
called.  Do this by allocating EXTRA_BUF and BUF at the same time;
this eliminates the need to free BUF separately.

4 years agoFix missing module dependencies to 'xalloc' (regression 2020-10-19).
Bruno Haible [Mon, 23 Nov 2020 01:33:09 +0000 (02:33 +0100)]
Fix missing module dependencies to 'xalloc' (regression 2020-10-19).

* modules/xvasprintf (Depends-on): Add xalloc.
* modules/pipe-filter-gi (Depends-on): Likewise.
* modules/execute (Depends-on): Likewise, for w32spawn.h.
* modules/spawn-pipe (Depends-on): Likewise.

4 years agobootstrap: add option hooks
Jose E. Marchesi [Sun, 22 Nov 2020 23:04:03 +0000 (15:04 -0800)]
bootstrap: add option hooks

* build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
(bootstrap_option_hook): Likewise.
(usage): Call bootstrap_print_option_usage_hook.

4 years agoargp: Don't break getprogname on non-glibc systems.
Bruno Haible [Sun, 22 Nov 2020 21:29:44 +0000 (22:29 +0100)]
argp: Don't break getprogname on non-glibc systems.

* m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
program_invocation_name and program_invocation_short_name.

4 years agodoc: Document <link.h>.
Bruno Haible [Sun, 22 Nov 2020 17:30:18 +0000 (18:30 +0100)]
doc: Document <link.h>.

* doc/glibc-headers/link.texi: New file.
* doc/gnulib.texi: Include it.

4 years agodoc: Add references to the LSB.
Bruno Haible [Sun, 22 Nov 2020 17:18:17 +0000 (18:18 +0100)]
doc: Add references to the LSB.

4 years agodoc: Add references to the LSB.
Bruno Haible [Sun, 22 Nov 2020 16:48:50 +0000 (17:48 +0100)]
doc: Add references to the LSB.

* doc/glibc-functions/*.texi: Add references to LSB 5.0.
* doc/posix-functions/*.texi: Likewise.

4 years agodoc: Fix a makeinfo warning (regression 2020-11-03).
Bruno Haible [Sun, 22 Nov 2020 11:59:48 +0000 (12:59 +0100)]
doc: Fix a makeinfo warning (regression 2020-11-03).

* doc/posix-functions/aligned_alloc.texi: Add missing @item.

4 years agoparse-datetime: fix printf format typo
Paul Eggert [Sun, 22 Nov 2020 03:04:10 +0000 (19:04 -0800)]
parse-datetime: fix printf format typo

* lib/parse-datetime.y (parse_datetime2): Fix format typo in
previous patch to this file.  Problem reported by Chris Elvidge in
<https://bugs.gnu.org/44763#32>.

4 years agosetlocale-null-tests: work around GCC bug 44511
Paul Eggert [Sun, 22 Nov 2020 02:32:11 +0000 (18:32 -0800)]
setlocale-null-tests: work around GCC bug 44511

* tests/test-setlocale_null-mt-all.c:
* tests/test-setlocale_null-mt-one.c:
Ignore -Wreturn-type, to work around GCC bug 44511.

4 years agonl_langinfo-tests: work around GCC bug 44511
Paul Eggert [Sun, 22 Nov 2020 02:09:29 +0000 (18:09 -0800)]
nl_langinfo-tests: work around GCC bug 44511

* tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
Problem reported for GNU grep by Andreas Schwab
<https://bugs.gnu.org/44535>.

4 years agoselinux-h: add stubs for selabel_open etc.
Paul Eggert [Sat, 21 Nov 2020 20:54:22 +0000 (12:54 -0800)]
selinux-h: add stubs for selabel_open etc.

Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
because matchpathcon is deprecated in favor of selabel_open etc.,
so this patch adds stubs for these functions.
* lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
* lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
as it is needed for selabel_open and selinux/selinux.h declares
this type here.
* modules/selinux-h (Files): Add the new files.
(configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
(lib_SOURCES): Add se-label.in.h, se-label.c.
(BUILT_SOURCES): Add $(SELINUX_LABEL_H).
(selinux/label.h): New rule, mimicking selinux/context.h.
(MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
(Include): Add selinux/label.h.

4 years agoUpdate after 'test-driver' in Automake changed.
Bruno Haible [Sat, 21 Nov 2020 18:57:25 +0000 (19:57 +0100)]
Update after 'test-driver' in Automake changed.

* build-aux/test-driver.diff: Rebase.

4 years agoread-file: remove dead assignment
Daiki Ueno [Sat, 21 Nov 2020 16:32:58 +0000 (17:32 +0100)]
read-file: remove dead assignment

* lib/read-file.c (fread_file): Remove dead assignment when
RF_SENSITIVE is set, flagged by clang-analyzer.

4 years agoautoupdate
Karl Berry [Fri, 20 Nov 2020 15:22:18 +0000 (07:22 -0800)]
autoupdate

4 years agobitset: tests: exercise the stats too
Akim Demaille [Thu, 19 Nov 2020 05:42:58 +0000 (06:42 +0100)]
bitset: tests: exercise the stats too

* tests/test-bitset.c: Display the stats at the end of the test.
* lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
last bin, display "256-..." rather that "256-511", since the last bin
does count item greater than or equal to 256.

4 years agobitset: tests: try harder to break it
Akim Demaille [Wed, 18 Nov 2020 20:37:34 +0000 (21:37 +0100)]
bitset: tests: try harder to break it

bitset_list (used in bitset_first, bitset_next, bitset_count,
BITSET_FOR_EACH, etc.) uses a cache of size BITSET_LIST_SIZE (1024).
None of our tests current try bitsets bigger than this.

* tests/test-bitset.c (compare): Be ready to use bitsets larger than
BITSET_LIST_SIZE.
(main): Likewise.
While at it, also exercise super small bitsets.

4 years agobitset: use ffs where possible in the vector implementation
Akim Demaille [Wed, 18 Nov 2020 20:19:16 +0000 (21:19 +0100)]
bitset: use ffs where possible in the vector implementation

* lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.

4 years agobitset: use ffs where possible in the table implementation
Akim Demaille [Wed, 18 Nov 2020 06:48:25 +0000 (07:48 +0100)]
bitset: use ffs where possible in the table implementation

* lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.

4 years agobitset: check empty and full bitsets
Akim Demaille [Wed, 18 Nov 2020 06:28:39 +0000 (07:28 +0100)]
bitset: check empty and full bitsets

* tests/test-bitset.c (check_zero, check_ones): New.
(check_attributes): Use them.

4 years agobitset: be sure to always return a value
Akim Demaille [Wed, 18 Nov 2020 06:27:52 +0000 (07:27 +0100)]
bitset: be sure to always return a value

* lib/bitset/array.c (abitset_small_list): Always update *next and
return a value.

4 years agovcs-to-changelog: Expect spaces in file names
Siddhesh Poyarekar [Wed, 18 Nov 2020 02:44:37 +0000 (08:14 +0530)]
vcs-to-changelog: Expect spaces in file names

Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,

* build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
tabs to spaces.
(list_changes): Use tabs to identify file names.

4 years agobitset: strengthen tests
Akim Demaille [Tue, 17 Nov 2020 06:29:05 +0000 (07:29 +0100)]
bitset: strengthen tests

* tests/test-bitset.c (compare): Also check count.
Deal only with random values, move the one-bit tests to...
(check_one_bit): this new function.
(check_attributes): Call it.

4 years agobitset: fix iteration over table bitsets
Akim Demaille [Tue, 17 Nov 2020 07:22:13 +0000 (08:22 +0100)]
bitset: fix iteration over table bitsets

* lib/bitset/table.c (tbitset_list): Update bitno when windex is.

4 years agobitset: rename internal details for consistency
Akim Demaille [Tue, 17 Nov 2020 06:40:01 +0000 (07:40 +0100)]
bitset: rename internal details for consistency

The "table" implementation used to called "expandable" (see
https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html).
Clean up remaining traces of "expandable".

* lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.

4 years agobitset: test: run deterministic tests on several bitset sizes
Akim Demaille [Tue, 17 Nov 2020 07:23:14 +0000 (08:23 +0100)]
bitset: test: run deterministic tests on several bitset sizes

* tests/test-bitset.c (check_attributes): Run it with small and large
sizes.

4 years agobitset: use ffs where possible in the list implementation
Akim Demaille [Mon, 16 Nov 2020 06:49:08 +0000 (07:49 +0100)]
bitset: use ffs where possible in the list implementation

* lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.

4 years agobitset: use ffs where possible in array implementation
Akim Demaille [Mon, 16 Nov 2020 06:22:35 +0000 (07:22 +0100)]
bitset: use ffs where possible in array implementation

* lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.

4 years agoposixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
Bruno Haible [Wed, 18 Nov 2020 01:49:19 +0000 (02:49 +0100)]
posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.

Reported by Tom G. Christensen <tgc@jupiterrise.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.

* m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
C++ mode.

4 years agoFix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
Bruno Haible [Wed, 18 Nov 2020 01:33:33 +0000 (02:33 +0100)]
Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).

* lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
is always declared.
* m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
declared.

4 years agoFix link errors on AIX.
Bruno Haible [Tue, 17 Nov 2020 22:24:12 +0000 (23:24 +0100)]
Fix link errors on AIX.

* modules/clean-temp (Link): Link with $(LIBTHREAD).
* modules/getumask (Link): Link with $(LIBTHREAD).
* modules/getumask-tests (Makefile.am): Link test-getumask with
$(LIBTHREAD).
* modules/supersede (Link): Link with $(LIBTHREAD).
* modules/supersede-tests (Makefile.am): Link test-supersede with
$(LIBTHREAD).
* modules/fatal-signal (Link): New section.
* modules/execute (Link): New section.
* modules/csharpexec (Link): Link with $(LIBTHREAD).
* modules/javaexec (Link): Link with $(LIBTHREAD).
* modules/spawn-pipe (Link): New section.
* modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
$(LIBTHREAD).
* modules/csharpcomp (Link): Link with $(LIBTHREAD).
* modules/javacomp (Link): Link with $(LIBTHREAD).
* modules/javaversion (Link): Link with $(LIBTHREAD).
* modules/pipe-filter-gi (Link): New section.
* modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
test-pipe-filter-gi2-main with $(LIBTHREAD).
* modules/pipe-filter-ii (Link): New section.
* modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
test-pipe-filter-ii2-main with $(LIBTHREAD).
* modules/term-style-control (Link): New section.
* modules/term-style-control-tests (Makefile.am): Link
test-term-style-control-hello, test-term-style-control-yes with
$(LIBTHREAD).
* modules/wait-process (Link): New section.
* modules/nonblocking-pipe-tests (Makefile.am): Link
test-nonblocking-pipe-main with $(LIBTHREAD).
* modules/nonblocking-socket-tests (Makefile.am): Link
test-nonblocking-socket-main with $(LIBTHREAD).

4 years agoFix link errors on platforms with libunistring.
Bruno Haible [Tue, 17 Nov 2020 01:51:29 +0000 (02:51 +0100)]
Fix link errors on platforms with libunistring.

* modules/c32isalnum (Link): New section.
* modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
$(LIBUNISTRING).
* modules/c32isalpha (Link): New section.
* modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
$(LIBUNISTRING).
* modules/c32isblank (Link): New section.
* modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
$(LIBUNISTRING).
* modules/c32iscntrl (Link): New section.
* modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
$(LIBUNISTRING).
* modules/c32isdigit (Link): New section.
* modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
$(LIBUNISTRING).
* modules/c32isgraph (Link): New section.
* modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
$(LIBUNISTRING).
* modules/c32islower (Link): New section.
* modules/c32islower-tests (Makefile.am): Link test-c32islower with
$(LIBUNISTRING).
* modules/c32isprint (Link): New section.
* modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
$(LIBUNISTRING).
* modules/c32ispunct (Link): New section.
* modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
$(LIBUNISTRING).
* modules/c32isspace (Link): New section.
* modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
$(LIBUNISTRING).
* modules/c32isupper (Link): New section.
* modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
$(LIBUNISTRING).
* modules/c32isxdigit (Link): New section.
* modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
$(LIBUNISTRING).
* modules/unicodeio (Link): Mention $(LIBUNISTRING).
* modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
$(LIBUNISTRING).

4 years agoFix link errors on platforms with libintl (e.g. Solaris and AIX).
Bruno Haible [Tue, 17 Nov 2020 01:30:29 +0000 (02:30 +0100)]
Fix link errors on platforms with libintl (e.g. Solaris and AIX).

Reported by Tom G. Christensen <tgc@jupiterrise.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.

* modules/getumask-tests (Makefile.am): Link test-getumask with
$(LIBINTL).
* modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
* modules/supersede-tests (Makefile.am): Link test-supersede with
$(LIBINTL).
* modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
$(LIBINTL).

4 years agogetumask: Document link dependencies.
Bruno Haible [Mon, 16 Nov 2020 15:37:44 +0000 (16:37 +0100)]
getumask: Document link dependencies.

* modules/getumask (Link): New section.

4 years agoUpdate link dependencies in modules after 2020-09-09 change.
Bruno Haible [Mon, 16 Nov 2020 15:35:31 +0000 (16:35 +0100)]
Update link dependencies in modules after 2020-09-09 change.

* modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
* modules/mkdtemp (Link): Likewise.
* modules/mkostemp (Link): Likewise.
* modules/mkostemps (Link): Likewise.
* modules/mkstemp (Link): Likewise.
* modules/mkstemps (Link): Likewise.
* modules/supersede (Link): Likewise.
* modules/tmpfile (Link): Likewise.
* modules/tmpfile-safer (Link): Likewise.

4 years agogetumask-tests: port to Solaris 10 etc.
Paul Eggert [Mon, 16 Nov 2020 03:54:33 +0000 (19:54 -0800)]
getumask-tests: port to Solaris 10 etc.

Problem reported by Tom Christensen in:
https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
* modules/getumask-tests (test_getumask_LDADD):
Add $(LIB_CLOCK_GETTIME).

4 years agobitset: use ffsl to accelerate iterations over set bits
Akim Demaille [Sat, 14 Nov 2020 15:58:23 +0000 (16:58 +0100)]
bitset: use ffsl to accelerate iterations over set bits

Currently we iterate over words bit by bit.  Instead, we should jump
from set bit to set bit.
Suggested by Bruno Haible.

* modules/bitset: Depend upon ffsl.
* lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
* lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.

4 years agobitset: more tests
Akim Demaille [Sat, 14 Nov 2020 15:01:23 +0000 (16:01 +0100)]
bitset: more tests

These new tests managed to uncover shortcomings in previous versions
of the following commit.

* tests/test-bitset.c (compare): Make it clear that the random values
should not be modified.
Check bitset_first, bitset_last and BITSET_FOR_EACH.

4 years agobitset: fix the copy from lbitset to other types
Akim Demaille [Sun, 15 Nov 2020 11:23:10 +0000 (12:23 +0100)]
bitset: fix the copy from lbitset to other types

bitset_copy from an lbitset did not check whether the destination has
the same type.  Apply the same strategy as elsewhere.

Without this commit, the following one fails.

* lib/bitset/list.c (lbitset_copy): Rename as...
(lbitset_copy_): this.
(lbitset_copy): New.
Dispatch to heterogeneous/homogeneous copy.

4 years agobitset: making debug traces more useful
Akim Demaille [Sun, 15 Nov 2020 11:22:20 +0000 (12:22 +0100)]
bitset: making debug traces more useful

* lib/bitset.c (bitset_print): Print the bitset type in verbose mode.

4 years agobitset: comment changes
Akim Demaille [Sat, 14 Nov 2020 15:04:10 +0000 (16:04 +0100)]
bitset: comment changes

* lib/bitset.c: Move some documenting comments to...
* lib/bitset.h: here.
* lib/bitset/array.c: Fix some comments.

4 years agocareadlinkat: warn better about GCC bug 93644
Paul Eggert [Sat, 14 Nov 2020 18:27:50 +0000 (10:27 -0800)]
careadlinkat: warn better about GCC bug 93644

* lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
not in effect, use "#warning" to let builders know more clearly
about GCC bug 93644, because the bug triggers even if no -W option
is given to GCC.

4 years agoautoupdate
Karl Berry [Sat, 14 Nov 2020 15:42:21 +0000 (07:42 -0800)]
autoupdate

4 years agoautoupdate
Karl Berry [Fri, 13 Nov 2020 18:28:34 +0000 (10:28 -0800)]
autoupdate

4 years agoautoupdate
Karl Berry [Fri, 13 Nov 2020 18:26:32 +0000 (10:26 -0800)]
autoupdate

4 years agohard-locale-tests: avoid a -Wstrict-prototypes warning
Jim Meyering [Fri, 13 Nov 2020 15:34:28 +0000 (07:34 -0800)]
hard-locale-tests: avoid a -Wstrict-prototypes warning

* tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
changing "main ()" to "main (void)". This was the only case that
triggered a warning when building grep with --enable-gcc-warnings.

4 years agotime_rz: simplify CVE-2017-7476 fix
Paul Eggert [Thu, 12 Nov 2020 03:20:42 +0000 (19:20 -0800)]
time_rz: simplify CVE-2017-7476 fix

* lib/time_rz.c: Do not include limits.h; I think it was included
under the mistaken impression that limits.h defines SIZE_MAX.
(SIZE_MAX): Remove.
(save_abbr): Put string length into a ptrdiff_t variable,
so that the size comparison works naturally.  This
fixes CVE-2017-7476 in a cleaner way.

4 years agoparse-datetime: streamline overflow checking
Paul Eggert [Thu, 12 Nov 2020 03:16:23 +0000 (19:16 -0800)]
parse-datetime: streamline overflow checking

When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
did not work for unsigned destinations, and since time_t might
be unsigned that meant it did not work for time_t destinations.
This limitation of INT_ADD_WRAPV has been fixed, so we can
now streamline parse-datetime.y a bit.
* lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
has not been used for a while.
(yylex, parse_datetime2): Assume C99 declarations after statements.
(yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
to TYPE_MINIMUM.
(parse_datetime2): No need for time_overflow now that
INT_ADD_WRAPV works for unsigned results.

4 years agoparse-datetime-tests: port to Alpine Linux 3.12.1
Paul Eggert [Thu, 12 Nov 2020 03:08:27 +0000 (19:08 -0800)]
parse-datetime-tests: port to Alpine Linux 3.12.1

* tests/test-parse-datetime.c: Include errno.h for errno,
and unistd.h for _SC_TZNAME_MAX and sysconf.
(main): In the outlandishly-long time zone abbreviation test,
do not exceed TZNAME_MAX as this has undefined behavior,
and on Alpine Linux 3.12.1 it makes the test fail.

4 years agoautoupdate
Karl Berry [Wed, 11 Nov 2020 16:16:41 +0000 (08:16 -0800)]
autoupdate

4 years agomgetgroups: avoid warning with clang
Pádraig Brady [Mon, 9 Nov 2020 13:12:31 +0000 (13:12 +0000)]
mgetgroups: avoid warning with clang

* lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
so disable -Wpointer-sign for all clang versions.

4 years agognulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
Bruno Haible [Sat, 7 Nov 2020 20:07:04 +0000 (21:07 +0100)]
gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).

Reported by Simon Josefsson in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.

* gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
LDADD a third time, after the second occurrence of ../lib/libgnu.a.
* pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.

4 years agoautoupdate
Karl Berry [Sat, 7 Nov 2020 17:16:59 +0000 (09:16 -0800)]
autoupdate

4 years agotests: pacify Sun C 5.9
Paul Eggert [Wed, 4 Nov 2020 23:13:40 +0000 (15:13 -0800)]
tests: pacify Sun C 5.9

Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
“"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
* tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
(thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
* tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
* tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
Remove unreachable ‘return NULL;’s.

4 years agotests: port better to XLC 12.01
Paul Eggert [Wed, 4 Nov 2020 22:51:38 +0000 (14:51 -0800)]
tests: port better to XLC 12.01

* tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
even in code that is not executed, as IBM XLC 12.01 complains "The
subscript -1 is less than zero."
* tests/test-stdint.c (verify_width): Pass an (unused) 3rd
argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
12.01 complains "The invocation of macro _GL_VERIFY contains fewer
arguments than are required by the macro definition."

4 years agoaligned-malloc: Use fixes from the new modules.
Bruno Haible [Wed, 4 Nov 2020 01:34:06 +0000 (02:34 +0100)]
aligned-malloc: Use fixes from the new modules.

* modules/aligned-malloc (Depends-on): Add posix_memalign,
aligned_alloc, memalign.
(configure.ac): Use AC_CHECK_FUNCS_ONCE.

4 years agoaligned_alloc: Add tests.
Bruno Haible [Wed, 4 Nov 2020 01:22:38 +0000 (02:22 +0100)]
aligned_alloc: Add tests.

* tests/test-aligned_alloc.c: New file.
* modules/aligned_alloc-tests: New file.

4 years agoaligned_alloc: New module.
Bruno Haible [Wed, 4 Nov 2020 01:22:33 +0000 (02:22 +0100)]
aligned_alloc: New module.

* lib/stdlib.in.h (aligned_alloc): New declaration.
* lib/aligned_alloc.c: New file.
* m4/aligned_alloc.m4: New file.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
* modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
* modules/aligned_alloc: New file.
* tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
* doc/posix-functions/aligned_alloc.texi: Mention the new module and the
AIX bug.

4 years agoposix_memalign: Add tests.
Bruno Haible [Wed, 4 Nov 2020 01:19:12 +0000 (02:19 +0100)]
posix_memalign: Add tests.

* tests/test-posix_memalign.c: New file.
* modules/posix_memalign-tests: New file.

4 years agoposix_memalign: New module.
Bruno Haible [Wed, 4 Nov 2020 01:19:08 +0000 (02:19 +0100)]
posix_memalign: New module.

* lib/stdlib.in.h (posix_memalign): New declaration.
* lib/posix_memalign.c: New file.
* m4/posix_memalign.m4: New file.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
* modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
* modules/posix_memalign: New file.
* tests/test-stdlib-c++.cc (posix_memalign): Check signature.
* doc/posix-functions/posix_memalign.texi: Mention the new module and
the OpenBSD bug.

4 years agomemalign: Add tests.
Bruno Haible [Wed, 4 Nov 2020 01:12:22 +0000 (02:12 +0100)]
memalign: Add tests.

* tests/test-memalign.c: New file.
* modules/memalign-tests: New file.

4 years agomemalign: New module.
Bruno Haible [Wed, 4 Nov 2020 01:12:15 +0000 (02:12 +0100)]
memalign: New module.

* modules/memalign: New file.
* doc/glibc-functions/memalign.texi: Mention the new module.

4 years agoverify tests: Fix crash with GCC (regression 2020-11-02).
Bruno Haible [Tue, 3 Nov 2020 16:15:21 +0000 (17:15 +0100)]
verify tests: Fix crash with GCC (regression 2020-11-02).

* tests/test-verify.c (main): Fix initializer of s.

4 years agomountlist: recognize more file system types as remote
Pádraig Brady [Tue, 27 Oct 2020 21:04:14 +0000 (21:04 +0000)]
mountlist: recognize more file system types as remote

Sync "remote" file systems from stat.c in coreutils.
Note we only consider file systems that do not use host:resource
mount source.  I.e. those that don't generally use a colon when
mounting, as that case is already considered.  Searching for
"<fstype> /etc/fstab" was informative for identifying these.
The full list of "remote" file systems in coreutils is currently:
  acfs afs ceph cifs coda fhgfs fuseblk fusectl
  gfs gfs2 gpfs ibrix k-afs lustre novell nfs nfsd
  ocfs2 panfs prl_fs smb smb2 snfs vboxsf vmhgfs vxfs
Note also we do not include virtual machine file systems,
as even though they're remote to the current kernel,
they are generally not distributed to separate hosts.

* lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
"remote" file systems from stat.c in coreutils.

4 years agoverify tests: Fix -Wuninitialized warning (regression 2020-10-30)
Bernhard Voelker [Mon, 2 Nov 2020 01:10:49 +0000 (02:10 +0100)]
verify tests: Fix -Wuninitialized warning (regression 2020-10-30)

* tests/test-verify.c (main): Initialize state variable.
Reported by Bruno Haible for GCC 5.4.0.

4 years agodfa.h: support inclusion from C++
Paul Eggert [Mon, 2 Nov 2020 18:53:08 +0000 (10:53 -0800)]
dfa.h: support inclusion from C++

* lib/dfa.h: Allow multiple inclusion, and inclusion from
C++ code.  The latter was suggested by Arnold Robbins.

4 years agossfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
Bruno Haible [Mon, 2 Nov 2020 00:37:02 +0000 (01:37 +0100)]
ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.

* tests/test-ssfmalloc.c: Include <limits.h>.
(PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.

4 years agoverify tests: Fix compilation error with MSVC (regression 2020-10-30).
Bruno Haible [Mon, 2 Nov 2020 00:31:09 +0000 (01:31 +0100)]
verify tests: Fix compilation error with MSVC (regression 2020-10-30).

* tests/test-verify.c (test_assume_noreturn): Fix declaration.

4 years agodfa-tests: test for today's invalid-merge fix
Jim Meyering [Sun, 1 Nov 2020 15:39:49 +0000 (07:39 -0800)]
dfa-tests: test for today's invalid-merge fix

* tests/test-dfa-invalid-merge.sh: New file.
* modules/dfa-tests (Files): Add it.
(TESTS): Add it.

4 years agodfa: retain sequences of similar nodes in optimization
Norihiro Tanaka [Sun, 1 Nov 2020 07:31:38 +0000 (16:31 +0900)]
dfa: retain sequences of similar nodes in optimization

DFA was merging similar nodes when it should not.  For example,
it would convert a+a+a to a+a.  Now, a sequence of similar nodes
is not merged.

Problem reported by Gonzalo Padrino in https://bugs.gnu.org/44351

* lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
optimization.

4 years agotest-dfa-match-aux.c: accept EREs, not BREs
Jim Meyering [Sun, 1 Nov 2020 16:57:23 +0000 (08:57 -0800)]
test-dfa-match-aux.c: accept EREs, not BREs

* tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.

4 years agoverify tests: avoid -Wmissing-declarations warnings
Bernhard Voelker [Fri, 30 Oct 2020 01:46:44 +0000 (02:46 +0100)]
verify tests: avoid -Wmissing-declarations warnings

* tests/test-verify.c (test_assume_expressions): Add declaration.
(test_assume_optimization): Likewise.
(test_assume_noreturn): Likewise.
(main): Move down after all other definitions.  While at it, also
call test_assume_expressions and test_assume_optimization as a
runtime check.

4 years agosys_stat: update comments for S_IRWXUGO, S_IXUGO
Paul Eggert [Mon, 26 Oct 2020 23:52:23 +0000 (16:52 -0700)]
sys_stat: update comments for S_IRWXUGO, S_IXUGO

* lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
Perhaps these macros should be removed, as they’re not in either
POSIX or GNU.  They could be moved to stat-macros.h, which would
be cleaner in some sense.

4 years agossfmalloc tests: Small tweaks.
Bruno Haible [Sun, 25 Oct 2020 17:18:06 +0000 (18:18 +0100)]
ssfmalloc tests: Small tweaks.

* tests/test-ssfmalloc.c: Add comments.
(alloc_pages): Don't require PROT_EXEC bits.
(block_sizes): Add more small sizes, for better coverage of
ssfmalloc-bitmap.h.

4 years agossfmalloc tests: Portability to Minix.
Bruno Haible [Sun, 25 Oct 2020 17:16:10 +0000 (18:16 +0100)]
ssfmalloc tests: Portability to Minix.

* modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
(configure.ac): Invoke gl_FUNC_MMAP_ANON.
* m4/mmap-anon.m4: Update comment.

4 years agossfmalloc: Portability to AIX.
Bruno Haible [Sun, 25 Oct 2020 17:14:09 +0000 (18:14 +0100)]
ssfmalloc: Portability to AIX.

* modules/ssfmalloc (Include): Add ssfmalloc.h.
(Link): New section.
* modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
$(LIBTHREAD).

4 years agossfmalloc: Portability to Cygwin.
Bruno Haible [Sun, 25 Oct 2020 17:08:44 +0000 (18:08 +0100)]
ssfmalloc: Portability to Cygwin.

* lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
(pg_offset_t): Define depending on PAGESIZE_MAX.
* tests/test-ssfmalloc.c: Undefine PAGESIZE.
(PAGESIZE_MAX): New macro.

4 years agossfmalloc: Fix buffer overrun in bitmap search.
Bruno Haible [Sun, 25 Oct 2020 17:03:34 +0000 (18:03 +0100)]
ssfmalloc: Fix buffer overrun in bitmap search.

* lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
word *words_end.

4 years agoautoupdate
Karl Berry [Sun, 25 Oct 2020 14:05:29 +0000 (07:05 -0700)]
autoupdate

4 years agodoc: mention ‘restrict’ and C++
Paul Eggert [Sat, 24 Oct 2020 20:35:17 +0000 (13:35 -0700)]
doc: mention ‘restrict’ and C++

* doc/gnulib-readme.texi (C99 features assumed): Document
that ‘restrict’ should be avoided in C++ code.

4 years agoautoupdate
Karl Berry [Thu, 22 Oct 2020 15:59:02 +0000 (08:59 -0700)]
autoupdate

4 years agoselinux-at, selinux-h: port to SELinux 3.1
Bernhard Voelker [Mon, 19 Oct 2020 23:37:09 +0000 (16:37 -0700)]
selinux-at, selinux-h: port to SELinux 3.1

The new release finally deprecated the typedef 'security_context_t',
see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
Use the simpler 'char *' instead.
* lib/getfilecon.c (getfilecon): Adjust type of context parameter.
(lgetfilecon): Likewise.
(fgetfilecon): Likewise.
(map_to_failure): Likewise.
(rpl_getfilecon): Likewise.
(rpl_lgetfilecon): Likewise.
(rpl_fgetfilecon): Likewise.
* lib/se-selinux.in.h (security_context_t): Remove typedef.
(getcon): Adjust type of context parameter.
(freecon): Likewise.
(getfscreatecon): Likewise.
(setfscreatecon): Likewise.
(matchpathcon): Likewise.
(getfilecon): Likewise.
(lgetfilecon): Likewise.
(fgetfilecon): Likewise.
(setfilecon): Likewise.
(lsetfilecon): Likewise.
(fsetfilecon): Likewise.
(security_check_context): Likewise.
(security_check_context_raw): Likewise.
(setexeccon): Likewise.
(security_compute_create): Likewise.
* lib/selinux-at.c (getfileconat): Likewise.
(lgetfileconat): Likewise.
(setfileconat): Likewise.
(lsetfileconat): Likewise.
* lib/selinux-at.h: Likewise.

4 years agoxalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
Bruno Haible [Mon, 19 Oct 2020 23:12:51 +0000 (01:12 +0200)]
xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).

* lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
(xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
* modules/xalloc (configure.ac): Define GNULIB_XALLOC.
* modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.

4 years agossfmalloc: Add tests.
Bruno Haible [Mon, 19 Oct 2020 02:04:18 +0000 (04:04 +0200)]
ssfmalloc: Add tests.

* tests/test-ssfmalloc.c: New file.
* modules/ssfmalloc-tests: New file.

4 years agossfmalloc: New module.
Bruno Haible [Mon, 19 Oct 2020 02:03:09 +0000 (04:03 +0200)]
ssfmalloc: New module.

* lib/ssfmalloc.h: New file.
* lib/ssfmalloc-bitmap.h: New file.
* modules/ssfmalloc: New file.

4 years agowchar: Fix configure test result on some versions of AIX.
Bruno Haible [Sun, 18 Oct 2020 21:05:38 +0000 (23:05 +0200)]
wchar: Fix configure test result on some versions of AIX.

Reported by Clément Chigot <clement.chigot@atos.net> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.

* m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
systems.

4 years agotime: Fix warning about asctime when asctime is not used.
Bruno Haible [Sun, 18 Oct 2020 18:42:56 +0000 (20:42 +0200)]
time: Fix warning about asctime when asctime is not used.

* lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
invocation.