mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 02:40:06 +00:00
89983cb37c
As of Linux 4.17, siginfo headers in the Linux kernel have been largely unified across architectures (so various constants are defined with common values in include/uapi/asm-generic/siginfo.h even if not all architectures can generate those particular constants). This patch makes glibc reflect that unification and the current set of constants in that header as of Linux 4.18. Various constants are added to bits/siginfo-consts.h (under the same feature test macro conditions as the other constants with the same prefix), and removed from the ia64 bits/siginfo-consts-arch.h where they were previously there - this is not limited to constants added by the unification. Nothing is done about macros that are defined in include/uapi/asm-generic/siginfo.h with names with leading '__' (some of those are ia64-specific ones that remain in the ia64 bits/siginfo-consts-arch.h without the leading '__' there). A consequence of these changes is that TRAP_HWBKPT becomes available on AArch64 and all other architectures as requested in bug 21286. Tested for x86_64; tested with build-many-glibcs.py for ia64. [BZ #21286] * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New constant. [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise. [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise. [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise. [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise. [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise. [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise. [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise. [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise. [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise. * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h (ILL_BADIADDR): Remove constant. (TRAP_BRANCH): Likewise. (TRAP_HWBKPT): Likewise.
35 lines
693 B
C
35 lines
693 B
C
/* Architecture-specific additional siginfo constants. ia64 version. */
|
|
#ifndef _BITS_SIGINFO_CONSTS_ARCH_H
|
|
#define _BITS_SIGINFO_CONSTS_ARCH_H 1
|
|
|
|
/* `si_code' values for SIGILL signal. */
|
|
enum
|
|
{
|
|
ILL_BREAK = ILL_BADIADDR + 1
|
|
#define ILL_BREAK ILL_BREAK
|
|
};
|
|
|
|
/* `si_code' values for SIGFPE signal. */
|
|
enum
|
|
{
|
|
FPE_DECOVF = FPE_FLTSUB + 1,
|
|
#define FPE_DECOVF FPE_DECOVF
|
|
FPE_DECDIV,
|
|
#define FPE_DECDIV FPE_DECDIV
|
|
FPE_DECERR,
|
|
#define FPE_DECERR FPE_DECERR
|
|
FPE_INVASC,
|
|
#define FPE_INVASC FPE_INVASC
|
|
FPE_INVDEC
|
|
#define FPE_INVDEC FPE_INVDEC
|
|
};
|
|
|
|
/* `si_code' values for SIGSEGV signal. */
|
|
enum
|
|
{
|
|
SEGV_PSTKOVF = SEGV_ACCERR + 1
|
|
#define SEGV_PSTKOVF SEGV_PSTKOVF
|
|
};
|
|
|
|
#endif
|