diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-19 21:13:19 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-19 21:13:19 +0200 |
| commit | 2bdbf387261285d07e4b62d1e23c9e43efb14604 (patch) | |
| tree | 92b81d300f3c17d072f2a30362dafd815e57a758 /src/exec.h | |
| parent | 6a391a1180766ac5717c40efa70d46cacca83f91 (diff) | |
restructure dir, create makefile
Diffstat (limited to 'src/exec.h')
| -rw-r--r-- | src/exec.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/exec.h b/src/exec.h new file mode 100644 index 0000000..9ee8164 --- /dev/null +++ b/src/exec.h @@ -0,0 +1,26 @@ +#pragma once + +#include "utils.h" +#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; + Connector term; +} Command; + +DECLARE_VEC(Command, CommandVec) + +void process_input_line(char* line, ShellState* shstate); |
