]> Savannah Git Hosting - gnulib.git/log
gnulib.git
4 years agodoc: Update doc about realpath.
Bruno Haible [Fri, 15 Jan 2021 09:22:33 +0000 (10:22 +0100)]
doc: Update doc about realpath.

* doc/posix-functions/realpath.texi: Update info about macOS.

4 years agoverify: simplify static_assert configuration
Paul Eggert [Wed, 13 Jan 2021 23:46:33 +0000 (15:46 -0800)]
verify: simplify static_assert configuration

* lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1):
Do not define for C++.  This should be good enough nowadays,
since recent-enough C++ compilers have static_assert.
(_GL_HAVE_STATIC_ASSERT_CXX11, _GL_HAVE_STATIC_ASSERT_CXX17):
Remove.  All uses replaced by simply checking __cpp_static_assert.

4 years agolib-msvc-compat: Update libtool usage recommendation.
Simon Josefsson [Wed, 13 Jan 2021 13:38:20 +0000 (14:38 +0100)]
lib-msvc-compat: Update libtool usage recommendation.

* doc/ld-output-def.texi (Visual Studio Compatibility): Install
.def files into libdir, not bindir.  Have libfoo-*.def file depend
on libfoo.la to fix parallell builds.

4 years agoverify: Use C++11 static_assert when available.
Bruno Haible [Tue, 12 Jan 2021 20:11:13 +0000 (21:11 +0100)]
verify: Use C++11 static_assert when available.

Reported by Alexandre Duret-Lutz <adl@lrde.epita.fr> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00177.html>.

* lib/verify.h (_GL_HAVE_STATIC_ASSERT_CXX11): New macro.
(_GL_HAVE_STATIC_ASSERT_CXX17): Renamed from _GL_HAVE_STATIC_ASSERT1.
(_GL_VERIFY): Use static_assert when available with C++11 syntax.

4 years agotempname: consume less entropy
Paul Eggert [Tue, 12 Jan 2021 00:46:12 +0000 (16:46 -0800)]
tempname: consume less entropy

Derived from a glibc patch proposed by Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
* lib/tempname.c: Include stdbool.h.
(random_bits): New arg use_getrandom.
(try_tempname_len): Skip getrandom on the first try,
unless __GT_NOCREATE.
* modules/tempname (Depends-on): Add stdbool.

4 years agolchmod-tests: Fix link error.
Bruno Haible [Sun, 10 Jan 2021 22:06:39 +0000 (23:06 +0100)]
lchmod-tests: Fix link error.

* modules/lchmod-tests (Makefile.am): Don't assume that LIBINTL is set.

4 years agoCorrect preceeding change.
Simon Josefsson [Sun, 10 Jan 2021 10:28:31 +0000 (11:28 +0100)]
Correct preceeding change.

* top/gitsub.sh: Update link.

4 years agoimmutable: Add tests.
Bruno Haible [Sun, 10 Jan 2021 00:15:01 +0000 (01:15 +0100)]
immutable: Add tests.

* tests/test-immutable.sh: New file.
* tests/test-immutable.c: New file.
* modules/immutable-tests: New file.

4 years agoimmutable: New module.
Bruno Haible [Sun, 10 Jan 2021 00:13:04 +0000 (01:13 +0100)]
immutable: New module.

* lib/immutable.h: New file.
* lib/immutable.c: New file.
* m4/immutable.m4: New file.
* m4/mprotect.m4: New file, based on libffcall/m4/codeexec.m4.
* modules/immutable: New file.

4 years agoUse https:// instead of git://.
Simon Josefsson [Sun, 10 Jan 2021 00:08:38 +0000 (01:08 +0100)]
Use https:// instead of git://.

* build-aux/bootstrap (default_gnulib_url): Ditto.
* config/srclistvars.sh: Ditto.
* doc/gnulib-readme.texi (Git Checkout): Ditto.
* doc/gnulib-tool.texi (VCS Issues): Ditto.
* top/gitsub.sh: Update link.

4 years agosnippet/_Noreturn: port to pedantic clang
Paul Eggert [Sat, 9 Jan 2021 22:17:32 +0000 (14:17 -0800)]
snippet/_Noreturn: port to pedantic clang

Problem reported by Joe Nelson in:
https://lists.gnu.org/r/bug-gnulib/2021-01/msg00152.html
* doc/noreturn.texi: Improve.
* lib/_Noreturn.h (_Noreturn):
* m4/gnulib-common.m4 (gl_COMMON_BODY):
Do not assume _Noreturn works as-is when __STRICT_ANSI__ is
defined, unless __STDC_VERSION__ indicates C11 or later.
* lib/_Noreturn.h (_Noreturn): Fall back on __attribute__
((__noreturn__)) if Clang; this merges the
2020-08-10T23:53:13Zbruno@clisp.org patch to m4/gnulib-common.m4.

4 years agoAllow setting CVS username for gnu-web-doc-update.
Darshit Shah [Sat, 9 Jan 2021 10:42:26 +0000 (11:42 +0100)]
Allow setting CVS username for gnu-web-doc-update.

* build-aux/gnu-web-doc-update: Introduce new option --user to set the
name of the user on Savannah, when it doesn't match $USER.

4 years agoexp* tests: Work around clang 6.0.1 optimization bugs on x86.
Bruno Haible [Sat, 9 Jan 2021 11:47:42 +0000 (12:47 +0100)]
exp* tests: Work around clang 6.0.1 optimization bugs on x86.

* tests/test-exp-ieee.h (test_function): Mark some variable as
'volatile'.
* tests/test-exp2-ieee.h (test_function): Likewise.

4 years agofchmodat: Work around trailing slash bug in fchmodat() on AIX 7.2.
Bruno Haible [Sat, 9 Jan 2021 07:20:17 +0000 (08:20 +0100)]
fchmodat: Work around trailing slash bug in fchmodat() on AIX 7.2.

* m4/fchmodat.m4 (gl_FUNC_FCHMODAT): In the test whether fchmodat works,
also test for the trailing slashes behaviour. Define
HAVE_NEARLY_WORKING_FCHMODAT if this is the only missing feature.
* lib/fchmodat.c (fchmodat): If HAVE_NEARLY_WORKING_FCHMODAT, handle
trailing slashes here.
* modules/fchmodat (Depends-on): Sort by condition, not alphabetically.
* doc/posix-functions/fchmodat.texi: Document the AIX bug.

4 years agofchmod-tests, fchmodat tests, lchmod tests: Add more tests.
Bruno Haible [Sat, 9 Jan 2021 05:11:24 +0000 (06:11 +0100)]
fchmod-tests, fchmodat tests, lchmod tests: Add more tests.

* tests/test-fchmod.c: Include <fcntl.h>.
(BASE): New macro.
(main): Add more tests.
* tests/test-fchmodat.c (main): Add more tests.
* tests/test-lchmod.c (main): Likewise.

4 years agoutimensat: Fix typo in last commit.
Bruno Haible [Sat, 9 Jan 2021 06:45:01 +0000 (07:45 +0100)]
utimensat: Fix typo in last commit.

* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Fix typo in macro explanation.

4 years agotruncate: Document last workaround.
Bruno Haible [Sat, 9 Jan 2021 06:43:37 +0000 (07:43 +0100)]
truncate: Document last workaround.

* doc/posix-functions/truncate.texi: Document the AIX bug.

4 years agodynarray: work even if ‘free’ is replaced
Paul Eggert [Sat, 9 Jan 2021 03:50:16 +0000 (19:50 -0800)]
dynarray: work even if ‘free’ is replaced

Problem reported by Darshit Shah in:
https://lists.gnu.org/r/bug-gnulib/2021-01/msg00140.html
* lib/malloc/dynarray-skeleton.c (DYNARRAY_FREE): New macro.
Use it everywhere instead of DYNARRAY_NAME (free).

4 years agotempname: don’t block for minutes
Paul Eggert [Sat, 9 Jan 2021 01:54:30 +0000 (17:54 -0800)]
tempname: don’t block for minutes

Derived from a patch proposed by Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
* lib/tempname.c (random_bits): Use GRND_NONBLOCK.

4 years agotempname: sync with proposed glibc patch
Paul Eggert [Sat, 9 Jan 2021 01:31:28 +0000 (17:31 -0800)]
tempname: sync with proposed glibc patch

This is from Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2021-January/121301.html
* lib/tempname.c (__lxstat64): Remove.
(__lstat64, __stat64): New replacement macros.  All uses changed.

4 years agoregex: stop using alloca
Paul Eggert [Sat, 9 Jan 2021 01:17:32 +0000 (17:17 -0800)]
regex: stop using alloca

* lib/regex_internal.h: Do not include <alloca.h> or define
__libc_use_alloca or alloca.  Patch written by Adhemerval Zanella:
https://sourceware.org/pipermail/libc-alpha/2021-January/121374.html
* modules/regex (Depends-on): Remove alloca-opt.

4 years agoregexec: remove alloca usage in build_trtable
Paul Eggert [Fri, 8 Jan 2021 22:22:15 +0000 (14:22 -0800)]
regexec: remove alloca usage in build_trtable

Prompted by this different change proposed by Adhemerval Zanella:
https://sourceware.org/pipermail/libc-alpha/2021-January/121373.html
* lib/regexec.c (build_trtable): Prevent inlining,
so that it doesn’t bloat the caller’s stack.
Use auto variables instead of alloca/malloc.
After these changes, build_trtable’s total stack allocation is
only 20 KiB on a 64-bit machine, and this is less than glibc’s 64
KiB cutoff so there’s little point to using alloca to shrink it.
Although Gnulib traditionally has used a 4 KiB cutoff, going to 20
KiB here should not be a significant problem in practice;
Gnulib-using packages concerned about overflow of tiny stacks can
compile with something like gcc -fstack-clash-protection.
* config/srclist.txt: Comment out regexec.c for now.

4 years agoscratch_buffer: add scratch_buffer_dupfree macro
Paul Eggert [Fri, 8 Jan 2021 20:01:37 +0000 (12:01 -0800)]
scratch_buffer: add scratch_buffer_dupfree macro

* lib/scratch_buffer.h (__libc_scratch_buffer_dupfree):
New macro, needed to support recent changes in this module.

4 years agoregex: remove alloca usage on regex set_regs
Paul Eggert [Fri, 8 Jan 2021 20:00:09 +0000 (12:00 -0800)]
regex: remove alloca usage on regex set_regs

Derived from this patch by Adhemerval Zanella:
https://sourceware.org/pipermail/libc-alpha/2021-January/121372.html
* lib/regex_internal.h: Include dynarray.h, for Gnulib.
* lib/regexec.c (DYNARRAY_STRUCT, DYNARRAY_ELEMENT)
(DYNARRAY_PREFIX): New macros.
Include malloc/dynarray-skeleton.c.
(set_regs): Use dynarray rather than alloca.
* modules/regex (Depends-on): Add dynarray.

4 years agodynarray: new module
Paul Eggert [Fri, 8 Jan 2021 19:44:19 +0000 (11:44 -0800)]
dynarray: new module

* config/srclist.txt: Mention the new files.
* lib/cdefs.h (__attribute_maybe_unused__): New macro,
like Gnulib’s _GL_ATTRIBUTE_MAYBE_UNUSED but with glibc
naming conventions.
* lib/libc-config.h: Use it instead of __glibc_likely.
* lib/dynarray.h, modules/dynarray: New files.
* lib/malloc/dynarray-skeleton.c, lib/malloc/dynarray.h:
* lib/malloc/dynarray_at_failure.c:
* lib/malloc/dynarray_emplace_enlarge.c:
* lib/malloc/dynarray_finalize.c, lib/malloc/dynarray_resize.c:
* lib/malloc/dynarray_resize_clear.c, modules/dynarray:
New files, from glibc with the following changes needed for
portability to compilers that are not recent-enough GCC.
* lib/malloc/dynarray_at_failure.c: Include stdlib.h, for abort.
(__libc_dynarray_at_failure) [!_LIBC]: Simply abort.
* lib/malloc/dynarray_emplace_enlarge.c:
* lib/malloc/dynarray_resize.c:
Include intprops.h, and use INT_MULTIPLY_WRAPV instead
of __builtin_mul_overflow.
* lib/malloc/dynarray.h (__libc_dynarray_at_failure):
Use _Noreturn instead of __attribute__ ((noreturn)).
* lib/malloc/dynarray_resize_clear.c: Do not include stdlib.h;
it’s not needed.
(__libc_dynarray_resize_clear): Do not do arithmetic on void *.
* lib/malloc/dynarray-skeleton.c (struct DYNARRAY_STRUCT):
Do not use anonymous unions, as they are not in C99. All uses changed.
Use __nonnull (X) instead of __attribute__ ((nonnull X)),
and __attribute_maybe_unused__ instead of __attribute__ ((unused)).

4 years agobootstrap: Fix parsing of package name.
Simon Josefsson [Fri, 8 Jan 2021 10:49:59 +0000 (11:49 +0100)]
bootstrap: Fix parsing of package name.

* build-aux/bootstrap (package): Attempt to use autoconf --trace
to parse AC_INIT before falling back to sed expression.

4 years agolocalename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).
Bruno Haible [Thu, 7 Jan 2021 21:55:41 +0000 (22:55 +0100)]
localename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).

* m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
LOCALENAME_ENHANCE_LOCALE_FUNCS.
* m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE):
Set gt_working_uselocale.
(gt_INTL_THREAD_LOCALE_NAME): Set gt_fake_locales, gt_good_uselocale,
gt_localename_enhances_locale_funcs, LOCALENAME_ENHANCE_LOCALE_FUNCS.
Define HAVE_GOOD_USELOCALE, LOCALENAME_ENHANCE_LOCALE_FUNCS.
* m4/localename.m4 (gl_LOCALENAME): Test
gt_localename_enhances_locale_funcs instead of gt_nameless_locales.
* modules/locale (Makefile.am): Substitute
LOCALENAME_ENHANCE_LOCALE_FUNCS.
* lib/locale.in.h (newlocale, duplocale, freelocale): Don't override if
module 'localename' is in use but LOCALENAME_ENHANCE_LOCALE_FUNCS is 0.
* lib/localename.c (HAVE_GOOD_USELOCALE): Don't define here.
(get_locale_t_name, newlocale, duplocale, freelocale): Define if
LOCALENAME_ENHANCE_LOCALE_FUNCS.

4 years agoautoupdate
Karl Berry [Thu, 7 Jan 2021 15:53:54 +0000 (07:53 -0800)]
autoupdate

4 years agologb: Fix test failure on glibc/powerpc.
Bruno Haible [Wed, 6 Jan 2021 19:46:52 +0000 (20:46 +0100)]
logb: Fix test failure on glibc/powerpc.

* m4/logb.m4 (gl_FUNC_LOGB_WORKS): Fix typo in comment.

4 years agologb: Fix test failure on glibc/powerpc.
Bruno Haible [Wed, 6 Jan 2021 18:59:10 +0000 (19:59 +0100)]
logb: Fix test failure on glibc/powerpc.

* doc/posix-functions/logb.texi: Update platform info.
* m4/logb.m4 (gl_FUNC_LOGB_WORKS): Test against bug with negative
subnormal numbers.

4 years agolibc-config: simplify clang __has_* macros
Paul Eggert [Wed, 6 Jan 2021 18:02:33 +0000 (10:02 -0800)]
libc-config: simplify clang __has_* macros

cdefs.h sometimes used names like __glibc_clang_has_attribute and
sometimes __glibc_has_attribute.  There is no need in glibc or
Gnulib to distinguish clang from other compilers here, so be
consistent and use the simpler names.
* lib/cdefs.h (__glibc_has_builtin, __glibc_has_extension):
Rename from __glibc_clang_has_builtin, __glibc_clang_has_extension.
All uses changed.
(__glibc_clang_has_attribute): Remove. All uses replaced
by __glibc_has_attribute.
* lib/libc-config.h [!__glibc_likely]: Undef them here too.
This fixes a problem where __glibc_has_attribute was not undeffed.

4 years agoflock: Update documentation.
Bruno Haible [Wed, 6 Jan 2021 11:15:33 +0000 (12:15 +0100)]
flock: Update documentation.

* doc/glibc-functions/flock.texi: Document what to expect on AIX and
Solaris.

4 years agoilogbl: Fix compilation error with xlclang on AIX 7.2.
Bruno Haible [Wed, 6 Jan 2021 10:59:57 +0000 (11:59 +0100)]
ilogbl: Fix compilation error with xlclang on AIX 7.2.

* lib/math.in.h (ilogbl): Undefine macro before declaration.

4 years agoilogbl: Fix test failures on AIX 7.1 in 64-bit mode.
Bruno Haible [Wed, 6 Jan 2021 10:06:55 +0000 (11:06 +0100)]
ilogbl: Fix test failures on AIX 7.1 in 64-bit mode.

* m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test also some denormalized
argument.
* doc/posix-functions/ilogbl.texi: Mention the AIX bug.

4 years agoilogb: Fix test failures on AIX 7.1 in 64-bit mode.
Bruno Haible [Wed, 6 Jan 2021 10:06:25 +0000 (11:06 +0100)]
ilogb: Fix test failures on AIX 7.1 in 64-bit mode.

* m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Test also some denormalized
argument.
* doc/posix-functions/ilogb.texi: Mention the AIX bug.

4 years agofclose: Fix test failure on AIX 7.2.
Bruno Haible [Wed, 6 Jan 2021 07:47:04 +0000 (08:47 +0100)]
fclose: Fix test failure on AIX 7.2.

* m4/fclose.m4 (gl_FUNC_FCLOSE_STDIN): New macro.
(gl_FUNC_FCLOSE): Invoke it. Set REPLACE_FCLOSE accordingly.
* doc/posix-functions/fclose.texi: Update platform information.
* doc/posix-functions/fflush.texi: Likewise.

4 years agopipe-filter-gi: Fix test failure on AIX 7.2.
Bruno Haible [Wed, 6 Jan 2021 06:23:14 +0000 (07:23 +0100)]
pipe-filter-gi: Fix test failure on AIX 7.2.

* lib/pipe-filter-aux.h (SSIZE_MAX) [AIX]: Set to 4096.

4 years agoutimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
Bruno Haible [Wed, 6 Jan 2021 05:16:22 +0000 (06:16 +0100)]
utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.

* lib/utimecmp.c (utimecmpat): On AIX, declare equality when the two
times differ by less than 0.01 seconds.
* tests/test-futimens.h (test_futimens): Pass UTIMECMP_TRUNCATE_SOURCE
flag.

4 years agoutimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
Bruno Haible [Wed, 6 Jan 2021 01:08:41 +0000 (02:08 +0100)]
utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.

* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a
test for trailing slash handling. Improve cross-compilation guesses.
Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT.
* lib/utimensat.c (rpl_utimensat): Add alternative implementation when
HAVE_NEARLY_WORKING_UTIMENSAT is defined.
* lib/utimens.c: Use the overridden utimensat when
HAVE_NEARLY_WORKING_UTIMENSAT is defined.
* doc/posix-functions/utimensat.texi: Mention the AIX bug.

4 years agoptsname_r, ptsname: Avoid test failures on AIX 7.2.
Bruno Haible [Tue, 5 Jan 2021 21:39:48 +0000 (22:39 +0100)]
ptsname_r, ptsname: Avoid test failures on AIX 7.2.

* tests/test-ptsname_r.c (main): On AIX, set a 20-seconds timer.
* tests/test-ptsname.c (main): Likewise. On AIX, open a pty through
/dev/ptc and don't test the BSD ptys.

4 years ago* modules/filename, modules/idx (Maintainer): Add glibc.
Paul Eggert [Tue, 5 Jan 2021 21:34:48 +0000 (13:34 -0800)]
* modules/filename, modules/idx (Maintainer): Add glibc.

4 years agolibc-config: merge from glibc
Paul Eggert [Tue, 5 Jan 2021 21:12:39 +0000 (13:12 -0800)]
libc-config: merge from glibc

Use a better way of keeping glibc <sys/cdefs.h> and gnulib
lib/cdefs.h mostly in sync, by using lib/cdefs.h only on platforms
where <sys/cdefs.h> does not work well enough for Gnulib.
* lib/cdefs.h: Go back to using _SYS_CDEFS_H rather than
_GL_DEFS_H as an include guard.
(__THROW, __THROWNL, __NTH, __NTHNL):
Define to noexcept for C++11 and later.
(__glibc_objsize, __glibc_objsize0): New, for _FORTIFY_SOURCE=3.
(__warndecl): Remove.
(__attribute_copy__): New macro, for GCC 9 support.
(__LDBL_REDIR, __LDBL_REDIR_DECL, __LDBL_REDIR1)
(__LDBL_REDIR1_DECL, __LDBL_REDIR1_NTH, __REDIRECT_NTH_LDBL)
(__REDIRECT_LDBL, __LDBL_REDIR_NTH):
Redirections for IEEE long double on powerpc64le.
(__LDBL_REDIR2_DECL): New macro.
(__attr_access): New macro, for GCC 10 bounds checking.
(__attribute_returns_twice__): New macro, for setjmp etc.
* lib/libc-config.h: Include <cdefs.h> only if __glibc_likely is
undefined.  The following changes apply only if __glibc_likely
is not defined.
(__LDBL_REDIR2_DECL, __attr_access, __attribute_returns_twice__)
(__glibc_clang_has_attribute, __glibc_clang_has_extension)
(__glibc_objsize, __glibc_objsize0):
Undef these new (or newer) <cdefs.h> macros.
(__P, __PMT, __always_inline): Do not undef, since cdefs.h does that.
(__glibc_likely): Do not undef, since this is inside
ifndef __glibc_likely.
(__warndecl): Do not undef; no longer defined.

4 years agomaintainer-makefile: correct preceding change
Jim Meyering [Tue, 5 Jan 2021 20:43:41 +0000 (12:43 -0800)]
maintainer-makefile: correct preceding change

* top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.

4 years agomaint: note syncs to glibc
Paul Eggert [Tue, 5 Jan 2021 20:03:00 +0000 (12:03 -0800)]
maint: note syncs to glibc

* config/srclist.txt: filename.h, idx.h, scratch_buffer.h and
scratch_buffer_dupfree.c are now identical to glibc.  Add
commentary about some other syncs we’d like.

4 years agoautoupdate
Karl Berry [Tue, 5 Jan 2021 15:49:07 +0000 (07:49 -0800)]
autoupdate

4 years agotruncate: Work around trailing slash bug in truncate() on AIX 7.2.
Bruno Haible [Tue, 5 Jan 2021 06:55:01 +0000 (07:55 +0100)]
truncate: Work around trailing slash bug in truncate() on AIX 7.2.

* m4/truncate.m4 (gl_FUNC_TRUNCATE): Add a test whether truncate
rejects trailing slashes. Set REPLACE_TRUNCATE and define
TRUNCATE_TRAILING_SLASH_BUG if not.
* lib/truncate.c (orig_truncate): New function.
(truncate): Add alternative implementation when
TRUNCATE_TRAILING_SLASH_BUG is defined.
* modules/truncate (Depends-on): Add sys_stat, stat.

4 years agomkfifoat: Fix cross-compilation guess (regression from 2021-01-04).
Bruno Haible [Tue, 5 Jan 2021 06:31:37 +0000 (07:31 +0100)]
mkfifoat: Fix cross-compilation guess (regression from 2021-01-04).

* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Fix copy-and-paste mistake.

4 years agoffsll: Override completely broken implementation on AIX in 32-bit mode.
Bruno Haible [Tue, 5 Jan 2021 06:15:09 +0000 (07:15 +0100)]
ffsll: Override completely broken implementation on AIX in 32-bit mode.

* m4/ffsll.m4 (gl_FUNC_FFSLL): Test whether ffsll minimally works. If
not, set REPLACE_FFSLL.
* lib/string.in.h (ffsll): Consider REPLACE_FFSLL.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
REPLACE_FFSLL.
* modules/string (Makefile.am): Substitute REPLACE_FFSLL.
* modules/ffsll (Depends-on, configure.ac): Consider REPLACE_FFSLL.
* doc/glibc-functions/ffsll.texi: Mention the AIX 7.2 bug.

4 years agosymlinkat: Fix trailing slash handling.
Bruno Haible [Tue, 5 Jan 2021 04:37:50 +0000 (05:37 +0100)]
symlinkat: Fix trailing slash handling.

* lib/symlinkat.c (rpl_symlinkat): Don't follow symlinks during the
trailing slash handling.
* modules/symlinkat (Depends-on): Update conditions.

4 years agomkfifoat: Update module description.
Bruno Haible [Tue, 5 Jan 2021 04:56:04 +0000 (05:56 +0100)]
mkfifoat: Update module description.

* modules/mkfifoat (Depends-on): Update conditions after last commits.

4 years agolink: Improve trailing slash handling on native Windows.
Bruno Haible [Tue, 5 Jan 2021 04:22:54 +0000 (05:22 +0100)]
link: Improve trailing slash handling on native Windows.

* lib/link.c (link): If stat() fails, provide a better errno.

4 years agomkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
Bruno Haible [Tue, 5 Jan 2021 03:48:20 +0000 (04:48 +0100)]
mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.

* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Set also REPLACE_MKNODAT.
* lib/sys_stat.in.h (mknodat): Consider REPLACE_MKNODAT.
* lib/mknodat.c: Add an overriding implementation of mknodat().
* m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_MKNODAT.
* modules/sys_stat (Makefile.am): Substitute REPLACE_MKNODAT.
* modules/mkfifoat (Depends-on, configure.ac): Consider REPLACE_MKNODAT.
* doc/posix-functions/mknodat.texi: Mention the AIX bug.

4 years agomkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.
Bruno Haible [Tue, 5 Jan 2021 03:23:48 +0000 (04:23 +0100)]
mkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.

* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Add a test whether mkfifoat rejects
trailing slashes. Set REPLACE_MKFIFOAT if not.
* lib/sys_stat.in.h (mkfifoat): Consider REPLACE_MKFIFOAT.
* lib/mkfifoat.c: Add an overriding implementation of mkfifoat().
* m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
REPLACE_MKFIFOAT.
* modules/sys_stat (Makefile.am): Substitute REPLACE_MKFIFOAT.
* modules/mkfifoat (Depends-on): Add fstatat.
(configure.ac): Consider REPLACE_MKFIFOAT.
* doc/posix-functions/mkfifoat.texi: Mention the AIX bug.

4 years agolibc-config: Avoid overriding the headers from an installed newer glibc.
Bruno Haible [Tue, 5 Jan 2021 03:12:08 +0000 (04:12 +0100)]
libc-config: Avoid overriding the headers from an installed newer glibc.

Reported by Paul E Murphy <murphyp@linux.ibm.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.

* lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
* lib/libc-config.h: Update accordingly.

4 years agolibc-config: Avoid overriding the headers from an installed newer glibc.
Bruno Haible [Tue, 5 Jan 2021 01:02:36 +0000 (02:02 +0100)]
libc-config: Avoid overriding the headers from an installed newer glibc.

Reported by Paul E Murphy <murphyp@linux.ibm.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.

* lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.

4 years agomaintainer-makefile: Invoke syntax-checks regardless of locale.
Simon Josefsson [Mon, 4 Jan 2021 22:12:46 +0000 (23:12 +0100)]
maintainer-makefile: Invoke syntax-checks regardless of locale.

* top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
environment because [a-z] may not include 'w' in all locales.

4 years agonstrftime, time_rz: Avoid using an obsolete Autoconf macro.
Bruno Haible [Mon, 4 Jan 2021 21:39:23 +0000 (22:39 +0100)]
nstrftime, time_rz: Avoid using an obsolete Autoconf macro.

Reported by Mike Gran <spk121@yahoo.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00067.html>.

* lib/time-internal.h: Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
* lib/time_rz.c: Likewise.
* lib/nstrftime.c: Set and test HAVE_STRUCT_TM_TM_ZONE, not
HAVE_TM_ZONE.
* m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Update comments.

4 years agoexpm1f-ieee: Work around AIX 7.2 bug.
Bruno Haible [Mon, 4 Jan 2021 21:27:47 +0000 (22:27 +0100)]
expm1f-ieee: Work around AIX 7.2 bug.

* m4/expm1f.m4 (gl_FUNC_EXPM1F): Initialize gl_expm1f_required. If
module 'expm1f-ieee' is in use, check whether expm1f works according to
IEEE.
* m4/expm1f-ieee.m4: New file.
* modules/expm1f-ieee (Files): Add it.
(Depends-on): Update conditions.
(configure.ac): Invoke gl_FUNC_EXPM1F_IEEE.
* doc/posix-functions/expm1f.texi: Mention the AIX bug.

4 years agoffsl, ffsll: Work around AIX 7.2 problem.
Bruno Haible [Mon, 4 Jan 2021 07:02:18 +0000 (08:02 +0100)]
ffsl, ffsll: Work around AIX 7.2 problem.

* lib/string.in.h: On AIX, include <strings.h> for the declarations of
ffsl and ffsll.
* doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
* doc/glibc-functions/ffsll.texi: Likewise.

4 years agossfmalloc: Fix includes.
Bruno Haible [Mon, 4 Jan 2021 06:58:03 +0000 (07:58 +0100)]
ssfmalloc: Fix includes.

* lib/ssfmalloc.h: Include <strings.h>, for ffs().
* tests/test-ssfmalloc.c: Include <string.h>, for memset().

4 years agoquotearg tests: Avoid test failures on Solaris 11.3.
Bruno Haible [Mon, 4 Jan 2021 03:00:51 +0000 (04:00 +0100)]
quotearg tests: Avoid test failures on Solaris 11.3.

* tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
'cp -a'.

4 years agotests: Fix link errors on Solaris, when libunistring-optional is in use.
Bruno Haible [Mon, 4 Jan 2021 02:48:24 +0000 (03:48 +0100)]
tests: Fix link errors on Solaris, when libunistring-optional is in use.

* modules/wcwidth (Link): New section.
* modules/wcswidth (Link): New section.
* modules/mbchar (Link): New section.
* modules/mbfile (Link): Link against libunistring.
* modules/mbiter (Link): Likewise.
* modules/mbuiter (Link): Likewise.
* modules/mbmemcasecmp (Link): Likewise.
* modules/mbscasecmp (Link): Likewise.
* modules/mbscasestr (Link): Likewise.
* modules/mbschr (Link): Likewise.
* modules/mbscspn (Link): Likewise.
* modules/mbslen (Link): Likewise.
* modules/mbsncasecmp (Link): Likewise.
* modules/mbsnlen (Link): Likewise.
* modules/mbspbrk (Link): Likewise.
* modules/mbspcasecmp (Link): Likewise.
* modules/mbsrchr (Link): Likewise.
* modules/mbssep (Link): Likewise.
* modules/mbsspn (Link): Likewise.
* modules/mbsstr (Link): Likewise.
* modules/mbstok_r (Link): Likewise.
* modules/mbswidth (Link): Likewise.
* modules/exclude (Link): Likewise.
* modules/propername (Link): Likewise.
* modules/regex-quote (Link): Likewise.
* modules/trim (Link): Likewise.
* modules/mbmemcasecmp-tests (Makefile.am): Link the test program
against libunistring.
* modules/mbscasecmp-tests (Makefile.am): Likewise.
* modules/mbscasestr-tests (Makefile.am): Likewise.
* modules/mbschr-tests (Makefile.am): Likewise.
* modules/mbscspn-tests (Makefile.am): Likewise.
* modules/mbsncasecmp-tests (Makefile.am): Likewise.
* modules/mbspbrk-tests (Makefile.am): Likewise.
* modules/mbspcasecmp-tests (Makefile.am): Likewise.
* modules/mbsrchr-tests (Makefile.am): Likewise.
* modules/mbsspn-tests (Makefile.am): Likewise.
* modules/mbsstr-tests (Makefile.am): Likewise.
* modules/exclude-tests (Makefile.am): Likewise.
* modules/regex-quote-tests (Makefile.am): Likewise.

4 years agoc32ispunct tests: Avoid test failures on FreeBSD.
Bruno Haible [Mon, 4 Jan 2021 01:12:46 +0000 (02:12 +0100)]
c32ispunct tests: Avoid test failures on FreeBSD.

* tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
FreeBSD 12.1.1.

4 years agoFix last ChangeLog entry.
Bruno Haible [Mon, 4 Jan 2021 00:59:57 +0000 (01:59 +0100)]
Fix last ChangeLog entry.

4 years agodoc: Repeat warning that --with-tests cannot be used twice.
Simon Josefsson [Mon, 4 Jan 2021 00:06:21 +0000 (01:06 +0100)]
doc: Repeat warning that --with-tests cannot be used twice.

* doc/gnulib-tool.texi (Multiple instances): Remind reader of
--with-tests limitation.

4 years agoiconv, iconv_open: Improve documentation.
Bruno Haible [Sun, 3 Jan 2021 19:46:04 +0000 (20:46 +0100)]
iconv, iconv_open: Improve documentation.

Reported by Noah Misch <noah@leadboat.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.

* doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
problems handled by Gnulib".
* doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
* m4/iconv.m4 (AM_ICONV_LINK): Improve comments.

4 years agoiconv-h: Fix module description.
Bruno Haible [Sun, 3 Jan 2021 18:19:01 +0000 (19:19 +0100)]
iconv-h: Fix module description.

* modules/iconv-h (Include): Check HAVE_ICONV_H.

4 years agoiconv_open: Fix module description.
Noah Misch [Sun, 3 Jan 2021 18:17:52 +0000 (19:17 +0100)]
iconv_open: Fix module description.

* modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.

4 years agoautoupdate
Karl Berry [Sun, 3 Jan 2021 18:40:57 +0000 (10:40 -0800)]
autoupdate

4 years agostddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
Bruno Haible [Sun, 3 Jan 2021 12:38:03 +0000 (13:38 +0100)]
stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.

* m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
stricter: Add tests for offsetof-based alignof.
* lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
* doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.

4 years agofree-posix: Work around GCC mis-optimization bug.
Bruno Haible [Sun, 3 Jan 2021 10:19:22 +0000 (11:19 +0100)]
free-posix: Work around GCC mis-optimization bug.

Code by Bernhard Voelker <mail@bernhard-voelker.de>.

* lib/free.c (rpl_free): Add alternative complicated code for GCC.

4 years agovalgrind-tests: Disable valgrind if it would cause all tests to fail.
Bruno Haible [Sun, 3 Jan 2021 01:14:16 +0000 (02:14 +0100)]
valgrind-tests: Disable valgrind if it would cause all tests to fail.

Suggested by Simon Josefsson <simon@josefsson.org> in
<https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.

* m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
executable produced by the current compiler. Set VALGRIND to empty if it
does not work. Don't set VALGRIND to empty if it merely does not accept
the --error-exitcode=1 --leak-check=full options.

4 years agovalgrind-tests: Really enable the valgrind options test.
Bruno Haible [Sun, 3 Jan 2021 01:03:33 +0000 (02:03 +0100)]
valgrind-tests: Really enable the valgrind options test.

* m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
valgrind options --error-exitcode=1 --leak-check=full always work.

4 years agoutimensat: Fix test failures on macOS 10.13.
Bruno Haible [Sat, 2 Jan 2021 18:31:45 +0000 (19:31 +0100)]
utimensat: Fix test failures on macOS 10.13.

* lib/utimensat.c: Include <string.h>, <sys/stat.h>.
(rpl_utimensat): Check against invalid tv_nsec values. Before calling
utimensat, recognize a filename ending in a slash that does not point
to a directory.

4 years agoutimens: Fix test failure on macOS 10.13.
Bruno Haible [Sat, 2 Jan 2021 18:21:35 +0000 (19:21 +0100)]
utimens: Fix test failure on macOS 10.13.

* lib/utimens.c: Include <string.h>.

4 years agoutimens: Fix test failure on macOS 10.13.
Bruno Haible [Sat, 2 Jan 2021 17:59:12 +0000 (18:59 +0100)]
utimens: Fix test failure on macOS 10.13.

* lib/utimens.c (fdutimens): Before calling utimensat, recognize a
filename ending in a slash that does not point to a directory.

4 years agoutimens: Avoid test failures on macOS 10.13.
Bruno Haible [Sat, 2 Jan 2021 17:57:10 +0000 (18:57 +0100)]
utimens: Avoid test failures 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-utimens-common.h (check_ctime): Define to -1 on macOS.
* tests/test-utimens.h (test_utimens): Don't expect a ctime change when
only the atime is requested to change.
* tests/test-futimens.h (test_futimens): Likewise.
* tests/test-lutimens.h (test_lutimens): Likewise.

4 years agorenameatu: Fix test failures on macOS.
Bruno Haible [Sat, 2 Jan 2021 15:54:21 +0000 (16:54 +0100)]
renameatu: Fix test failures on macOS.

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

* lib/renameatu.c (renameatu): Don't call renameatx_np right away.
Instead, treat it as a variant of renameat, with all possible bugs that
renameat might have.

4 years agogetgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
Bruno Haible [Sat, 2 Jan 2021 12:48:43 +0000 (13:48 +0100)]
getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.

Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.

* tests/test-getgroups.c: Silence gcc warnings of type
-Wstringop-overflow.

4 years agotimespec_get: Add tests.
Bruno Haible [Sat, 2 Jan 2021 12:15:06 +0000 (13:15 +0100)]
timespec_get: Add tests.

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

4 years agotimespec_get: New module.
Bruno Haible [Sat, 2 Jan 2021 12:14:08 +0000 (13:14 +0100)]
timespec_get: New module.

* lib/time.in.h (timespec_get): New declaration.
* lib/timespec_get.c: New file.
* m4/timespec_get.m4: New file.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
* modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
HAVE_TIMESPEC_GET.
* modules/timespec_get: New file.
* tests/test-time-c++.cc (timespec_get): Check signature.
* doc/glibc-functions/timespec_get.texi: Mention the new module.

4 years agotime: Define TIME_UTC.
Bruno Haible [Fri, 1 Jan 2021 23:14:05 +0000 (00:14 +0100)]
time: Define TIME_UTC.

* lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
* m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
* modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
* tests/test-time.c: Check that TIME_UTC is defined and a positive
integer.
* doc/posix-headers/time.texi: Mention TIME_UTC.

4 years agostddef: Try harder to get max_align_t defined on OpenBSD, part 2.
Bruno Haible [Sat, 2 Jan 2021 00:14:17 +0000 (01:14 +0100)]
stddef: Try harder to get max_align_t defined on OpenBSD, part 2.

* modules/stddef (Depends-on): Add extensions.

4 years agocanonicalize: remove NARROW_ADDRESSES optimization
Paul Eggert [Fri, 1 Jan 2021 23:54:43 +0000 (15:54 -0800)]
canonicalize: remove NARROW_ADDRESSES optimization

* lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
Remove, and remove all uses, as the optimization is arguably not
worth the extra complexity.  Suggested by Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html

4 years agostddef: Try harder to get max_align_t defined on OpenBSD.
Bruno Haible [Fri, 1 Jan 2021 22:07:24 +0000 (23:07 +0100)]
stddef: Try harder to get max_align_t defined on OpenBSD.

* m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.

4 years agoaligned_alloc: Fix test failure on OpenBSD 6.8.
Bruno Haible [Fri, 1 Jan 2021 22:04:52 +0000 (23:04 +0100)]
aligned_alloc: Fix test failure on OpenBSD 6.8.

* m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require gl_USE_SYSTEM_EXTENSIONS.

4 years agoaligned_alloc: Fix test failure on OpenBSD 6.8.
Bruno Haible [Fri, 1 Jan 2021 21:50:58 +0000 (22:50 +0100)]
aligned_alloc: Fix test failure on OpenBSD 6.8.

* m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
_ISOC11_SOURCE.
* m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Update comment.

4 years agoposixtm tests: Disable part of the test on plaforms where it fails.
Bruno Haible [Fri, 1 Jan 2021 20:03:31 +0000 (21:03 +0100)]
posixtm tests: Disable part of the test on plaforms where it fails.

* tests/test-posixtm.c (T): Disable two tests on macOS as well.

4 years agoautoupdate
Karl Berry [Fri, 1 Jan 2021 18:08:05 +0000 (10:08 -0800)]
autoupdate

4 years agoc32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
Bruno Haible [Fri, 1 Jan 2021 17:39:28 +0000 (18:39 +0100)]
c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.

* tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
Solaris 11 OmniOS.
* tests/test-c32isprint.c (main): Likewise.
* tests/test-c32ispunct.c (main): Likewise.

4 years agolibc-config: port to Sun C 5.9
Paul Eggert [Fri, 1 Jan 2021 17:27:54 +0000 (09:27 -0800)]
libc-config: port to Sun C 5.9

* lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
definition.  It’s not needed for Gnulib and elicits a diagnostic
from Sun C 5.9 Patch 124867-12 2009/11/22.

4 years agoquotearg tests: Avoid test failures on Solaris 11.
Bruno Haible [Fri, 1 Jan 2021 14:00:48 +0000 (15:00 +0100)]
quotearg tests: Avoid test failures on Solaris 11.

* modules/quotearg-tests (Makefile.am): Set host_os in
TESTS_ENVIRONMENT.
* tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
directory that contains the .mo file.

4 years agomaint: Update copyright notices in --version output.
Bruno Haible [Fri, 1 Jan 2021 11:50:28 +0000 (12:50 +0100)]
maint: Update copyright notices in --version output.

List the most recent year in which changes were made, per
<https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.

* build-aux/declared.sh (func_version): Say 2019.
* build-aux/libtool-next-version (func_version): Likewise.
* build-aux/run-test (func_version): Likewise.
* check-module (COPYRIGHT_NOTICE): Say 2012.
* lib/git-merge-changelog.c (main): Say 2020.

4 years agomaint: run 'make update-copyright'
Paul Eggert [Fri, 1 Jan 2021 07:28:52 +0000 (07:28 +0000)]
maint: run 'make update-copyright'

4 years agoautoupdate
Paul Eggert [Fri, 1 Jan 2021 07:24:28 +0000 (23:24 -0800)]
autoupdate

4 years agofilename: change filename.h comment to LGPLv2.1+
Paul Eggert [Fri, 1 Jan 2021 03:29:08 +0000 (19:29 -0800)]
filename: change filename.h comment to LGPLv2.1+

* lib/filename.h: Change license notice to match what should be in
glibc, and what modules/filename specifies.  This is to simplify
syncing with glibc.

4 years agodoc: mention year-0 bugs in Solaris etc.
Paul Eggert [Fri, 1 Jan 2021 03:14:49 +0000 (19:14 -0800)]
doc: mention year-0 bugs in Solaris etc.

* doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
* doc/posix-functions/localtime.texi:
* doc/posix-functions/localtime_r.texi:
* doc/posix-functions/mktime.texi:
Mention year-0 bugs in localtime etc.

4 years agoptsname_r: Fix test failure on Solaris.
Bruno Haible [Fri, 1 Jan 2021 00:12:08 +0000 (01:12 +0100)]
ptsname_r: Fix test failure on Solaris.

* lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
the device.

4 years agoposixtm tests: Disable part of the test on plaforms where it fails.
Bruno Haible [Thu, 31 Dec 2020 23:42:34 +0000 (00:42 +0100)]
posixtm tests: Disable part of the test on plaforms where it fails.

* tests/test-posixtm.c (T): Disable two tests on Solaris.

4 years agopoll tests: Avoid test failure on AIX.
Bruno Haible [Thu, 31 Dec 2020 22:49:25 +0000 (23:49 +0100)]
poll tests: Avoid test failure on AIX.

* tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
shutdown" test on AIX.
* doc/posix-functions/poll.texi: Mention the AIX bug.