maxishell
Implementation of a shell for Linux-like systems
|
#include "builtins.h"
#include "libft.h"
#include <stdio.h>
#include <sys/wait.h>
#include "shell.h"
#include "execute.h"
#include "tokens.h"
#include "pipe.h"
#include "redirection.h"
#include "exit_status.h"
#include "signals.h"
Go to the source code of this file.
Functions | |
int | execute (t_ms_data *data) |
execute distribution function | |
static int | new_process (t_ms_data *data) |
static void | signal_handler (void) |
static void | handle_exec_errors (char *exec_path, t_ms_data *data) |
static void | child_process (t_ms_data *data) |
executes a new process | |
|
static |
executes a new process
--
data | minishell data structure |
Definition at line 76 of file execute_child.c.
References s_ms_data::args, close_fds(), s_ms_data::envp, ft_find_path(), ft_strdup(), ft_strncmp(), handle_exec_errors(), handle_std_io(), signal_handler(), s_ms_data::std_in, and s_ms_data::std_out.
Referenced by new_process().
int execute | ( | t_ms_data * | data | ) |
execute distribution function
--
data | minishell data struct |
Definition at line 40 of file execute_child.c.
References s_ms_data::args, builtin_cd(), builtin_echo(), builtin_env(), builtin_exit(), builtin_export(), builtin_pwd(), builtin_unset(), ft_strcmp(), and new_process().
Referenced by execute_ast().
|
static |
Definition at line 111 of file execute_child.c.
References s_ms_data::args, env_to_array(), s_ms_data::envp, EXIT_FAILURE, ft_putstr_fd(), and IS_DIRECTORY.
Referenced by child_process().
|
static |
Definition at line 91 of file execute_child.c.
References child_process(), close_fds(), ft_perror(), ft_printf(), handle_std_io(), s_ms_data::std_in, and s_ms_data::std_out.
Referenced by execute().
|
static |
Definition at line 131 of file execute_child.c.
References ft_memset().
Referenced by child_process().