#include "minishell.h"
#include "builtins.h"
#include "file.h"
#include "ft_printf.h"
#include "garbage.h"
#include <fcntl.h>
#include <stdlib.h>
Functions | |
int | files_management (t_data *data) |
Executes all the files redirection tests. | |
int | open_file_with_rights (t_garbage *garbage, t_file *file, t_bool in_out) |
Open a file with it's rights (permissions) | |
void | read_write_to (t_garbage *garbage, t_command *command, t_bool in_out) |
Opens the files to read and writes. | |
void | fd_default (t_command *command) |
Put the fds in command to there default values. | |