ajout d'un indicateur pour ne pas fermer le file descripto du fichier, mauvaise idee il faut le rouvrir je pense

This commit is contained in:
hugogogo
2021-10-20 00:15:50 +02:00
parent 4d812cd346
commit f2c8898fcc
4 changed files with 14 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/10/19 21:59:24 by hulamy ### ########.fr */
/* Updated: 2021/10/19 23:41:25 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -32,7 +32,7 @@ char *ft_strjoinfree_s2(const char *s1, char *s2);
void pipes_hugo(char *input, t_all *c);
// parser hugo
void **cmd_path(char **argv, char **envp);
int handle_fd(char **input, int i, int fdin, int *fd_in, int *fd_out);
int handle_fd(char **input, int i, int fdin, t_cmd *cmd);
t_list *parser(char *input, char **envp);
#endif

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
/* Updated: 2021/10/19 21:58:02 by hulamy ### ########.fr */
/* Updated: 2021/10/19 23:59:00 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,6 +25,7 @@ typedef struct s_cmd
char **argv;
pid_t pid;
void *builtin;
int fd_redirect;
int fd_in;
int fd_out;
} t_cmd;