blob: 9ee8164185b0b40a53634b3647a13797e53ca2a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
|