122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef _ASMARM_SIGNAL_H
722851890Sopenharmony_ci#define _ASMARM_SIGNAL_H
822851890Sopenharmony_ci#include <linux/types.h>
922851890Sopenharmony_cistruct siginfo;
1022851890Sopenharmony_ci#define _KERNEL_NSIG		32
1122851890Sopenharmony_citypedef unsigned long sigset_t;
1222851890Sopenharmony_ci#define SIGHUP		 1
1322851890Sopenharmony_ci#define SIGINT		 2
1422851890Sopenharmony_ci#define SIGQUIT		 3
1522851890Sopenharmony_ci#define SIGILL		 4
1622851890Sopenharmony_ci#define SIGTRAP		 5
1722851890Sopenharmony_ci#define SIGABRT		 6
1822851890Sopenharmony_ci#define SIGIOT		 6
1922851890Sopenharmony_ci#define SIGBUS		 7
2022851890Sopenharmony_ci#define SIGFPE		 8
2122851890Sopenharmony_ci#define SIGKILL		 9
2222851890Sopenharmony_ci#define SIGUSR1		10
2322851890Sopenharmony_ci#define SIGSEGV		11
2422851890Sopenharmony_ci#define SIGUSR2		12
2522851890Sopenharmony_ci#define SIGPIPE		13
2622851890Sopenharmony_ci#define SIGALRM		14
2722851890Sopenharmony_ci#define SIGTERM		15
2822851890Sopenharmony_ci#define SIGSTKFLT	16
2922851890Sopenharmony_ci#define SIGCHLD		17
3022851890Sopenharmony_ci#define SIGCONT		18
3122851890Sopenharmony_ci#define SIGSTOP		19
3222851890Sopenharmony_ci#define SIGTSTP		20
3322851890Sopenharmony_ci#define SIGTTIN		21
3422851890Sopenharmony_ci#define SIGTTOU		22
3522851890Sopenharmony_ci#define SIGURG		23
3622851890Sopenharmony_ci#define SIGXCPU		24
3722851890Sopenharmony_ci#define SIGXFSZ		25
3822851890Sopenharmony_ci#define SIGVTALRM	26
3922851890Sopenharmony_ci#define SIGPROF		27
4022851890Sopenharmony_ci#define SIGWINCH	28
4122851890Sopenharmony_ci#define SIGIO		29
4222851890Sopenharmony_ci#define SIGPOLL		SIGIO
4322851890Sopenharmony_ci#define SIGPWR		30
4422851890Sopenharmony_ci#define SIGSYS		31
4522851890Sopenharmony_ci#define	SIGUNUSED	31
4622851890Sopenharmony_ci#define __SIGRTMIN	32
4722851890Sopenharmony_ci#define __SIGRTMAX	_KERNEL__NSIG
4822851890Sopenharmony_ci#define SIGSWI		32
4922851890Sopenharmony_ci#define SA_NOCLDSTOP	0x00000001
5022851890Sopenharmony_ci#define SA_NOCLDWAIT	0x00000002
5122851890Sopenharmony_ci#define SA_SIGINFO	0x00000004
5222851890Sopenharmony_ci#define SA_THIRTYTWO	0x02000000
5322851890Sopenharmony_ci#define SA_RESTORER	0x04000000
5422851890Sopenharmony_ci#define SA_ONSTACK	0x08000000
5522851890Sopenharmony_ci#define SA_RESTART	0x10000000
5622851890Sopenharmony_ci#define SA_NODEFER	0x40000000
5722851890Sopenharmony_ci#define SA_RESETHAND	0x80000000
5822851890Sopenharmony_ci#define SA_NOMASK	SA_NODEFER
5922851890Sopenharmony_ci#define SA_ONESHOT	SA_RESETHAND
6022851890Sopenharmony_ci#define MINSIGSTKSZ	2048
6122851890Sopenharmony_ci#define SIGSTKSZ	8192
6222851890Sopenharmony_ci#include <asm-generic/signal-defs.h>
6322851890Sopenharmony_cistruct sigaction {
6422851890Sopenharmony_ci	union {
6522851890Sopenharmony_ci	  __sighandler_t _sa_handler;
6622851890Sopenharmony_ci	  void (*_sa_sigaction)(int, struct siginfo *, void *);
6722851890Sopenharmony_ci	} _u;
6822851890Sopenharmony_ci	sigset_t sa_mask;
6922851890Sopenharmony_ci	unsigned long sa_flags;
7022851890Sopenharmony_ci	void (*sa_restorer)(void);
7122851890Sopenharmony_ci};
7222851890Sopenharmony_ci#define sa_handler	_u._sa_handler
7322851890Sopenharmony_ci#define sa_sigaction	_u._sa_sigaction
7422851890Sopenharmony_citypedef struct sigaltstack {
7522851890Sopenharmony_ci	void *ss_sp;
7622851890Sopenharmony_ci	int ss_flags;
7722851890Sopenharmony_ci	size_t ss_size;
7822851890Sopenharmony_ci} stack_t;
7922851890Sopenharmony_ci#endif
80