diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-04-22 11:02:11 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-07 14:10:58 -0300 |
commit | e4e11b1dba261cb650e631978622bf3b4a4d8c37 (patch) | |
tree | 41a98016f1a62f0c35beb5df160c89707af1a02e /signal | |
parent | 6caddd34bd7ffb5ac4f36c8e036eee100c2cc535 (diff) | |
download | glibc-e4e11b1dba261cb650e631978622bf3b4a4d8c37.tar.gz glibc-e4e11b1dba261cb650e631978622bf3b4a4d8c37.tar.xz glibc-e4e11b1dba261cb650e631978622bf3b4a4d8c37.zip |
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/Makefile | 2 | ||||
-rw-r--r-- | signal/signal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/signal/Makefile b/signal/Makefile index f3c19e2992..2ec3ddd74f 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 2c57f90e20..db325bde16 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> |