summaryrefslogtreecommitdiff
path: root/exec.h
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-18 13:19:15 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-18 13:19:15 +0200
commit24ba34266cc977b22d777bceca9683a45dd73042 (patch)
treed9202b0f6d2e9d5ec9e14926e30ead18daa45ae8 /exec.h
parentd31d9ce64c3085bea1a094e649f62176b1a896a6 (diff)
start outlining fd-based redirecting
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;