diff options
Diffstat (limited to 'src/libnix/exec.hh')
-rw-r--r-- | src/libnix/exec.hh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libnix/exec.hh b/src/libnix/exec.hh new file mode 100644 index 000000000000..8d410e404383 --- /dev/null +++ b/src/libnix/exec.hh @@ -0,0 +1,21 @@ +#ifndef __EXEC_H +#define __EXEC_H + +#include <string> +#include <map> + +#include "util.hh" + +using namespace std; + + +/* A Unix environment is a mapping from strings to strings. */ +typedef map<string, string> Environment; + + +/* Run a program. */ +void runProgram(const string & program, + const Strings & args, const Environment & env); + + +#endif /* !__EXEC_H */ |