diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-27 18:08:49 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-27 18:08:49 +0100 |
| commit | 83e7d63bc9c2d4a246df3cc8555127f3b956f960 (patch) | |
| tree | 025f4f5eb940754e04c0b8e8f4d44f36831d8a2e /include | |
| parent | 5e90ab4b33570dd14c96c8ed32e2477b788aa75c (diff) | |
| download | minishell-83e7d63bc9c2d4a246df3cc8555127f3b956f960.tar.gz minishell-83e7d63bc9c2d4a246df3cc8555127f3b956f960.tar.bz2 minishell-83e7d63bc9c2d4a246df3cc8555127f3b956f960.zip | |
WIP: path update from PATH formated string
Diffstat (limited to 'include')
| -rw-r--r-- | include/minishell.h | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/include/minishell.h b/include/minishell.h index f273a6f..cc28e10 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,22 +6,26 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/02/26 16:10:56 by cacharle ### ########.fr */ +/* Updated: 2020/02/27 18:07:06 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef MINISHELL_H # define MINISHELL_H +# include <stdlib.h> +# include <string.h> +# include <unistd.h> +# include <fcntl.h> +# include <dirent.h> +# include <sys/wait.h> +# include <signal.h> +# include <sys/stat.h> + # include "libft.h" # include "libft_ht.h" - - -typedef struct -{ - int argc; - char **argv; -} t_command; +# include "libft_lst.h" +# include "libft_util.h" typedef int t_status; @@ -45,9 +49,6 @@ typedef struct t_ftlst *redirections; } t_command; -// parsing steps -// 1. interpolation des variable - typedef enum { SEPARATOR_SEMICOLON, @@ -69,6 +70,28 @@ typedef struct t_parsing *ms_parse(char *input); /* +** path.c +*/ + +typedef struct +{ + t_ftht *commands; + t_ftlst *dirs; +} t_path; + +t_path *ms_path_update(t_path *path, const char *path_str); +void ms_path_destroy(t_path *path); + +/* +** environment.c +*/ + +// t_ftht *ms_environment_update(t_ftht *environment, char **envp); +// char **ms_environment_(t_ftht *environment, char **envp); +// void ms_environment_destroy(t_ftht *environment); + + +/* ** builtin*.c */ |
