-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignal_utils.h
31 lines (25 loc) · 1.21 KB
/
signal_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* signal_utils.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: glajara- <glajara-@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/23 17:50:25 by alajara- #+# #+# */
/* Updated: 2023/12/21 11:16:40 by alajara- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SIGNAL_UTILS_H
# define SIGNAL_UTILS_H
// MODES OF SETTING SIGNALS
# define INTER 1
# define NON_INTER -1
# define HEREDOC 0
void set_signals(int mode);
void ignore_signal(int signum);
void signals_print_handler(int foo);
void set_interactive_sig(void);
void stop_signals(void);
// Number of the received signal.
int g_signal;
#endif