maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
int | redirect_in (t_ast *node, t_ms_data *data) |
int | redirect_out (t_ast *node, t_ms_data *data) |
int | redirect_append (t_ast *node, t_ms_data *data) |
int | redirect_here_doc (t_ast *node, t_ms_data *data) |
char * | process_and_reassemble (char *line, t_ms_data *data) |
int | open_file (t_ast *node, char *direction) |
open file in the context of redirection | |
int | open_tmp_file (const char *type) |
int open_file | ( | t_ast * | node, |
char * | direction | ||
) |
open file in the context of redirection
-- "<" - read
node | current node in the AST |
direction | type of redirection |
Definition at line 34 of file utils.c.
References s_ast::args, and ft_strcmp().
Referenced by open_and_redirect(), open_and_redirect(), and setup_redirection().
int open_tmp_file | ( | const char * | type | ) |
Definition at line 52 of file utils.c.
References ft_perror(), and ft_strcmp().
Referenced by redirect_here_doc().
char * process_and_reassemble | ( | char * | line, |
t_ms_data * | data | ||
) |
Definition at line 27 of file loc_env_var_handler_heredoc.c.
References assemble_result(), ft_free_2d_arr(), ft_split(), and process_tokens().
Referenced by redirect_here_doc().
Definition at line 41 of file redirect_append.c.
References execute_ast(), EXIT_FAILURE, s_ast::left, and open_and_redirect().
Referenced by execute_ast().
Definition at line 89 of file redirect_heredoc.c.
References s_ast::args, execute_child(), EXIT_SUCCESS, ft_strdup(), g_heredoc_interrupted, handle_heredoc_interruption(), s_ast::left, open_tmp_file(), process_and_reassemble(), s_ast::right, setup_sigint_handler(), and write_heredoc_lines().
Referenced by execute_ast().
Definition at line 45 of file redirect_in.c.
References s_ast::args, execute_ast(), EXIT_FAILURE, EXIT_SUCCESS, s_ast::left, and setup_redirection().
Referenced by execute_ast().
Definition at line 54 of file redirect_out.c.
References execute_ast(), EXIT_FAILURE, s_ast::left, and open_and_redirect().
Referenced by execute_ast().