diff options
Diffstat (limited to '')
-rw-r--r-- | src/s_struct.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/s_struct.h b/src/s_struct.h index 84271de..0b83158 100644 --- a/src/s_struct.h +++ b/src/s_struct.h @@ -14,6 +14,7 @@ #define S_STRUCT_H #include <stdint.h> +#include <stddef.h> #include <limits.h> #include "d_define.h" @@ -36,20 +37,27 @@ typedef struct s_lalias /* ** redir(int8_t) index ** ------------------- +** -2: << ** -1: < ** 1: > ** 2: >> ** 0: means no redirection */ +typedef struct s_lredir +{ + char path[PATH_MAX]; + int32_t fd; + int8_t redir; + struct s_lredir *next; +} t_lredir; + typedef struct s_com { char **argv; char **env_fork; char *bin; - char *rdrpath; - int32_t rdrfd; - int8_t redir; + struct s_lredir *rdr; } t_com; struct s_lpipes |