/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_GENERIC_SIGNAL_DEFS_H #define __ASM_GENERIC_SIGNAL_DEFS_H #include <linux/compiler.h> /* * SA_FLAGS values: * * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. * SA_SIGINFO delivers the signal with SIGINFO structs. * SA_ONSTACK indicates that a registered stack_t will be used. * SA_RESTART flag to get restarting signals (which were the default long ago) * SA_NODEFER prevents the current signal from being masked in the handler. * SA_RESETHAND clears the handler when the signal is delivered. * SA_UNSUPPORTED is a flag bit that will never be supported. Kernels from * before the introduction of SA_UNSUPPORTED did not clear unknown bits from * sa_flags when read using the oldact argument to sigaction and rt_sigaction, * so this bit allows flag bit support to be detected from userspace while * allowing an old kernel to be distinguished from a kernel that supports every * flag bit. * SA_EXPOSE_TAGBITS exposes an architecture-defined set of tag bits in * siginfo.si_addr. * * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single * Unix names RESETHAND and NODEFER respectively. */ #ifndef SA_NOCLDSTOP #define SA_NOCLDSTOP … #endif #ifndef SA_NOCLDWAIT #define SA_NOCLDWAIT … #endif #ifndef SA_SIGINFO #define SA_SIGINFO … #endif /* 0x00000008 used on alpha, mips, parisc */ /* 0x00000010 used on alpha, parisc */ /* 0x00000020 used on alpha, parisc, sparc */ /* 0x00000040 used on alpha, parisc */ /* 0x00000080 used on parisc */ /* 0x00000100 used on sparc */ /* 0x00000200 used on sparc */ #define SA_UNSUPPORTED … #define SA_EXPOSE_TAGBITS … /* 0x00010000 used on mips */ /* 0x00800000 used for internal SA_IMMUTABLE */ /* 0x01000000 used on x86 */ /* 0x02000000 used on x86 */ /* * New architectures should not define the obsolete * SA_RESTORER 0x04000000 */ #ifndef SA_ONSTACK #define SA_ONSTACK … #endif #ifndef SA_RESTART #define SA_RESTART … #endif #ifndef SA_NODEFER #define SA_NODEFER … #endif #ifndef SA_RESETHAND #define SA_RESETHAND … #endif #define SA_NOMASK … #define SA_ONESHOT … #ifndef SIG_BLOCK #define SIG_BLOCK … #endif #ifndef SIG_UNBLOCK #define SIG_UNBLOCK … #endif #ifndef SIG_SETMASK #define SIG_SETMASK … #endif #ifndef __ASSEMBLY__ __signalfn_t; __sighandler_t; __restorefn_t; __sigrestore_t; #define SIG_DFL … #define SIG_IGN … #define SIG_ERR … #endif #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */