9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1ce16ae2eed2496edcfe44a902e83042b366e83e
parent cdd9e137c1662d490ea0e996af4114c4388520ab
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Fri, 12 Oct 2018 13:04:47 +0100

[libc] Trim signal.h to only include signals defined in C99

Change-Id: I705346ad33a94307774a5ad6979471f0c99cebab

Diffstat:
Minclude/bits/bsd/sys/signal.h | 15+--------------
Minclude/bits/linux/sys/signal.h | 15+--------------
Minclude/bits/none/sys/signal.h | 15+--------------
3 files changed, 3 insertions(+), 42 deletions(-)

diff --git a/include/bits/bsd/sys/signal.h b/include/bits/bsd/sys/signal.h @@ -4,24 +4,11 @@ typedef int sig_atomic_t; #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) -#define SIGHUP 1 #define SIGINT 2 -#define SIGQUIT 3 #define SIGILL 4 #define SIGABRT 6 #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 SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGSSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define __NR_SIGNALS 23 +#define __NR_SIGNALS 6 diff --git a/include/bits/linux/sys/signal.h b/include/bits/linux/sys/signal.h @@ -4,24 +4,11 @@ typedef int sig_atomic_t; #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) -#define SIGHUP 1 #define SIGINT 2 -#define SIGQUIT 3 #define SIGILL 4 #define SIGABRT 6 #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 SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGSSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define __NR_SIGNALS 23 +#define __NR_SIGNALS 6 diff --git a/include/bits/none/sys/signal.h b/include/bits/none/sys/signal.h @@ -4,24 +4,11 @@ typedef int sig_atomic_t; #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) -#define SIGHUP 1 #define SIGINT 2 -#define SIGQUIT 3 #define SIGILL 4 #define SIGABRT 6 #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 SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGSSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define __NR_SIGNALS 23 +#define __NR_SIGNALS 6