2001-12-22 00:09:41 +01:00
|
|
|
#ifndef _EXEC_H_
|
|
|
|
#define _EXEC_H_
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "iobuf.h"
|
|
|
|
|
|
|
|
struct exec_info
|
|
|
|
{
|
|
|
|
int progreturn,binary,writeonly,madedir,use_temp_files,keep_temp_files;
|
|
|
|
pid_t child;
|
|
|
|
FILE *tochild;
|
|
|
|
IOBUF fromchild;
|
2002-05-13 22:44:30 +02:00
|
|
|
char *command,*name,*tempdir,*tempfile_in,*tempfile_out;
|
2001-12-22 00:09:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
int exec_write(struct exec_info **info,const char *program,
|
2002-05-13 22:44:30 +02:00
|
|
|
const char *args_in,const char *name,int writeonly,int binary);
|
2001-12-22 00:09:41 +01:00
|
|
|
int exec_read(struct exec_info *info);
|
|
|
|
int exec_finish(struct exec_info *info);
|
|
|
|
|
|
|
|
#endif /* !_EXEC_H_ */
|