#ifndef _SHELL_H #define _SHELL_H #define _GNU_SOURCE #include #include #include #include #include #include #include #define BUFF_SIZE 1024 #define ARG_SIZE 32 char *read_line(); int process_line(char *line, char ***args); int launch(char **args); void process_command(); int execute(char **args); void sig_handler(); int sh_cd(char **args); int sh_exit(char **args); char *compose_prompt(); #define BUILTIN_NUM sizeof(builtin) / sizeof(char *) #endif