diff options
| 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 |
| commit | 24ba34266cc977b22d777bceca9683a45dd73042 (patch) | |
| tree | d9202b0f6d2e9d5ec9e14926e30ead18daa45ae8 /exec.h | |
| parent | d31d9ce64c3085bea1a094e649f62176b1a896a6 (diff) | |
start outlining fd-based redirecting
Diffstat (limited to 'exec.h')
| -rw-r--r-- | exec.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; |
