summaryrefslogtreecommitdiffstats
path: root/common/exechelp-w32ce.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-05-27 15:41:55 +0200
committerWerner Koch <wk@gnupg.org>2016-05-27 15:41:55 +0200
commit5d991e333a1885adc40abd9d00c01fec4bd5d9d7 (patch)
treed685d34bc855b0f2290502dd7dacb96690d1632d /common/exechelp-w32ce.c
parentcommon: Make use of default_errsource in exechelp. (diff)
downloadgnupg2-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.c14
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);
}