/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* sys.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/14 17:24:23 by jhalford #+# #+# */ /* Updated: 2017/03/27 00:05:25 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef SYS_H # define SYS_H # define FT_XATTR_SIZE 10000 # define STDIN STDIN_FILENO # define STDOUT STDOUT_FILENO # define STDERR STDERR_FILENO # define STDBUG 3 # define PIPE_READ 0 # define PIPE_WRITE 1 # include # include # include # include # include int ft_xattr_print(char *path); int ft_xattr_count(char *path); char *ft_getenv(char **env, char *key); int try_access(char *file, int exists, t_flag a_flag); int is_directory(const char *path); char *create_directory(const char *path, const char *old_pathnames); int dup2_close(int fd1, int fd2); int fd_replace(int fd1, int fd2); int fd_minor(int fd, int minor); #endif