diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-06 15:45:16 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-06 15:45:16 +0100 |
commit | 7c3746592bf2547dbd5de5d07589c7e19ea6fe2a (patch) | |
tree | c50b4985b550de8e13f16b2351ad05204233b22c /LibC/signal.h | |
parent | 8d1f8b2518d17e90ec8e28fff64c22361b0b0c1b (diff) | |
download | serenity-7c3746592bf2547dbd5de5d07589c7e19ea6fe2a.zip |
Add strsignal() and improve sharing signal numbers between LibC and kernel.
Diffstat (limited to 'LibC/signal.h')
-rw-r--r-- | LibC/signal.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/LibC/signal.h b/LibC/signal.h index 03e2f03d4a..0cc5e5a142 100644 --- a/LibC/signal.h +++ b/LibC/signal.h @@ -1,6 +1,7 @@ #pragma once #include <sys/types.h> +#include <signal_numbers.h> __BEGIN_DECLS @@ -29,6 +30,9 @@ int sigaddset(sigset_t*, int sig); int sigdelset(sigset_t*, int sig); int sigismember(const sigset_t*, int sig); +#define NSIG 32 +extern const char* sys_siglist[NSIG]; + #define SIG_DFL ((__sighandler_t)0) #define SIG_ERR ((__sighandler_t)-1) #define SIG_IGN ((__sighandler_t)1) @@ -41,25 +45,5 @@ int sigismember(const sigset_t*, int sig); #define SIG_UNBLOCK 1 #define SIG_SETMASK 2 -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGCONT 18 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 - __END_DECLS |