summaryrefslogtreecommitdiff
path: root/exec.h
diff options
context:
space:
mode:
Diffstat (limited to 'exec.h')
-rw-r--r--exec.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/exec.h b/exec.h
index 2424801..ca0b1a5 100644
--- a/exec.h
+++ b/exec.h
@@ -5,6 +5,23 @@
typedef struct {
+ int old_fd;
+ int new_fd;
+} FdRedirect;
+
+DECLARE_VEC(FdRedirect, FdRedirectVec)
+
+typedef struct {
+ char** args;
+ FdRedirectVec redirs;
+ int stdin_fd;
+ int stdout_fd;
+ IntVec child_close_fds;
+ IntVec parent_close_fds;
+} ExecutableCommand;
+
+
+typedef struct {
KeyValMap aliases;
KeyValMap shell_vars;
} ShellState;