summaryrefslogtreecommitdiff
path: root/src/proc_open.h
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-09 06:42:33 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-09 06:42:33 +0000
commit75c3a8393a06bcdbf7d9bbfc627728619ae93261 (patch)
treeeabea4f43f18d4bbcc5de838cb9186a3dc906397 /src/proc_open.h
parent360aba360f5bb6c8db7f98717d67c08448b7a111 (diff)
downloadlighttpd1.4-75c3a8393a06bcdbf7d9bbfc627728619ae93261.tar.gz
lighttpd1.4-75c3a8393a06bcdbf7d9bbfc627728619ae93261.zip
added include_shell option to configfiles (merged the rest of the trunk changesets)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@530 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/proc_open.h')
-rw-r--r--src/proc_open.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/proc_open.h b/src/proc_open.h
new file mode 100644
index 00000000..e07421a0
--- /dev/null
+++ b/src/proc_open.h
@@ -0,0 +1,25 @@
+
+#include "buffer.h"
+
+#ifdef WIN32
+#include <windows.h>
+typedef HANDLE descriptor_t;
+typedef HANDLE proc_pid_t;
+#else
+typedef int descriptor_t;
+typedef pid_t proc_pid_t;
+#endif
+
+typedef struct {
+ descriptor_t parent, child;
+ int fd;
+} pipe_t;
+
+typedef struct {
+ pipe_t in, out, err;
+ proc_pid_t child;
+} proc_handler_t;
+
+int proc_close(proc_handler_t *ht);
+int proc_open(proc_handler_t *ht, const char *command);
+int proc_open_buffer(proc_handler_t *ht, const char *command, buffer *in, buffer *out, buffer *err);