make rule for user header file install
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / signal_defs.h
1 #ifndef __LUNAIX_SYS_SIGNAL_DEFS_H
2 #define __LUNAIX_SYS_SIGNAL_DEFS_H
3
4 #define SIGALRM 1
5 #define SIGCHLD 2
6 #define SIGCLD SIGCHLD
7
8 #define SIGINT 3
9 #define SIGSTOP 4
10 #define SIGCONT 5
11
12 #define SIGSEGV 6
13 #define SIGKILL 7
14 #define SIGTERM 8
15 #define SIGILL 9
16 #define SIGSYS 10
17
18 #define SIG_BLOCK 1
19 #define SIG_UNBLOCK 2
20 #define SIG_SETMASK 3
21
22 typedef unsigned char signum_t;
23 typedef unsigned int sigset_t;
24 typedef void (*sighandler_t)(int);
25
26 struct sigaction
27 {
28     sigset_t sa_mask;
29     void (*sa_handler)(int);
30     void (*sa_sigaction)(int, void*, void*);
31 };
32
33 struct siginfo
34 {
35     // TODO
36 };
37
38 #endif /* __LUNAIX_SIGNAL_DEFS_H */