]> Savannah Git Hosting - gnulib.git/log
gnulib.git
4 years agodoc: Add more details regarding the undefined behaviour sanitizer.
Bruno Haible [Sun, 6 Dec 2020 16:59:45 +0000 (17:59 +0100)]
doc: Add more details regarding the undefined behaviour sanitizer.

* doc/gnulib-readme.texi (High Quality): Describe
-fsanitize-undefined-trap-on-error better.

4 years agoDo the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
Bruno Haible [Sun, 6 Dec 2020 15:43:36 +0000 (16:43 +0100)]
Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.

Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.

* lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
* lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
defined: 1. Define a symbol in this namespace. 2. Don't redirect using
a preprocessor #define.
* lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
* lib/search.in.h (lfind, lsearch): Likewise.
* lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
Likewise.
* lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
* lib/string.in.h (memccpy, strdup): Likewise.
* lib/sys_stat.in.h (chmod, umask): Likewise.
* lib/time.in.h (tzset): Likewise.
* lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
read, rmdir, swab, unlink, write): Likewise.
* lib/utime.in.h (utime): Likewise.
* lib/wchar.in.h (wcsdup): Likewise.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
(gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
* modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
HAVE_DECL_FCVT, HAVE_DECL_GCVT.
(gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
* modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
HAVE_DECL_FCVT, HAVE_DECL_GCVT.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
(gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
* modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
* m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
(gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
* modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.

4 years agodoc: Mention some missing function declarations.
Bruno Haible [Sun, 6 Dec 2020 14:51:41 +0000 (15:51 +0100)]
doc: Mention some missing function declarations.

* doc/glibc-functions/execvpe.texi: Mention the missing declaration on
AIX.
* doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
FreeBSD.
* doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
Cygwin.
* doc/pastposix-functions/fcvt.texi: Likewise.
* doc/pastposix-functions/gcvt.texi: Likewise.

4 years agodoc: Tweak example.
Bruno Haible [Sun, 6 Dec 2020 11:49:58 +0000 (12:49 +0100)]
doc: Tweak example.

* doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
'print'.

4 years agofilenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
Bruno Haible [Sun, 6 Dec 2020 11:31:15 +0000 (12:31 +0100)]
filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.

* tests/test-filenamecat.c: Include idx.h.
(main): Mark prefixlen as nonnegative.
* modules/filenamecat-tests (Depends-on): Add idx.

4 years agotime_rz: Use idx_t for nonnegative ptrdiff_t variables.
Bruno Haible [Sun, 6 Dec 2020 11:31:13 +0000 (12:31 +0100)]
time_rz: Use idx_t for nonnegative ptrdiff_t variables.

* lib/time_rz.c: Include idx.h.
(save_abbr): Mark zone_size as nonnegative.
* modules/time_rz (Depends-on): Add idx.

4 years agoparse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
Bruno Haible [Sun, 6 Dec 2020 11:31:11 +0000 (12:31 +0100)]
parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.

* lib/parse-datetime.y: Include idx.h.
(textint): Mark digits as nonnegative.
(parser_control): Mark dates_seen, days_seen, local_zones_seen,
dsts_seen, times_seen, zones_seen as nonnegative.
(lookup_word): Mark wordlen as nonnegative.
(yylex): Mark count as nonnegative.
(parse_datetime2): Mark tzsize as nonnegative.
* modules/parse-datetime (Depends-on): Add idx.

4 years agofnmatch: Use idx_t for nonnegative ptrdiff_t variables.
Bruno Haible [Sun, 6 Dec 2020 11:31:08 +0000 (12:31 +0100)]
fnmatch: Use idx_t for nonnegative ptrdiff_t variables.

* lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
* lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
nonnegative.
* modules/fnmatch (Depends-on): Add idx.

4 years agoc-stack: Use idx_t for nonnegative ptrdiff_t variables.
Bruno Haible [Sun, 6 Dec 2020 11:31:06 +0000 (12:31 +0100)]
c-stack: Use idx_t for nonnegative ptrdiff_t variables.

* lib/c-stack.c: Include idx.h.
(die): Mark buflen as nonnegative.
* modules/c-stack (Depends-on): Add idx.

4 years agobackupfile: Use idx_t for nonnegative ptrdiff_t variables.
Bruno Haible [Sun, 6 Dec 2020 11:30:42 +0000 (12:30 +0100)]
backupfile: Use idx_t for nonnegative ptrdiff_t variables.

* lib/backupfile.c: Include idx.h.
(numbered_backup): Mark base_offset as nonnegative.
(backupfile_internal): Likewise.
* modules/backup-rename (Depends-on): Add idx.
* modules/backupfile (Depends-on): Likewise.

4 years agodoc: fix curved quotes issue
Paul Eggert [Sun, 6 Dec 2020 01:33:29 +0000 (17:33 -0800)]
doc: fix curved quotes issue

* doc/gnulib.texi: Set txicodequoteundirected and
txicodequotebacktick so that ` and ' in examples do not generate
curved single quotes that do the wrong thing when cut and pasted.

4 years agodoc: mention static and dynamic checking
Paul Eggert [Sun, 6 Dec 2020 01:31:43 +0000 (17:31 -0800)]
doc: mention static and dynamic checking

* doc/gnulib-readme.texi (High Quality): Add a bit of advice
for static and dynamic checking.

4 years agointprops: Add INT_ADD_OK etc.
Paul Eggert [Sat, 5 Dec 2020 23:54:22 +0000 (15:54 -0800)]
intprops: Add INT_ADD_OK etc.

* doc/intprops.texi (Checking Integer Overflow): New section.
* lib/intprops.h: From a suggestion by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
(SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.

4 years agodoc: move exotic platfroms to Target Platforms
Paul Eggert [Sat, 5 Dec 2020 21:10:28 +0000 (13:10 -0800)]
doc: move exotic platfroms to Target Platforms

* doc/gnulib-intro.texi (Supported Platforms)
(Formerly Supported Platforms, Unsupported Platforms):
New subsections, split off from Target Platforms.
(Unsupported Platforms): Move the exotic-platform stuff here ...
* doc/gnulib-readme.texi (Exotic platforms): ... from this removed
section.

4 years agodoc: minor rewording for IBM i
Paul Eggert [Sat, 5 Dec 2020 19:42:28 +0000 (11:42 -0800)]
doc: minor rewording for IBM i

4 years agodoc: mention intptr_t etc. and IBM i
Paul Eggert [Sat, 5 Dec 2020 19:27:13 +0000 (11:27 -0800)]
doc: mention intptr_t etc. and IBM i

* doc/gnulib-readme.texi (Other portability assumptions):
Mention intptr_t and uintptr_t, and that arithmetic on them
works in the usual way.
(Exotic platforms): New section, containing material from
the old 'Integer Portability' section.  Also mention IBM i.
* doc/intprops.texi (Wraparound Arithmetic):
Say that the macros work on unsigned integers too.
(Integer Portability): Remove.

4 years agoutime: Fix a test failure on macOS 10.13.
Bruno Haible [Sat, 5 Dec 2020 01:51:06 +0000 (02:51 +0100)]
utime: Fix a test failure on macOS 10.13.

* lib/utime.c (utime): Fix mistake in last commit.

4 years agoutime: Fix a test failure on macOS 10.13.
Bruno Haible [Fri, 4 Dec 2020 23:17:02 +0000 (00:17 +0100)]
utime: Fix a test failure on macOS 10.13.

Reported by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.

* m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
slashes on files.
* lib/utime.c (utime): Add alternative implementation for Unix
platforms.
* modules/utime (Depends-on): Add stat.
* doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
* doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
trailing-slash bug.
* doc/posix-functions/open.texi: Likewise.
* doc/posix-functions/stat.texi: Likewise.
* doc/posix-functions/symlink.texi: Likewise.

4 years agointprops: update doc and mention Unisys
Paul Eggert [Fri, 4 Dec 2020 18:44:51 +0000 (10:44 -0800)]
intprops: update doc and mention Unisys

* doc/gnulib-readme.texi (Other portability assumptions):
Also mention ptrdiff_t when talking about widths and overflow.
* doc/intprops.texi (Integer Properties): Summarize new section.
(Arithmetic Type Properties): Document that EXPR_SIGNED no longer
evaluates its argument.
(Integer Bounds): Fix typo.
(Wraparound Arithmetic): Remove obsolete comment about efficiency.
Document that the _WRAPV macros now support pointers to unsigned
integers.
(Integer Range Overflow): Update SEI CERT citation.
(Integer Portability): New subsection, which mentions
the oddball Unisys platforms as non-Gnulib targets.

4 years agoidx: Clarify that idx_t always behaves like a signed type.
Bruno Haible [Fri, 4 Dec 2020 02:19:47 +0000 (03:19 +0100)]
idx: Clarify that idx_t always behaves like a signed type.

Suggested by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.

* lib/idx.h: Clarify that idx_t always behaves like a signed type.
Don't test UNSIGNED_IDX_T.

4 years agoidx: New module.
Bruno Haible [Thu, 3 Dec 2020 21:56:22 +0000 (22:56 +0100)]
idx: New module.

* lib/idx.h: New file.
* modules/idx: New file.
* lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
ptrdiff_t.
* lib/canonicalize.c: Likewise.
* modules/canonicalize-lgpl (Depends-on): Add idx.
* modules/canonicalize (Depends-on): Likewise.

4 years agofprintf-posix-tests: Avoid a test failure on macOS 10.13.
Bruno Haible [Thu, 3 Dec 2020 20:00:35 +0000 (21:00 +0100)]
fprintf-posix-tests: Avoid a test failure on macOS 10.13.

Reported by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.

* tests/test-fprintf-posix3.c: Skip the test on macOS.
(main): Return a different exit code at each point. Allow 100 KB extra
memory consumption.
* tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
doesn't work" diagnostic.

4 years agocanonicalize: refactor can_mode flag
Paul Eggert [Wed, 2 Dec 2020 22:25:43 +0000 (14:25 -0800)]
canonicalize: refactor can_mode flag

* lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
(multiple_bits_set): ... this new static function.  Uses changed.
(canonicalize_filename_mode): Refactor for clarity to avoid
modifying the CAN_MODE argument.

4 years agocanonicalize: prefer signed integer types
Paul Eggert [Wed, 2 Dec 2020 22:25:43 +0000 (14:25 -0800)]
canonicalize: prefer signed integer types

* lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
(seen_triple, canonicalize_filename_mode): Prefer signed to
unsigned types where either will do, as they avoid some glitches
in comparisons and can trap on overflow when debugging.

4 years agocanonicalize: fix most of another EOVERFLOW issue
Paul Eggert [Wed, 2 Dec 2020 22:25:42 +0000 (14:25 -0800)]
canonicalize: fix most of another EOVERFLOW issue

* lib/canonicalize.c (canonicalize_filename_mode):
Do not call stat if fewer than 20 symlinks have been traversed.
This avoids EOVERFLOW failure in the common case where there
are not that many symlinks, while continuing to catch loops
(or fail due to EOVERFLOW) in the unusual case when there
are many symlinks to traverse.

4 years agocanonicalize: do not assume symlinks have st_ino
Paul Eggert [Wed, 2 Dec 2020 22:25:42 +0000 (14:25 -0800)]
canonicalize: do not assume symlinks have st_ino

* lib/canonicalize.c (canonicalize_filename_mode):
When checking for loops, use st_dev and st_ino from the parent
directory not from the symlink, as pre-2017 POSIX says these
members are not reliable for symlinks.  Couple this with START
(the remaining file name to be resolved), not NAME (the whole file
name with START as its suffix).
* modules/canonicalize (Depends-on): Depend on stat, not lstat.

4 years agocanonicalize: fix EOVERFLOW bug
Paul Eggert [Wed, 2 Dec 2020 22:25:41 +0000 (14:25 -0800)]
canonicalize: fix EOVERFLOW bug

* lib/canonicalize.c (canonicalize_filename_mode):
When testing whether a directory entry is a symbolic link, or a
directory or other, do not use lstat or stat or
areadlink_with_size.  Just use areadlink, as this suffices and it
avoids the EOVERFLOW problem that lstat and stat have.
* modules/canonicalize (Depends-on): Depend on areadlink instead
of areadlink-with-size and stat.

4 years agocanonicalize-lgpl: fix EOVERFLOW bug
Paul Eggert [Wed, 2 Dec 2020 22:25:41 +0000 (14:25 -0800)]
canonicalize-lgpl: fix EOVERFLOW bug

* lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
(__realpath): Do not use lstat.  Just use readlink, as this
suffices and it avoids the EOVERFLOW problem that lstat has.
* modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.

4 years agostrsignal-tests: Fix test failure on macOS 10.13.
Bruno Haible [Wed, 2 Dec 2020 21:30:10 +0000 (22:30 +0100)]
strsignal-tests: Fix test failure on macOS 10.13.

Reported by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.

* tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
to be longer than the expected result.

4 years agoFix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
Bruno Haible [Wed, 2 Dec 2020 20:15:21 +0000 (21:15 +0100)]
Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.

* lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
recursive self-include problem on FreeBSD 12.2 in C++ mode.

4 years agospawn-pipe: Allow caller to specify directory for the subprocess.
Bruno Haible [Wed, 2 Dec 2020 16:52:00 +0000 (17:52 +0100)]
spawn-pipe: Allow caller to specify directory for the subprocess.

* lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
Add directory argument.
* lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
(create_pipe): Add directory argument. If specified, resolve the program
file name and make it absolute, first. Pass the directory to spawnpvech
and posix_spawn_file_actions_addchdir.
(create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
argument.
* modules/spawn-pipe (Depends-on): Add canonicalize, filename,
findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
* tests/test-spawn-pipe-main.c (test_pipe): Update.
* NEWS: Mention the change.
* lib/csharpcomp.c (compile_csharp_using_mono,
compile_csharp_using_sscli): Update.
* lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
is_gcj_43): Update.
* lib/javaversion.c (execute_and_read_line): Update.
* lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
* lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.

4 years agoexecute: Allow caller to specify directory for the subprocess.
Bruno Haible [Wed, 2 Dec 2020 16:44:04 +0000 (17:44 +0100)]
execute: Allow caller to specify directory for the subprocess.

* lib/execute.h (execute): Add directory argument.
* lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
(execute): Add directory argument. If specified, resolve the program
file name and make it absolute, first. Pass the directory to spawnpvech
and posix_spawn_file_actions_addchdir.
* modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
posix_spawn, posix_spawn_file_actions_addchdir.
* tests/test-execute-main.c: Add test for passing a directory.
* tests/test-execute-child.c: Likewise.
* tests/test-execute.sh: Update.
* modules/execute-tests (Depends-on): Add mkdir.
* NEWS: Mention the change.
* lib/csharpcomp.c (compile_csharp_using_sscli): Update.
* lib/csharpexec.c (execute_csharp_using_mono,
execute_csharp_using_sscli): Update.
* lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
compile_using_javac, compile_using_jikes, is_javac_present,
is_jikes_present): Update.
* lib/javaexec.c (execute_java_class): Update.

4 years agoautoupdate
Karl Berry [Wed, 2 Dec 2020 15:38:49 +0000 (07:38 -0800)]
autoupdate

4 years agovma-iter: Add support for macOS11/arm64.
Bruno Haible [Tue, 1 Dec 2020 18:57:17 +0000 (19:57 +0100)]
vma-iter: Add support for macOS11/arm64.

Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
<https://gitlab.com/gnu-clisp/clisp/-/issues/27>
and by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.

* lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.

4 years agospawn-pipe: Fix handling of OS/2 kLIBC.
Bruno Haible [Tue, 1 Dec 2020 18:32:53 +0000 (19:32 +0100)]
spawn-pipe: Fix handling of OS/2 kLIBC.

Reported by KO Myung-Hun <komh78@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.

* modules/spawn-pipe (configure.ac): Use the common idiom for
recognizing the OS/2 operating system.

4 years agoexecute: Fix uninitialized use of errno.
Bruno Haible [Tue, 1 Dec 2020 02:59:57 +0000 (03:59 +0100)]
execute: Fix uninitialized use of errno.

* lib/execute.c (execute): Preserve errno across several system calls.

4 years agoaccess tests: Fix test failure on native Windows.
Bruno Haible [Mon, 30 Nov 2020 22:32:36 +0000 (23:32 +0100)]
access tests: Fix test failure on native Windows.

* tests/test-access.c (main): Change permissions of f2 file before
attempting to remove it.

4 years agofaccessat: link with $(LIB_EACCESS)
Paul Eggert [Mon, 30 Nov 2020 18:45:47 +0000 (10:45 -0800)]
faccessat: link with $(LIB_EACCESS)

* modules/faccessat (Link:): Add $(LIB_EACCESS), since this
module depends on euidaccess.

4 years agoexecute, spawn-pipe: Make multithread-safe on native Windows.
Bruno Haible [Mon, 30 Nov 2020 16:58:57 +0000 (17:58 +0100)]
execute, spawn-pipe: Make multithread-safe on native Windows.

* lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
(dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
(spawnpvech): New declaration.
* lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
(_): Remove macro.
(dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
undup_safer_noinherit): Remove functions.
(spawnpvech): New function.
* modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
cloexec, dup2, error, gettext-h.
* lib/execute.c: Include msvc-nothrow.h.
(execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
* lib/spawn-pipe.c: Include msvc-nothrow.h.
(create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
instead of _spawnvpe.
* modules/execute (Depends-on): Add msvc-nothrow.
* modules/spawn-pipe (Depends-on): Likewise.

4 years agoexecute, spawn-pipe: Improve documentation.
Bruno Haible [Mon, 30 Nov 2020 02:01:22 +0000 (03:01 +0100)]
execute, spawn-pipe: Improve documentation.

* lib/execute.h: Describe progname, prog_path, prog_argv.
* lib/spawn-pipe.h: Likewise.

4 years agoexecute tests: Add more tests.
Bruno Haible [Mon, 30 Nov 2020 13:37:03 +0000 (14:37 +0100)]
execute tests: Add more tests.

* tests/test-execute-main.c: Add tests for reading, writing, isatty on
inherited file descriptors >= 3.
* tests/test-execute-child.c: Likewise.
* tests/test-execute.sh: Update.

4 years agohavelib: Fix for non-ELF platforms (regression 2019-11-17).
Bruno Haible [Mon, 30 Nov 2020 07:35:59 +0000 (08:35 +0100)]
havelib: Fix for non-ELF platforms (regression 2019-11-17).

Reported by comex <comexk@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.

* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
don't expect an ELF header.

4 years agobitset: use integer_length in table implementation
Akim Demaille [Sun, 29 Nov 2020 16:09:47 +0000 (17:09 +0100)]
bitset: use integer_length in table implementation

* lib/bitset/table.c (tbitset_list_reverse): Use
BITSET_FOR_EACH_BIT_REVERSE.

4 years agobitset: use integer_length in list implementation
Akim Demaille [Sun, 29 Nov 2020 16:04:14 +0000 (17:04 +0100)]
bitset: use integer_length in list implementation

* lib/bitset/list.c (lbitset_list_reverse): Use
BITSET_FOR_EACH_BIT_REVERSE.

4 years agobitset: use integer_length in vector implementation
Akim Demaille [Sun, 29 Nov 2020 14:55:35 +0000 (15:55 +0100)]
bitset: use integer_length in vector implementation

* lib/bitset/array.c (vbitset_list_reverse): Use
BITSET_FOR_EACH_BIT_REVERSE.

4 years agobitset: use integer_length in array implementation
Akim Demaille [Sun, 22 Nov 2020 15:46:47 +0000 (16:46 +0100)]
bitset: use integer_length in array implementation

* modules/bitset (Depends-on): Add integer_length_l.
* lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
* lib/bitset/array.c (abitset_list_reverse): Use it.

4 years agobitset: style: use consistent names
Akim Demaille [Sun, 29 Nov 2020 14:59:22 +0000 (15:59 +0100)]
bitset: style: use consistent names

* bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
and 'boffset' as 'bitoff', for consistency with the other
implementations.
* bitset/table.c (tbitset_list_reverse): Likewise.

4 years agobitset: style: sort header
Akim Demaille [Sun, 22 Nov 2020 15:37:37 +0000 (16:37 +0100)]
bitset: style: sort header

* lib/bitset/base.h (bitset_ffs): Rename as...
(bitset_ffs_): this.
(bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.

4 years agobitset: tests: check BITSET_FOR_EACH_REVERSE
Akim Demaille [Sat, 21 Nov 2020 13:11:34 +0000 (14:11 +0100)]
bitset: tests: check BITSET_FOR_EACH_REVERSE

* tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
Check BITSET_FOR_EACH_REVERSE.

4 years agospawn-pipe tests: Fix test failure with MSVC.
Bruno Haible [Sun, 29 Nov 2020 22:14:56 +0000 (23:14 +0100)]
spawn-pipe tests: Fix test failure with MSVC.

* tests/test-spawn-pipe-child.c: Include <stdint.h>.
(gl_msvc_invalid_parameter_handler): New function.
(main): Set a global invalid-parameter handler.
* modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.

4 years agoexecute: Add tests.
Bruno Haible [Sun, 29 Nov 2020 20:27:57 +0000 (21:27 +0100)]
execute: Add tests.

* tests/test-execute.sh: New file.
* tests/test-execute-main.c: New file.
* tests/test-execute-child.c: New file.
* modules/execute-tests: New file.

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).