maxishell
Implementation of a shell for Linux-like systems
|
#include "exit_status.h"
#include "libft.h"
#include <unistd.h>
#include "shell.h"
#include <stdio.h>
Go to the source code of this file.
Functions | |
void | exit_status_handler (t_ms_data *data, int status_code, char *err_arg) |
void | ft_puterror (char *err_arg, char *error_message) |
void | set_exit_status (int *exit_status, int status_code) |
void | set_shell_var_handler (t_ms_data *data) |
void exit_status_handler | ( | t_ms_data * | data, |
int | status_code, | ||
char * | err_arg | ||
) |
Definition at line 25 of file exit_status.c.
References s_ms_data::exit_status, ft_puterror(), INVALID_ARGUMENT, INVALID_OPTION, IS_DIRECTORY, NOT_VALID_IDENTIFIER, NUMERIC_REQUIRED, PERMISSION_DENIED, set_exit_status(), set_shell_var_handler(), TOO_MANY_ARGS, and UNKNOWN_COMMAND.
Referenced by builtin_cd(), builtin_export(), handle_numeric_error(), and handle_too_many_args_error().
void ft_puterror | ( | char * | err_arg, |
char * | error_message | ||
) |
Definition at line 63 of file exit_status.c.
References ft_putendl_fd(), and ft_putstr_fd().
Referenced by exit_status_handler().
void set_exit_status | ( | int * | exit_status, |
int | status_code | ||
) |
Definition at line 79 of file exit_status.c.
Referenced by builtin_env(), and exit_status_handler().
void set_shell_var_handler | ( | t_ms_data * | data | ) |
Definition at line 53 of file exit_status.c.
References s_ms_data::exit_status, ft_itoa(), set_shell_var(), and s_ms_data::shell_variables.
Referenced by exit_status_handler(), and process_command().