From 24ba34266cc977b22d777bceca9683a45dd73042 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Mon, 18 May 2026 13:19:15 +0200 Subject: start outlining fd-based redirecting --- exec.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'exec.h') diff --git a/exec.h b/exec.h index 2424801..ca0b1a5 100644 --- a/exec.h +++ b/exec.h @@ -4,6 +4,23 @@ #include "preproc.h" +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; -- cgit v1.2.3