working on fixing pipes

This commit is contained in:
mdev9
2024-04-01 21:39:33 +02:00
parent 7d1fba69a9
commit dc73084ede
12 changed files with 61 additions and 97 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/04 17:31:38 by tomoron #+# #+# */
/* Updated: 2024/04/01 13:24:39 by marde-vr ### ########.fr */
/* Updated: 2024/04/01 20:09:38 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -69,7 +69,6 @@ typedef struct s_msh
{
t_env *env;
t_token *cmds;
int **fds;
int *pids;
t_token_type in_type;
t_token_type out_type;
@ -106,10 +105,10 @@ void remove_command_from_msh(t_msh *msh);
void ft_exit(t_msh *msh, int error_code);
void signal_handler_command(int signum);
void ft_exit(t_msh *msh, int exit_code);
void redirect_output(t_msh *msh, int i);
void redirect_output(t_msh *msh);
char **split_paths_from_env(t_env *env);
int add_return_code_to_str(char *res);
void redirect_input(t_msh *msh, int i);
void redirect_input(t_msh *msh);
void parse_var(t_msh *msh, char *line);
void print_parsed_token(t_token *cmd);//debug
int get_var_name_len(char *command);