[PATCH] posix_spawn: factor out structs to an internal header
Corinna Vinschen
vinschen@redhat.com
Wed Jun 18 14:37:15 GMT 2025
On Jun 17 13:40, Jeremy Drake wrote:
> This will allow Cygwin to examine and handle the posix_spawnattr_t and
> posix_spawn_file_actions_t arguments itself.
>
> Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
> ---
> I'm not subscribed to the newlib list but rathe to cygwin-patches
>
> Context: I'm working on a patch to Cygwin to optimize posix_spawn where
> possible to not use fork/exec but instead spawn the child process
> directly. Determining whether this is possible depends on examining the
> parameters, and while the posix_spawnattr_t has "get" functions that can
> be used to examine its members the posix_spawn_file_actions_t has no such
> ability.
>
> newlib/libc/posix/posix_spawn.c | 45 +--------------------------
> newlib/libc/posix/posix_spawn.h | 54 +++++++++++++++++++++++++++++++++
> 2 files changed, 55 insertions(+), 44 deletions(-)
> create mode 100644 newlib/libc/posix/posix_spawn.h
Pushed.
Thanks,
Corinna
More information about the Newlib
mailing list