feat: IO polling for file descriptor
[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 SIGSTOP 3
9 #define SIGCONT 4
10
11 #define SIGINT 5
12 #define SIGSEGV 6
13 #define SIGKILL 7
14 #define SIGTERM 8
15
16 #define SIG_BLOCK 1
17 #define SIG_UNBLOCK 2
18 #define SIG_SETMASK 3
19
20 typedef unsigned int sigset_t;
21 typedef void (*sighandler_t)(int);
22
23 struct sigaction
24 {
25     sigset_t sa_mask;
26     void (*sa_handler)(int);
27     void (*sa_sigaction)(int, void*, void*);
28 };
29
30 struct siginfo
31 {
32     // TODO
33 };
34
35 #endif /* __LUNAIX_SIGNAL_DEFS_H */