mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Extend gnupg_create_inbound_pipe et al.
* common/exechelp-posix.c (gnupg_create_inbound_pipe): Add args 'r_fp' and 'nonblock'. (gnupg_create_outbound_pipe): Ditto. * common/exechelp-w32.c (gnupg_create_inbound_pipe): Add non yet functional args 'r_fp' and 'nonblock'. (gnupg_create_outbound_pipe): Ditto. * common/exechelp-w32ce.c (gnupg_create_inbound_pipe): Ditto. (gnupg_create_outbound_pipe): Ditto. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
96c7901ec1
commit
5d991e333a
7 changed files with 54 additions and 28 deletions
|
@ -320,20 +320,28 @@ do_create_pipe (int filedes[2], int flags)
|
|||
}
|
||||
|
||||
/* Portable function to create a pipe. Under Windows the write end is
|
||||
inheritable. */
|
||||
inheritable. If R_FP is not NULL, an estream is created for the
|
||||
read end and stored at R_FP. */
|
||||
gpg_error_t
|
||||
gnupg_create_inbound_pipe (int filedes[2])
|
||||
gnupg_create_inbound_pipe (int filedes[2], estream_t *r_fp, int nonblock)
|
||||
{
|
||||
return do_create_pipe (filedes, INHERIT_WRITE);
|
||||
if (r_fp)
|
||||
return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
|
||||
else
|
||||
return do_create_pipe (filedes, INHERIT_WRITE);
|
||||
}
|
||||
|
||||
|
||||
/* Portable function to create a pipe. Under Windows the read end is
|
||||
inheritable. */
|
||||
inheritable. If R_FP is not NULL, an estream is created for the
|
||||
write end and stored at R_FP. */
|
||||
gpg_error_t
|
||||
gnupg_create_outbound_pipe (int filedes[2])
|
||||
gnupg_create_outbound_pipe (int filedes[2], estream_t *r_fp, int nonblock)
|
||||
{
|
||||
return do_create_pipe (filedes, INHERIT_READ);
|
||||
if (r_fp)
|
||||
return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
|
||||
else
|
||||
return do_create_pipe (filedes, INHERIT_READ);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue