aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-w32ce.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-01-14 13:14:25 +0000
committerJustus Winter <[email protected]>2016-02-23 10:58:52 +0000
commit9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a (patch)
treec37c3538628bcabf8b8f389f7653c7e1b683a766 /common/exechelp-w32ce.c
parentcommon/exechelp: Mute the Windows version. (diff)
downloadgnupg-9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a.tar.gz
gnupg-9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a.zip
common/exechelp: Add general pipe function.
* common/exechelp-posix.c (gnupg_create_pipe): New function. * common/exechelp-w32.c (INHERIT_{READ,WRITE,BOTH}): New macros. (create_inheritable_pipe): Generalize so that both ends can be inherited. (do_create_pipe): Rename argument accordingly. (gnupg_create_{in,out}bound_pipe): Use new flags. (gnupg_create_pipe): New function. (gnupg_spawn_process): Use new flags. * common/exechelp-w32ce.c (gnupg_create_pipe): New stub. * common/exechelp.h (gnupg_create_pipe): New prototype. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/exechelp-w32ce.c')
-rw-r--r--common/exechelp-w32ce.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/exechelp-w32ce.c b/common/exechelp-w32ce.c
index 49ccdbb99..710c828d2 100644
--- a/common/exechelp-w32ce.c
+++ b/common/exechelp-w32ce.c
@@ -465,6 +465,15 @@ gnupg_create_outbound_pipe (int filedes[2])
}
+/* Portable function to create a pipe. Under Windows both ends are
+ inheritable. */
+gpg_error_t
+gnupg_create_pipe (int filedes[2])
+{
+ return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
+}
+
+
static int
create_process (const char *pgmname, const char *cmdline,
PROCESS_INFORMATION *pi)