maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
shell.h
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* shell.h :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: dmdemirk <dmdemirk@student.42london.c +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/06/04 11:19:58 by dmdemirk #+# #+# */
9
/* Updated: 2024/07/17 17:02:13 by dmdemirk ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#ifndef SHELL_H
14
# define SHELL_H
15
16
# include "
env.h
"
17
# include <signal.h>
18
# include <termios.h>
19
20
typedef
struct
s_ms_data
21
{
22
struct
termios *
terminal
;
23
char
**
args
;
24
t_env
*
envp
;
25
t_env
*
shell_variables
;
26
int
std_in
;
27
int
std_out
;
28
int
std_err
;
29
char
*
current_dir
;
30
int
exit_status
;
31
}
t_ms_data
;
32
33
#endif
env.h
t_ms_data
struct s_ms_data t_ms_data
s_env
Definition
env.h:17
s_ms_data
Definition
shell.h:21
s_ms_data::exit_status
int exit_status
Definition
shell.h:30
s_ms_data::envp
t_env * envp
Definition
shell.h:24
s_ms_data::std_err
int std_err
Definition
shell.h:28
s_ms_data::std_out
int std_out
Definition
shell.h:27
s_ms_data::shell_variables
t_env * shell_variables
Definition
shell.h:25
s_ms_data::current_dir
char * current_dir
Definition
shell.h:29
s_ms_data::terminal
struct termios * terminal
Definition
shell.h:22
s_ms_data::args
char ** args
Definition
shell.h:23
s_ms_data::std_in
int std_in
Definition
shell.h:26
inc
shell.h
Generated by
1.9.8