diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-12-07 15:00:04 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-12-07 16:04:05 +0100 |
commit | 3a3fb7557274108ea3dc5ac62333c808a6c171db (patch) | |
tree | d021946546bdbbc80dedbf47dc608375cc7092a5 /posix/spawn.h | |
parent | c37cd4398a684010b39e0c09f1132757e11edbf1 (diff) | |
download | glibc-3a3fb7557274108ea3dc5ac62333c808a6c171db.tar.gz glibc-3a3fb7557274108ea3dc5ac62333c808a6c171db.tar.xz glibc-3a3fb7557274108ea3dc5ac62333c808a6c171db.zip |
posix: New function posix_spawn_file_actions_addfchdir_np [BZ #17405]
Along with posix_spawn_file_actions_addchdir, posix_spawn_file_actions_addfchdir is the subject of a change proposal for POSIX: <http://austingroupbugs.net/view.php?id=1208>
Diffstat (limited to 'posix/spawn.h')
-rw-r--r-- | posix/spawn.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/posix/spawn.h b/posix/spawn.h index c84ee4bf72..8c40b4d28b 100644 --- a/posix/spawn.h +++ b/posix/spawn.h @@ -190,6 +190,12 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t * affects the subsequent file actions. */ extern int posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t *, const char *__path) __THROW; + +/* Add an action changing the directory to FD during spawn. This + affects the subsequent file actions. FD is not duplicated and must + be open when the file action is executed. */ +extern int posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *, + int __fd) __THROW; #endif __END_DECLS |