42_minishell/redirection/redirection_private.h

33 lines
1.5 KiB
C
Raw Permalink Normal View History

2023-03-28 09:55:08 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* redirection_private.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 13:44:31 by cchauvet #+# #+# */
2023-03-29 13:23:18 -04:00
/* Updated: 2023/03/29 19:19:21 by cchauvet ### ########.fr */
2023-03-28 09:55:08 -04:00
/* */
/* ************************************************************************** */
#ifndef REDIRECTION_PRIVATE_H
# define REDIRECTION_PRIVATE_H
# 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-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);
2023-03-29 13:23:18 -04:00
bool ft_check_redirection(t_data *data, t_cmd *cmd,
2023-03-29 13:07:57 -04:00
char *redirection_identifier, char *redirection);
2023-03-13 09:23:27 -04:00
int ft_file_is_appendable(t_data *data, const char *path);
int ft_heredoc(t_data *data, char *stop);
#endif