diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-02 07:57:58 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-08 18:22:39 +0000 |
| commit | 43347b26fb461891fb139e24a9dd9f335465168b (patch) | |
| tree | 1aee7258f531acc1e0129869621057b0b7bc1e03 /lib/libc/gen/posix_spawn.c | |
| parent | 20318719dfd8077c47ed3c37e8e29b17c365ae18 (diff) | |
posix_spawn: actions chdir and fchdir are now required by POSIX
(cherry picked from commit 7caa71145c5eea5925c295e0cdd95b517005acf9)
Diffstat (limited to 'lib/libc/gen/posix_spawn.c')
| -rw-r--r-- | lib/libc/gen/posix_spawn.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/posix_spawn.c b/lib/libc/gen/posix_spawn.c index 656c0f20f798..11cdb5a29d03 100644 --- a/lib/libc/gen/posix_spawn.c +++ b/lib/libc/gen/posix_spawn.c @@ -549,6 +549,8 @@ posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t * STAILQ_INSERT_TAIL(&(*fa)->fa_list, fae, fae_list); return (0); } +__weak_reference(posix_spawn_file_actions_addchdir_np, + posix_spawn_file_actions_addchdir); int posix_spawn_file_actions_addfchdir_np(posix_spawn_file_actions_t *__restrict fa, @@ -571,6 +573,9 @@ posix_spawn_file_actions_addfchdir_np(posix_spawn_file_actions_t *__restrict fa, return (0); } +__weak_reference(posix_spawn_file_actions_addfchdir_np, + posix_spawn_file_actions_addfchdir); + int posix_spawn_file_actions_addclosefrom_np (posix_spawn_file_actions_t * __restrict fa, int from) |
