path: root/include
diff options
authorRich Felker <>2019-08-30 16:21:36 -0400
committerRich Felker <>2019-08-30 16:21:36 -0400
commit74244e5b3ed4a61d99c5fc0967b69e5c9a753456 (patch)
tree5951d09c6a630f738fedd84566289b89b81fa099 /include
parentf76e183111bc4491ee575c3e2fcc793412acff4e (diff)
add posix_spawn [f]chdir file actions
these are presently extensions, thus named with _np to match glibc and other implementations that provide them; however they are likely to be standardized in the future without the _np suffix as a result of Austin Group issue 1208. if so, both names will be kept as aliases.
Diffstat (limited to 'include')
1 files changed, 5 insertions, 0 deletions
diff --git a/include/spawn.h b/include/spawn.h
index c9bd1939..8eb73e00 100644
--- a/include/spawn.h
+++ b/include/spawn.h
@@ -71,6 +71,11 @@ int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *__restrict, int
int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int);
int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *, int, int);
+#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
+int posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *__restrict, const char *__restrict);
+int posix_spawn_file_actions_addfchdir_np(posix_spawn_file_actions_t *, int);
#ifdef __cplusplus