aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-04-22 11:02:11 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-07-07 14:10:58 -0300
commite4e11b1dba261cb650e631978622bf3b4a4d8c37 (patch)
tree41a98016f1a62f0c35beb5df160c89707af1a02e /signal
parent6caddd34bd7ffb5ac4f36c8e036eee100c2cc535 (diff)
downloadglibc-e4e11b1dba261cb650e631978622bf3b4a4d8c37.zip
glibc-e4e11b1dba261cb650e631978622bf3b4a4d8c37.tar.gz
glibc-e4e11b1dba261cb650e631978622bf3b4a4d8c37.tar.bz2
signal: Add signum-{generic,arch}.h
It refactor how signals are defined by each architecture. Instead of include a generic header (bits/signum-generic.h) and undef non-default values in an arch specific header (bits/signum.h) the new scheme uses a common definition (bits/signum-generic.h) and each architectures add its specific definitions on a new header (bits/signum-arch.h). For Linux it requires copy some system default definitions to alpha, hppa, and sparc. They are historical values and newer ports uses the generic Linux signum-arch.h. For Hurd the BSD signum is removed and moved to a new header (it is used currently only on Hurd). Checked on a build against all affected ABIs. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'signal')
-rw-r--r--signal/Makefile2
-rw-r--r--signal/signal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/signal/Makefile b/signal/Makefile
index f3c19e2..2ec3ddd 100644
--- a/signal/Makefile
+++ b/signal/Makefile
@@ -23,7 +23,7 @@ subdir := signal
include ../Makeconfig
headers := signal.h sys/signal.h \
- bits/signum.h bits/signum-generic.h \
+ bits/signum-generic.h bits/signum-arch.h \
bits/sigcontext.h bits/sigaction.h \
bits/sigevent-consts.h bits/siginfo-consts.h \
bits/sigstack.h bits/sigthread.h bits/ss_flags.h \
diff --git a/signal/signal.h b/signal/signal.h
index 2c57f90..db325bd 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -27,7 +27,7 @@
__BEGIN_DECLS
#include <bits/types.h>
-#include <bits/signum.h>
+#include <bits/signum-generic.h>
#include <bits/types/sig_atomic_t.h>