File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / proc_open.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (8 years, 1 month ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

#ifndef LI_PROC_OPEN_H
#define LI_PROC_OPEN_H
#include "first.h"

#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(const char *command, buffer *in, buffer *out, buffer *err);

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>