Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __ASM_GENERIC_SIGNAL_DEFS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __ASM_GENERIC_SIGNAL_DEFS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/compiler.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * SA_FLAGS values:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * SA_SIGINFO delivers the signal with SIGINFO structs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  * SA_ONSTACK indicates that a registered stack_t will be used.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * SA_RESTART flag to get restarting signals (which were the default long ago)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * SA_NODEFER prevents the current signal from being masked in the handler.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  * SA_RESETHAND clears the handler when the signal is delivered.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * SA_UNSUPPORTED is a flag bit that will never be supported. Kernels from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * before the introduction of SA_UNSUPPORTED did not clear unknown bits from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * sa_flags when read using the oldact argument to sigaction and rt_sigaction,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * so this bit allows flag bit support to be detected from userspace while
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * allowing an old kernel to be distinguished from a kernel that supports every
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * flag bit.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  * SA_EXPOSE_TAGBITS exposes an architecture-defined set of tag bits in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  * siginfo.si_addr.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)  * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)  * Unix names RESETHAND and NODEFER respectively.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #ifndef SA_NOCLDSTOP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define SA_NOCLDSTOP	0x00000001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #ifndef SA_NOCLDWAIT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define SA_NOCLDWAIT	0x00000002
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #ifndef SA_SIGINFO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define SA_SIGINFO	0x00000004
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /* 0x00000008 used on alpha, mips, parisc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) /* 0x00000010 used on alpha, parisc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) /* 0x00000020 used on alpha, parisc, sparc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) /* 0x00000040 used on alpha, parisc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) /* 0x00000080 used on parisc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) /* 0x00000100 used on sparc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) /* 0x00000200 used on sparc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define SA_UNSUPPORTED	0x00000400
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define SA_EXPOSE_TAGBITS	0x00000800
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) /* 0x00010000 used on mips */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) /* 0x01000000 used on x86 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) /* 0x02000000 used on x86 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)  * New architectures should not define the obsolete
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)  *	SA_RESTORER	0x04000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #ifndef SA_ONSTACK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define SA_ONSTACK	0x08000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #ifndef SA_RESTART
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define SA_RESTART	0x10000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #ifndef SA_NODEFER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define SA_NODEFER	0x40000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #ifndef SA_RESETHAND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define SA_RESETHAND	0x80000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define SA_NOMASK	SA_NODEFER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define SA_ONESHOT	SA_RESETHAND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #ifndef SIG_BLOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #define SIG_BLOCK          0	/* for blocking signals */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #ifndef SIG_UNBLOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #define SIG_UNBLOCK        1	/* for unblocking signals */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #ifndef SIG_SETMASK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define SIG_SETMASK        2	/* for setting the signal mask */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #ifndef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) typedef void __signalfn_t(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) typedef __signalfn_t __user *__sighandler_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) typedef void __restorefn_t(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) typedef __restorefn_t __user *__sigrestore_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define SIG_DFL	((__force __sighandler_t)0)	/* default signal handling */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #define SIG_IGN	((__force __sighandler_t)1)	/* ignore signal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #define SIG_ERR	((__force __sighandler_t)-1)	/* error return from signal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */