summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-19 00:32:12 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-19 00:32:12 +0100
commit3bb08542d297980ea8ca9403e71d2fcd640c4877 (patch)
tree9d844e98ae86f2a14210a6d6775a9636032a044e /m4
parentd98888290b243e1c98ac7afb085a0925a33c8615 (diff)
downloadguile-3bb08542d297980ea8ca9403e71d2fcd640c4877.tar.gz
Add Gnulib modules for 'posix_spawn' file operations.
This is again from Gnulib v0.1-5703-g356a414e8c. * m4/gnulib-cache.m4: Add 'posix_spawn_file_actions_addclose', 'posix_spawn_file_actions_adddup2', 'posix_spawn_file_actions_addopen', and 'posix_spawn_file_actions_init'.
Diffstat (limited to 'm4')
-rw-r--r--m4/gnulib-cache.m48
-rw-r--r--m4/gnulib-comp.m433
2 files changed, 41 insertions, 0 deletions
diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4
index d9c27f935..cb3a403df 100644
--- a/m4/gnulib-cache.m4
+++ b/m4/gnulib-cache.m4
@@ -116,6 +116,10 @@
# pipe2 \
# poll \
# posix_spawn \
+# posix_spawn_file_actions_addclose \
+# posix_spawn_file_actions_adddup2 \
+# posix_spawn_file_actions_addopen \
+# posix_spawn_file_actions_init \
# posix_spawnp \
# putenv \
# readlink \
@@ -217,6 +221,10 @@ gl_MODULES([
pipe2
poll
posix_spawn
+ posix_spawn_file_actions_addclose
+ posix_spawn_file_actions_adddup2
+ posix_spawn_file_actions_addopen
+ posix_spawn_file_actions_init
posix_spawnp
putenv
readlink
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
index 1187c1a6a..215acc1e7 100644
--- a/m4/gnulib-comp.m4
+++ b/m4/gnulib-comp.m4
@@ -194,6 +194,10 @@ AC_DEFUN([gl_EARLY],
# Code from module poll-h:
# Code from module posix_spawn:
# Code from module posix_spawn-internal:
+ # Code from module posix_spawn_file_actions_addclose:
+ # Code from module posix_spawn_file_actions_adddup2:
+ # Code from module posix_spawn_file_actions_addopen:
+ # Code from module posix_spawn_file_actions_init:
# Code from module posix_spawnp:
# Code from module putenv:
# Code from module raise:
@@ -622,6 +626,22 @@ AC_DEFUN([gl_INIT],
gl_CONDITIONAL([GL_COND_OBJ_SPAWN],
[test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn])
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
+ gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDCLOSE],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1])
+ gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose])
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
+ gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDDUP2],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1])
+ gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2])
+ gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
+ gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDOPEN],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1])
+ gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen])
+ gl_POSIX_SPAWN
+ gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_INIT],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
+ gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init])
gl_POSIX_SPAWN
gl_CONDITIONAL([GL_COND_OBJ_SPAWNP],
[test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
@@ -1704,6 +1724,15 @@ AC_SUBST([LTALLOCA])
if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
func_gl_gnulib_m4code_332607f759618fb73dfc3076748afea7
fi
+ if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
+ func_gl_gnulib_m4code_getdtablesize
+ fi
+ if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
+ func_gl_gnulib_m4code_getdtablesize
+ fi
+ if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
+ func_gl_gnulib_m4code_getdtablesize
+ fi
if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
func_gl_gnulib_m4code_332607f759618fb73dfc3076748afea7
fi
@@ -2232,6 +2261,10 @@ AC_DEFUN([gl_FILE_LIST], [
lib/sockets.h
lib/spawn.c
lib/spawn.in.h
+ lib/spawn_faction_addclose.c
+ lib/spawn_faction_adddup2.c
+ lib/spawn_faction_addopen.c
+ lib/spawn_faction_init.c
lib/spawn_int.h
lib/spawni.c
lib/spawnp.c