about summary refs log tree commit diff
path: root/src/libnix/exec.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-20T09·20+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-20T09·20+0000
commit53e376d836133a660223198c7bb8308fb912375e (patch)
tree92d5e5381b9bfafd2a79d3efdec71f14edb798d9 /src/libnix/exec.hh
parent0eab306466fdb186c692521dd1f2b949e56c54da (diff)
* Refactored the source tree.
Diffstat (limited to 'src/libnix/exec.hh')
-rw-r--r--src/libnix/exec.hh21
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 */