+2021-01-25 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn_file_actions_addclose: Relax configure test.
+ * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): Test a
+ negative file descriptor, not an out-of-range file descriptor.
+ * tests/test-posix_spawn_file_actions_addclose.c (main): Add comment.
+ * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Update.
+
2021-01-25 Simon Josefsson <simon@josefsson.org>
getaddrinfo: Doc fix.
This function is missing on some platforms:
FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin 1.7.x, mingw, MSVC 14, Android 8.1.
@item
-This function does not reject a too large file descriptor on some platforms:
-musl libc, Solaris 11.4.
+This function does not reject a negative file descriptor on some platforms:
+musl libc.
@end itemize
Portability problems not fixed by Gnulib:
-# posix_spawn.m4 serial 19
+# posix_spawn.m4 serial 20
dnl Copyright (C) 2008-2021 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if test $REPLACE_POSIX_SPAWN = 1; then
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
else
- dnl On musl libc and Solaris 11.0, posix_spawn_file_actions_addclose
- dnl succeeds even if the fd argument is out of range.
+ dnl On musl libc, posix_spawn_file_actions_addclose succeeds even if the fd
+ dnl argument is negative.
AC_CACHE_CHECK([whether posix_spawn_file_actions_addclose works],
[gl_cv_func_posix_spawn_file_actions_addclose_works],
[AC_RUN_IFELSE(
posix_spawn_file_actions_t actions;
if (posix_spawn_file_actions_init (&actions) != 0)
return 1;
- if (posix_spawn_file_actions_addclose (&actions, 10000000) == 0)
+ if (posix_spawn_file_actions_addclose (&actions, -5) == 0)
return 2;
return 0;
}]])],