Re: [PATCH] posix_spawn: factor out structs to an internal header

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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 <[email protected]>
> ---
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.