X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/ec4ff182252b6d7b3cb81f4fa783c5348a6c30fd..b1644f824d7f4989a94b8a752aadee26cae25069:/lunaix-os/includes/usr/lunaix/signal.h diff --git a/lunaix-os/includes/usr/lunaix/signal.h b/lunaix-os/includes/usr/lunaix/signal.h new file mode 100644 index 0000000..18b28ee --- /dev/null +++ b/lunaix-os/includes/usr/lunaix/signal.h @@ -0,0 +1,38 @@ +#ifndef _LUNAIX_UHDR_SYS_SIGNAL_DEFS_H +#define _LUNAIX_UHDR_SYS_SIGNAL_DEFS_H + +#define SIGALRM 1 +#define SIGCHLD 2 +#define SIGCLD SIGCHLD + +#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_UHDR_SIGNAL_DEFS_H */