summary refs log tree commit diff
path: root/posix/spawn.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-11-06 16:08:12 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-11-06 16:08:12 +0100
commit4a938cb273e164a475dc123cc80ea6354d7248d4 (patch)
tree607dad9fb23f1a248a8009758c03115528dde294 /posix/spawn.h
parent7597b0c7f711a6918d5804e08508817c72916376 (diff)
downloadglibc-4a938cb273e164a475dc123cc80ea6354d7248d4.tar.gz
glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.tar.xz
glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.zip
posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405]
Diffstat (limited to 'posix/spawn.h')
-rw-r--r--posix/spawn.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/posix/spawn.h b/posix/spawn.h
index aafb27611c..c84ee4bf72 100644
--- a/posix/spawn.h
+++ b/posix/spawn.h
@@ -185,6 +185,13 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *
 					     __file_actions,
 					     int __fd, int __newfd) __THROW;
 
+#ifdef __USE_GNU
+/* Add an action changing the directory to PATH during spawn.  This
+   affects the subsequent file actions.  */
+extern int posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t *,
+						 const char *__path) __THROW;
+#endif
+
 __END_DECLS
 
 #endif /* spawn.h */