X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/2a49908006b177c4d6354309333d06b1b96e4887..084eac3d5fa7deeab2296cf20653f4f7b3f75cd0:/lunaix-os/includes/usr/lunaix/signal_defs.h diff --git a/lunaix-os/includes/usr/lunaix/signal_defs.h b/lunaix-os/includes/usr/lunaix/signal_defs.h index ac102ab..7c8148a 100644 --- a/lunaix-os/includes/usr/lunaix/signal_defs.h +++ b/lunaix-os/includes/usr/lunaix/signal_defs.h @@ -1,21 +1,38 @@ #ifndef __LUNAIX_SYS_SIGNAL_DEFS_H #define __LUNAIX_SYS_SIGNAL_DEFS_H -#define SIGSEGV 1 -#define SIGALRM 2 -#define SIGCHLD 3 +#define SIGALRM 1 +#define SIGCHLD 2 #define SIGCLD SIGCHLD -#define SIGINT 4 -#define SIGKILL 5 -#define SIGSTOP 6 -#define SIGCONT 7 + +#define SIGINT 3 +#define SIGSTOP 4 +#define SIGCONT 5 + +#define SIGSEGV 6 +#define SIGKILL 7 #define SIGTERM 8 +#define SIGILL 9 +#define SIGSYS 10 #define SIG_BLOCK 1 #define SIG_UNBLOCK 2 #define SIG_SETMASK 3 +typedef unsigned char signum_t; typedef unsigned int sigset_t; typedef void (*sighandler_t)(int); +struct sigaction +{ + sigset_t sa_mask; + void (*sa_handler)(int); + void (*sa_sigaction)(int, void*, void*); +}; + +struct siginfo +{ + // TODO +}; + #endif /* __LUNAIX_SIGNAL_DEFS_H */