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.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'common/exechelp.h') diff --git a/common/exechelp.h b/common/exechelp.h index 3454cd69c..d6ef5f062 100644 --- a/common/exechelp.h +++ b/common/exechelp.h @@ -52,12 +52,16 @@ int *get_all_open_fds (void); /* Portable function to create a pipe. Under Windows the write end is - inheritable. */ -gpg_error_t gnupg_create_inbound_pipe (int filedes[2]); + 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_inbound_pipe (int filedes[2], + estream_t *r_fp, int nonblock); /* Portable function to create a pipe. Under Windows the read end is - inheritable. */ -gpg_error_t gnupg_create_outbound_pipe (int filedes[2]); + 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], + estream_t *r_fp, int nonblock); /* Portable function to create a pipe. Under Windows both ends are inheritable. */ -- cgit v1.2.3