maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Classes | |
struct | s_signal_context |
Macros | |
#define | _GNU_SOURCE |
Typedefs | |
typedef struct s_signal_context | t_signal_context |
Functions | |
t_signal_context * | get_context (t_ms_data *data) |
void | signal_reset_prompt (int signo, siginfo_t *info, void *ucontext) |
void | set_signals_interactive (t_ms_data *data) |
void | signal_print_newline (int signal) |
void | sigquit_ignore (void) |
void | set_signals_noninteractive (void) |
void | handle_sigint_heredoc (int signo) |
int | ft_perror (char *str) |
int | is_external_command_running (void) |
Variables | |
volatile sig_atomic_t | g_heredoc_interrupted |
typedef struct s_signal_context t_signal_context |
int ft_perror | ( | char * | str | ) |
Definition at line 18 of file exit_status_utils.c.
t_signal_context * get_context | ( | t_ms_data * | data | ) |
Definition at line 21 of file signals_utils.c.
References s_signal_context::data_cxt.
Referenced by free_signal_context().
void handle_sigint_heredoc | ( | int | signo | ) |
Definition at line 38 of file signals_utils.c.
References g_heredoc_interrupted.
Referenced by setup_sigint_handler().
int is_external_command_running | ( | void | ) |
Definition at line 44 of file signals_utils.c.
Referenced by signal_reset_prompt().
void set_signals_interactive | ( | t_ms_data * | data | ) |
Definition at line 43 of file signals.c.
References signal_reset_prompt().
Referenced by main_loop().
void set_signals_noninteractive | ( | void | ) |
Definition at line 66 of file signals.c.
Referenced by main_loop().
void signal_print_newline | ( | int | signal | ) |
void signal_reset_prompt | ( | int | signo, |
siginfo_t * | info, | ||
void * | ucontext | ||
) |
Definition at line 54 of file signals.c.
References is_external_command_running().
Referenced by set_signals_interactive().
void sigquit_ignore | ( | void | ) |
|
extern |
Definition at line 27 of file redirect_heredoc.c.
Referenced by handle_heredoc_interruption(), handle_sigint_heredoc(), redirect_here_doc(), and write_heredoc_lines().