2023-03-10 06:32:39 -05:00
|
|
|
#ifndef REDIRECTIONS_PRIVATE
|
|
|
|
# define REDIRECTIONS_PRIVATE
|
|
|
|
# include <sys/stat.h>
|
|
|
|
# include <fcntl.h>
|
|
|
|
# include <stddef.h>
|
|
|
|
# include <unistd.h>
|
|
|
|
# include "../libftx/libftx.h"
|
|
|
|
# include "../data/data.h"
|
|
|
|
# include "../env/env.h"
|
|
|
|
# include "../utils/utils.h"
|
2023-03-13 09:23:27 -04:00
|
|
|
# include "../cmd/cmd.h"
|
2023-03-10 06:32:39 -05:00
|
|
|
|
2023-03-13 09:23:27 -04:00
|
|
|
int ft_file_is_readable(t_data *data, const char *path);
|
|
|
|
int ft_file_is_writable(t_data *data, const char *path);
|
|
|
|
int ft_file_is_appendable(t_data *data, const char *path);
|
2023-03-10 06:32:39 -05:00
|
|
|
int ft_heredoc(t_data *data, char *stop);
|
|
|
|
|
|
|
|
#endif
|