Minishell
 
Loading...
Searching...
No Matches
file-general.c File Reference
#include "minishell.h"
#include "builtins.h"
#include "file.h"
#include "ft_printf.h"
#include "garbage.h"
#include <fcntl.h>
#include <stdlib.h>
Include dependency graph for file-general.c:

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.