File:  [parser3project] / parser3 / src / include / pa_exec.h
Revision 1.17: download - view: text, annotated - select for diffs - revision graph
Tue May 11 15:05:21 2004 UTC (22 years, 2 months ago) by paf
Branches: MAIN
CVS tags: release_3_1_5, release_3_1_4, release_3_1_3, HEAD
bugfix: gpf on file::exec/cgi because of referencing to local objects

/** @file
	Parser: program executing for different OS-es decls.

	Copyright (c) 2000,2001-2004 ArtLebedev Group (http://www.artlebedev.com)
	Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
*/

#ifndef PA_EXEC_H
#define PA_EXEC_H

static const char * const IDENT_EXEC_H="$Date: 2004/05/11 15:05:21 $";

#include "pa_string.h"
#include "pa_hash.h"
#include "pa_array.h"
#include "pa_value.h"
#include "pa_charset.h"

struct PA_exec_result {
	int status; ///< exit code
	String& out;
	String& err;

	PA_exec_result(): status(0), out(*new String), err(*new String) {}
};

PA_exec_result pa_exec(
			bool forced_allow, ///< allow execution regardles of --disable-execs
			const String& file_spec, 
			const HashStringString* env, ///< 0 | Hash of String
			const ArrayString& argv, ///< 0 | Array of command line arguments
			String& in);

#endif

E-mail: