diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-10-20T09·20+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-10-20T09·20+0000 |
commit | 53e376d836133a660223198c7bb8308fb912375e (patch) | |
tree | 92d5e5381b9bfafd2a79d3efdec71f14edb798d9 /src/libnix/exec.hh | |
parent | 0eab306466fdb186c692521dd1f2b949e56c54da (diff) |
* Refactored the source tree.
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 */ |