signals and termios WIP
+ shell script placeholder + generics functions + valgrind add_history() supp + misc
This commit is contained in:
@@ -6,13 +6,16 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
|
||||
/* Updated: 2021/10/24 19:18:28 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/10/30 13:31:07 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef MINISHELL_STRUCTS_H
|
||||
# define MINISHELL_STRUCTS_H
|
||||
|
||||
struct s_all;
|
||||
struct s_all *g_all;
|
||||
|
||||
enum e_token_id
|
||||
{
|
||||
T_TOKEN = 0,
|
||||
@@ -31,7 +34,6 @@ typedef struct s_token
|
||||
enum e_token_id id;
|
||||
} t_token;
|
||||
|
||||
struct s_all;
|
||||
typedef int (*t_builtin_ptr)(int,char **,struct s_all *);
|
||||
|
||||
typedef struct s_cmd
|
||||
@@ -45,12 +47,17 @@ typedef struct s_cmd
|
||||
|
||||
typedef struct s_all
|
||||
{
|
||||
t_cmd **cmd_arr;
|
||||
char **envp;
|
||||
char *prompt_base;
|
||||
char *prompt;
|
||||
t_token *token_list;
|
||||
int last_exit_status;
|
||||
t_cmd **cmd_arr;
|
||||
char **envp;
|
||||
char *prompt_base;
|
||||
char *prompt;
|
||||
t_token *token_list;
|
||||
int last_exit_status;
|
||||
struct termios ori_termios;
|
||||
struct termios interactive_termios;
|
||||
int termios_changed;
|
||||
struct sigaction ori_signal_behaviour;
|
||||
struct sigaction signal_behaviour;
|
||||
} t_all;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user