PatchworkOS
Loading...
Searching...
No Matches
signal.h
Go to the documentation of this file.
1#ifndef _SIGNAL_H
2#define _SIGNAL_H 1
3
4#include "_internal/config.h"
5
6// TODO: Implement signals
7
8/* Abnormal termination / abort() */
9#define SIGABRT 6
10/* Arithmetic exception / division by zero / overflow */
11#define SIGFPE 8
12/* Illegal instruction */
13#define SIGILL 4
14/* Interactive attention signal */
15#define SIGINT 2
16/* Invalid memory access */
17#define SIGSEGV 11
18/* Termination request */
19#define SIGTERM 15
20
21#define SIG_DFL (void (*)(int))0
22#define SIG_ERR (void (*)(int)) - 1
23#define SIG_IGN (void (*)(int))1
24
25typedef __SIG_ATOMIC_TYPE__ sig_atomic_t;
26
27_PUBLIC void (*signal(int sig, void (*func)(int)))(int);
28
29_PUBLIC int raise(int sig);
30
31#endif
#define _PUBLIC
Definition config.h:41
_PUBLIC int raise(int sig)
__SIG_ATOMIC_TYPE__ sig_atomic_t
Definition signal.h:25
_PUBLIC void(*)(int) signal(int sig, void(*func)(int))
Definition signal.h:27