From 4a938cb273e164a475dc123cc80ea6354d7248d4 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 6 Nov 2018 16:08:12 +0100 Subject: posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405] --- posix/spawn.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'posix/spawn.h') diff --git a/posix/spawn.h b/posix/spawn.h index aafb276..c84ee4b 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 */ -- cgit v1.1