xref: /openbmc/linux/arch/parisc/include/uapi/asm/signal.h (revision ba2929159000dc7015cc01cdf7bb72542e19952a)
16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
270c1674fSDavid Howells #ifndef _UAPI_ASM_PARISC_SIGNAL_H
370c1674fSDavid Howells #define _UAPI_ASM_PARISC_SIGNAL_H
470c1674fSDavid Howells 
570c1674fSDavid Howells #define SIGHUP		 1
670c1674fSDavid Howells #define SIGINT		 2
770c1674fSDavid Howells #define SIGQUIT		 3
870c1674fSDavid Howells #define SIGILL		 4
970c1674fSDavid Howells #define SIGTRAP		 5
1070c1674fSDavid Howells #define SIGABRT		 6
1170c1674fSDavid Howells #define SIGIOT		 6
121f25df2eSHelge Deller #define SIGSTKFLT	 7
1370c1674fSDavid Howells #define SIGFPE		 8
1470c1674fSDavid Howells #define SIGKILL		 9
1570c1674fSDavid Howells #define SIGBUS		10
1670c1674fSDavid Howells #define SIGSEGV		11
171f25df2eSHelge Deller #define SIGXCPU		12
1870c1674fSDavid Howells #define SIGPIPE		13
1970c1674fSDavid Howells #define SIGALRM		14
2070c1674fSDavid Howells #define SIGTERM		15
2170c1674fSDavid Howells #define SIGUSR1		16
2270c1674fSDavid Howells #define SIGUSR2		17
2370c1674fSDavid Howells #define SIGCHLD		18
2470c1674fSDavid Howells #define SIGPWR		19
2570c1674fSDavid Howells #define SIGVTALRM	20
2670c1674fSDavid Howells #define SIGPROF		21
2770c1674fSDavid Howells #define SIGIO		22
2870c1674fSDavid Howells #define SIGPOLL		SIGIO
2970c1674fSDavid Howells #define SIGWINCH	23
3070c1674fSDavid Howells #define SIGSTOP		24
3170c1674fSDavid Howells #define SIGTSTP		25
3270c1674fSDavid Howells #define SIGCONT		26
3370c1674fSDavid Howells #define SIGTTIN		27
3470c1674fSDavid Howells #define SIGTTOU		28
3570c1674fSDavid Howells #define SIGURG		29
361f25df2eSHelge Deller #define SIGXFSZ		30
3770c1674fSDavid Howells #define SIGUNUSED	31
38cd760704SHelge Deller #define SIGSYS		31
3970c1674fSDavid Howells 
4070c1674fSDavid Howells /* These should not be considered constants from userland.  */
411f25df2eSHelge Deller #define SIGRTMIN	32
42cd760704SHelge Deller #define SIGRTMAX	_NSIG
4370c1674fSDavid Howells 
4470c1674fSDavid Howells #define SA_ONSTACK	0x00000001
4570c1674fSDavid Howells #define SA_RESETHAND	0x00000004
4670c1674fSDavid Howells #define SA_NOCLDSTOP	0x00000008
4770c1674fSDavid Howells #define SA_SIGINFO	0x00000010
4870c1674fSDavid Howells #define SA_NODEFER	0x00000020
4970c1674fSDavid Howells #define SA_RESTART	0x00000040
5070c1674fSDavid Howells #define SA_NOCLDWAIT	0x00000080
5170c1674fSDavid Howells 
5270c1674fSDavid Howells #define SA_NOMASK	SA_NODEFER
5370c1674fSDavid Howells #define SA_ONESHOT	SA_RESETHAND
5470c1674fSDavid Howells 
5570c1674fSDavid Howells #define MINSIGSTKSZ	2048
5670c1674fSDavid Howells #define SIGSTKSZ	8192
5770c1674fSDavid Howells 
58161d36dfSPeter Collingbourne #include <asm-generic/signal-defs.h>
5970c1674fSDavid Howells 
60*b2b685c7SHelge Deller #define _NSIG		64
61*b2b685c7SHelge Deller #define _NSIG_BPW	(sizeof(unsigned long) * 8)
62*b2b685c7SHelge Deller #define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
63*b2b685c7SHelge Deller 
6470c1674fSDavid Howells # ifndef __ASSEMBLY__
6570c1674fSDavid Howells 
6670c1674fSDavid Howells #  include <linux/types.h>
6770c1674fSDavid Howells 
68*b2b685c7SHelge Deller typedef unsigned long old_sigset_t;	/* at least 32 bits */
69*b2b685c7SHelge Deller 
70*b2b685c7SHelge Deller typedef struct {
71*b2b685c7SHelge Deller 	unsigned long sig[_NSIG_WORDS];
72*b2b685c7SHelge Deller } sigset_t;
73*b2b685c7SHelge Deller 
7470c1674fSDavid Howells /* Avoid too many header ordering problems.  */
7570c1674fSDavid Howells struct siginfo;
7670c1674fSDavid Howells 
7770c1674fSDavid Howells typedef struct sigaltstack {
7870c1674fSDavid Howells 	void __user *ss_sp;
7970c1674fSDavid Howells 	int ss_flags;
8072113d0aSMasahiro Yamada 	__kernel_size_t ss_size;
8170c1674fSDavid Howells } stack_t;
8270c1674fSDavid Howells 
8370c1674fSDavid Howells #endif /* !__ASSEMBLY */
8470c1674fSDavid Howells #endif /* _UAPI_ASM_PARISC_SIGNAL_H */
85