Resolve conflicts for functions introduced in Android API level 34.
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test for
+ posix_spawn_file_actions_addchdir_np and
+ posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID
+ instead of AC_CHECK_FUNCS_ONCE.
+ * m4/posix_spawn_faction_addchdir.m4
+ (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR): Test for
+ posix_spawn_file_actions_addchdir_np using gl_CHECK_FUNCS_ANDROID
+ instead of AC_CHECK_FUNCS_ONCE.
+ * m4/posix_spawn_faction_addfchdir.m4
+ (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR): Test for
+ posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID
+ instead of AC_CHECK_FUNCS_ONCE.
+ * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
+ the Android API levels.
+ * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
+ Likewise.
+
* lib/string.in.h (memset_explicit): Consider REPLACE_MEMSET_EXPLICIT.
* m4/string_h.m4 (gl_STRING_H_DEFAULTS): Initialize
REPLACE_MEMSET_EXPLICIT.
Portability problems not fixed by Gnulib:
@itemize
@item
-This function is missing on many non-glibc platforms:
-glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.0, Cygwin 3.4.6, mingw, MSVC 14, Android 9.0.
+This function is missing on many platforms:
+glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.0, Cygwin 3.4.6, mingw, MSVC 14, Android API level 33.
@end itemize
Note: Gnulib has a module @code{posix_spawn_file_actions_addchdir} that
Portability problems not fixed by Gnulib:
@itemize
@item
-This function is missing on all non-glibc platforms:
-glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.4, Cygwin 3.4.6, mingw, MSVC 14, Android 9.0.
+This function is missing on many platforms:
+glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.4, Cygwin 3.4.6, mingw, MSVC 14, Android API level 33.
@end itemize
Note: Gnulib has a module @code{posix_spawn_file_actions_addfchdir} that
-# posix_spawn.m4 serial 24
+# posix_spawn.m4 serial 25
dnl Copyright (C) 2008-2024 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 $ac_cv_func_posix_spawn = yes; then
m4_ifdef([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR],
[dnl Module 'posix_spawn_file_actions_addchdir' is present.
- AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir_np])
+ gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addchdir_np],
+ [[#include <spawn.h>]])
if test $ac_cv_func_posix_spawn_file_actions_addchdir_np = no; then
dnl In order to implement the posix_spawn_file_actions_addchdir
dnl function, we need to replace the entire posix_spawn facility.
])
m4_ifdef([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR],
[dnl Module 'posix_spawn_file_actions_addfchdir' is present.
- AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir_np])
+ gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addfchdir_np],
+ [[#include <spawn.h>]])
if test $ac_cv_func_posix_spawn_file_actions_addfchdir_np = no; then
dnl In order to implement the posix_spawn_file_actions_addfchdir
dnl function, we need to replace the entire posix_spawn facility.
-# posix_spawn_faction_addchdir.m4 serial 1
+# posix_spawn_faction_addchdir.m4 serial 2
dnl Copyright (C) 2018-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
AC_REQUIRE([AC_PROG_CC])
gl_POSIX_SPAWN
- AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir posix_spawn_file_actions_addchdir_np])
+ AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir])
+ gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addchdir_np],
+ [[#include <spawn.h>]])
if test $ac_cv_func_posix_spawn_file_actions_addchdir = yes; then
dnl This function is not yet standardized. Therefore override the
dnl system's implementation always.
-# posix_spawn_faction_addfchdir.m4 serial 1
+# posix_spawn_faction_addfchdir.m4 serial 2
dnl Copyright (C) 2018-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
AC_REQUIRE([AC_PROG_CC])
gl_POSIX_SPAWN
- AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir posix_spawn_file_actions_addfchdir_np])
+ AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir])
+ gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addfchdir_np],
+ [[#include <spawn.h>]])
if test $ac_cv_func_posix_spawn_file_actions_addfchdir = yes; then
dnl This function is not yet standardized. Therefore override the
dnl system's implementation always.