xref: /openbmc/linux/arch/parisc/include/uapi/asm/signal.h (revision 161d36dfc7b56c357e5f291679c8e159527797a6)
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 /*
4570c1674fSDavid Howells  * SA_FLAGS values:
4670c1674fSDavid Howells  *
4770c1674fSDavid Howells  * SA_ONSTACK indicates that a registered stack_t will be used.
4870c1674fSDavid Howells  * SA_RESTART flag to get restarting signals (which were the default long ago)
4970c1674fSDavid Howells  * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
5070c1674fSDavid Howells  * SA_RESETHAND clears the handler when the signal is delivered.
5170c1674fSDavid Howells  * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
5270c1674fSDavid Howells  * SA_NODEFER prevents the current signal from being masked in the handler.
5370c1674fSDavid Howells  *
5470c1674fSDavid Howells  * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
5570c1674fSDavid Howells  * Unix names RESETHAND and NODEFER respectively.
5670c1674fSDavid Howells  */
5770c1674fSDavid Howells #define SA_ONSTACK	0x00000001
5870c1674fSDavid Howells #define SA_RESETHAND	0x00000004
5970c1674fSDavid Howells #define SA_NOCLDSTOP	0x00000008
6070c1674fSDavid Howells #define SA_SIGINFO	0x00000010
6170c1674fSDavid Howells #define SA_NODEFER	0x00000020
6270c1674fSDavid Howells #define SA_RESTART	0x00000040
6370c1674fSDavid Howells #define SA_NOCLDWAIT	0x00000080
6470c1674fSDavid Howells 
6570c1674fSDavid Howells #define SA_NOMASK	SA_NODEFER
6670c1674fSDavid Howells #define SA_ONESHOT	SA_RESETHAND
6770c1674fSDavid Howells 
6870c1674fSDavid Howells #define MINSIGSTKSZ	2048
6970c1674fSDavid Howells #define SIGSTKSZ	8192
7070c1674fSDavid Howells 
71*161d36dfSPeter Collingbourne #include <asm-generic/signal-defs.h>
7270c1674fSDavid Howells 
7370c1674fSDavid Howells # ifndef __ASSEMBLY__
7470c1674fSDavid Howells 
7570c1674fSDavid Howells #  include <linux/types.h>
7670c1674fSDavid Howells 
7770c1674fSDavid Howells /* Avoid too many header ordering problems.  */
7870c1674fSDavid Howells struct siginfo;
7970c1674fSDavid Howells 
8070c1674fSDavid Howells typedef struct sigaltstack {
8170c1674fSDavid Howells 	void __user *ss_sp;
8270c1674fSDavid Howells 	int ss_flags;
8370c1674fSDavid Howells 	size_t ss_size;
8470c1674fSDavid Howells } stack_t;
8570c1674fSDavid Howells 
8670c1674fSDavid Howells #endif /* !__ASSEMBLY */
8770c1674fSDavid Howells #endif /* _UAPI_ASM_PARISC_SIGNAL_H */
88