42-archive/libft/includes/sys.h
2017-08-16 19:52:29 +02:00

46 lines
1.7 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* sys.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/14 17:24:23 by jhalford #+# #+# */
/* Updated: 2017/05/16 17:30:50 by ariard ### ########.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 9
# define PIPE_READ 0
# define PIPE_WRITE 1
# include <sys/types.h>
# include <sys/xattr.h>
/* # if HAVE_SYS_ACL_H */
/* # include <sys/acl.h> */
/* # endif */
# include <sys/stat.h>
# include <fcntl.h>
/* int ft_xattr_print(char *path); */
/* int ft_xattr_count(char *path); */
/* char *ft_getenv(char **env, char *key); */
/* int open_access(char *file, t_flag a_flag, t_flag o_flag, t_flag o_perm); */
int open_new(char *filename, int oflag);
/* 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); */
#endif