]> Savannah Git Hosting - gnulib.git/commit
posix_spawn_file_actions_addfchdir: New module.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2019 14:16:16 +0000 (16:16 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2019 14:29:44 +0000 (16:29 +0200)
commitd822de87e4d1c97e422e48332542dfe7261c7d82
tree1890dfa2476361f50390188afbc4710a90c37133
parent2ad7a33b829d0378fb6765e778e4170a3fec9697
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.
14 files changed:
ChangeLog
doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi
doc/posix-functions/posix_spawn.texi
doc/posix-functions/posix_spawnp.texi
lib/spawn.in.h
lib/spawn_faction_addfchdir.c [new file with mode: 0644]
lib/spawn_int.h
lib/spawni.c
m4/posix_spawn.m4
m4/posix_spawn_faction_addfchdir.m4 [new file with mode: 0644]
m4/spawn_h.m4
modules/posix_spawn_file_actions_addfchdir [new file with mode: 0644]
modules/spawn
tests/test-spawn-c++.cc