From 5d991e333a1885adc40abd9d00c01fec4bd5d9d7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 27 May 2016 15:41:55 +0200 Subject: 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 --- common/exechelp-w32ce.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'common/exechelp-w32ce.c') 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); } -- cgit v1.2.3