^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _ASM_PARISC_SIGNAL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _ASM_PARISC_SIGNAL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <uapi/asm/signal.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define _NSIG 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) /* bits-per-word, where word apparently means 'long' not 'int' */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define _NSIG_BPW BITS_PER_LONG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) # ifndef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /* Most things should be clean enough to redefine this at will, if care
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) is taken to make libc match. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) typedef unsigned long old_sigset_t; /* at least 32 bits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) typedef struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /* next_signal() assumes this is a long - no choice */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) unsigned long sig[_NSIG_WORDS];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) } sigset_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #include <asm/sigcontext.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* !__ASSEMBLY */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif /* _ASM_PARISC_SIGNAL_H */