From 7c3746592bf2547dbd5de5d07589c7e19ea6fe2a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 6 Nov 2018 15:45:16 +0100 Subject: Add strsignal() and improve sharing signal numbers between LibC and kernel. --- LibC/signal.h | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'LibC/signal.h') 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 +#include __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 -- cgit v1.2.3