Minishell
 
Loading...
Searching...
No Matches
ft_dups.c File Reference
#include "builtins.h"
#include "file.h"
#include "garbage.h"
#include "ft_printf.h"
#include "minishell.h"
Include dependency graph for ft_dups.c:

Functions

int handle_redirections (t_garbage *garbage, t_command *command, int fd_backup[2])
 Create and redirect inputs and outputs needed for the command.
 
void reset_redirection (t_garbage *garbage, t_command *command, int fd_backup[2], unsigned char i)
 Reset redirections by default values Replace the new redirections by stdin and stdout.
 
int handle_redirections_forks (t_garbage *garbage, t_command *command)
 Create and redirect inputs and outputs needed for the command.