maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
builtins_utils.c File Reference
#include "shell.h"
#include "libft.h"
#include <stdlib.h>
#include <stdio.h>
#include "env.h"
#include "exit_status.h"
#include "tokens.h"
#include "signals.h"
#include "builtins.h"
Include dependency graph for builtins_utils.c:

Go to the source code of this file.

Functions

void free_signal_context (void)
 
void clear_history_file (void)
 

Function Documentation

◆ clear_history_file()

void clear_history_file ( void  )

Definition at line 31 of file builtins_utils.c.

32{
33 remove(HISTORY_PATH);
34}
#define HISTORY_PATH
Definition tokens.h:27

References HISTORY_PATH.

Referenced by cleanup_exit_resources(), main(), and main_loop().

Here is the caller graph for this function:

◆ free_signal_context()

void free_signal_context ( void  )

Definition at line 23 of file builtins_utils.c.

24{
25 t_signal_context *context;
26
27 context = get_context(NULL);
28 free(context);
29}
t_signal_context * get_context(t_ms_data *data)

References get_context().

Referenced by cleanup_exit_resources().

Here is the call graph for this function:
Here is the caller graph for this function: