diff options
author | Bruno Haible <bruno@clisp.org> | 2019-06-10 16:16:16 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-06-10 16:29:44 +0200 |
commit | d822de87e4d1c97e422e48332542dfe7261c7d82 (patch) | |
tree | 1890dfa2476361f50390188afbc4710a90c37133 /doc/posix-functions/posix_spawn.texi | |
parent | 2ad7a33b829d0378fb6765e778e4170a3fec9697 (diff) | |
download | gnulib-d822de87e4d1c97e422e48332542dfe7261c7d82.tar.gz |
posix_spawn_file_actions_addfchdir: New module.
* lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
* lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
union member 'fchdir_action'.
* lib/spawn_faction_addfchdir.c: New file.
* lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
* m4/posix_spawn_faction_addfchdir.m4: New file.
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
'posix_spawn_file_actions_addfchdir' is present and whether
posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
* m4/spawn_h.m4 (gl_SPAWN_H): Test whether
posix_spawn_file_actions_addfchdir is declared.
(gl_SPAWN_H_DEFAULTS): Initialize
GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
* modules/spawn (Makefile.am): Substitute
GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
* modules/posix_spawn_file_actions_addfchdir: New file.
* tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
signature.
* doc/posix-functions/posix_spawn.texi: Mention the new module.
* doc/posix-functions/posix_spawnp.texi: Likewise.
* doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
Likewise.
Diffstat (limited to 'doc/posix-functions/posix_spawn.texi')
-rw-r--r-- | doc/posix-functions/posix_spawn.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/posix-functions/posix_spawn.texi b/doc/posix-functions/posix_spawn.texi index bed0e79490..651360885d 100644 --- a/doc/posix-functions/posix_spawn.texi +++ b/doc/posix-functions/posix_spawn.texi @@ -24,6 +24,7 @@ This function does not work on some platforms: AIX 6.1 (under particular circumstances), mingw. @end itemize -The Gnulib module @code{posix_spawn_file_actions_addchdir} provides an -additional action, that consists in changing the current directory of -the child process before starting the specified program. +The Gnulib modules @code{posix_spawn_file_actions_addchdir} and +@code{posix_spawn_file_actions_addfchdir} provide additional actions, +that consist in changing the current directory of the child process +before starting the specified program. |