mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* sig.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/02/19 18:21:55 by jguelen #+# #+# */
|
|
/* Updated: 2025/03/11 17:36:07 by jguelen ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef SIG_H
|
|
# define SIG_H
|
|
|
|
/*
|
|
** Needed to have the definitions relative to sigaction and siginfo
|
|
** correctly taken into account.
|
|
*/
|
|
# define _POSIX_C_SOURCE 200809L
|
|
|
|
# include "libft.h"
|
|
# include <signal.h>
|
|
# include <stddef.h>
|
|
|
|
# ifndef NSIG
|
|
# define NSIG 64
|
|
# endif
|
|
|
|
extern int g_signum;
|
|
|
|
int set_interactive_mode_sig_handling(void);
|
|
int set_exec_mode_sig_handling(void);
|
|
int set_default_sig_handling(void);
|
|
|
|
#endif
|