diff options
author | Werner Koch <wk@gnupg.org> | 2016-05-27 15:41:55 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-05-27 15:41:55 +0200 |
commit | 5d991e333a1885adc40abd9d00c01fec4bd5d9d7 (patch) | |
tree | d685d34bc855b0f2290502dd7dacb96690d1632d /common/exechelp-w32ce.c | |
parent | common: Make use of default_errsource in exechelp. (diff) | |
download | gnupg2-5d991e333a1885adc40abd9d00c01fec4bd5d9d7.tar.xz gnupg2-5d991e333a1885adc40abd9d00c01fec4bd5d9d7.zip |
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>
Diffstat (limited to 'common/exechelp-w32ce.c')
-rw-r--r-- | common/exechelp-w32ce.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/common/exechelp-w32ce.c b/common/exechelp-w32ce.c index 57ecaf31e..06aa6bcb2 100644 --- a/common/exechelp-w32ce.c +++ b/common/exechelp-w32ce.c @@ -450,18 +450,24 @@ create_inheritable_pipe (int filedes[2], int inherit_idx) /* Portable function to create a pipe. Under Windows the write end is inheritable (i.e. an rendezvous id). */ gpg_error_t -gnupg_create_inbound_pipe (int filedes[2]) +gnupg_create_inbound_pipe (int filedes[2], estream_t *r_fp, int nonblock) { - return create_inheritable_pipe (filedes, 1); + if (r_fp) + return gpg_error (GPG_ERR_NOT_IMPLEMENTED); + else + return create_inheritable_pipe (filedes, 1); } /* Portable function to create a pipe. Under Windows the read end is inheritable (i.e. an rendezvous id). */ gpg_error_t -gnupg_create_outbound_pipe (int filedes[2]) +gnupg_create_outbound_pipe (int filedes[2], estream_t *r_fp, int nonblock) { - return create_inheritable_pipe (filedes, 0); + if (r_fp) + return gpg_error (GPG_ERR_NOT_IMPLEMENTED); + else + return create_inheritable_pipe (filedes, 0); } |