maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
builtins_utils.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* builtins_utils.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: rocky <marvin@42.fr> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/11/06 14:23:42 by rocky #+# #+# */
9
/* Updated: 2024/11/06 14:23:44 by rocky ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "
shell.h
"
14
#include "
libft.h
"
15
#include <stdlib.h>
16
#include <stdio.h>
17
#include "
env.h
"
18
#include "
exit_status.h
"
19
#include "
tokens.h
"
20
#include "
signals.h
"
21
#include "
builtins.h
"
22
23
void
free_signal_context
(
void
)
24
{
25
t_signal_context
*context;
26
27
context =
get_context
(NULL);
28
free(context);
29
}
30
31
void
clear_history_file
(
void
)
32
{
33
remove(
HISTORY_PATH
);
34
}
builtins.h
free_signal_context
void free_signal_context(void)
Definition
builtins_utils.c:23
clear_history_file
void clear_history_file(void)
Definition
builtins_utils.c:31
env.h
exit_status.h
libft.h
shell.h
signals.h
get_context
t_signal_context * get_context(t_ms_data *data)
Definition
signals_utils.c:21
s_signal_context
Definition
signals.h:23
tokens.h
HISTORY_PATH
#define HISTORY_PATH
Definition
tokens.h:27
src
builtins
builtins_utils.c
Generated by
1.9.8