ca marche a peu pres, il faut gerer la fermeture des fd entre pipes et redirections

This commit is contained in:
hugogogo
2021-10-19 22:57:00 +02:00
parent 5279c031fa
commit 4d812cd346
7 changed files with 128 additions and 234 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
/* Updated: 2021/10/10 05:39:09 by lperrey ### ########.fr */
/* Updated: 2021/10/19 21:58:02 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,4 +20,13 @@ typedef struct s_all
char *prompt;
} t_all;
typedef struct s_cmd
{
char **argv;
pid_t pid;
void *builtin;
int fd_in;
int fd_out;
} t_cmd;
#endif