/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* minishell.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: sede-san // readline(3), rl_clear_history(), // rl_on_new_line(), rl_replace_line(), // rl_redisplay() # include // add_history() # include // printf(3), perror(3) # include // malloc(3), free(3), exit(3), getenv(3) # include // write(2), getcwd(3), chdir(2), unlink(2), // execve(2), dup(2), dup2(2), pipe(2), // isatty(3), ttyname(3), ttyslot(3) # include // open(2) # include // wait(2), waitpid(2), wait3(2), wait4(2) # include // signal(2), sigaction(2), sigemptyset(3), // sigaddset(3), kill(2) # include // stat(2), lstat(2), fstat(2) # include // opendir(3), closedir(3) # include // opendir(3), readdir(3), closedir(3) # include // strerror(3) # include // ioctl(2) # include // tcsetattr(3), tcgetattr(3) # include // tgetent(3), tgetflag(3), tgetnum(3), // tgetstr(3), tgoto(3), tputs(3) /******************************************************************************/ /* Structures & Data Types */ /******************************************************************************/ typedef struct s_minishell t_minishell; typedef struct s_minishell { char **env; u_int8_t exit_status; } t_minishell; /* core/minishell.c */ extern int minishell_init(struct s_minishell *minishell, char **envp); extern u_int8_t minishell_run(struct s_minishell *minishell); extern void minishell_clear(struct s_minishell *minishell); #endif /* MINISHELL_H */