Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI_ASMARM_SIGNAL_H
0003 #define _UAPI_ASMARM_SIGNAL_H
0004 
0005 #include <linux/types.h>
0006 
0007 /* Avoid too many header ordering problems.  */
0008 struct siginfo;
0009 
0010 #ifndef __KERNEL__
0011 /* Here we must cater to libcs that poke about in kernel headers.  */
0012 
0013 #define NSIG        32
0014 typedef unsigned long sigset_t;
0015 
0016 #endif /* __KERNEL__ */
0017 
0018 #define SIGHUP       1
0019 #define SIGINT       2
0020 #define SIGQUIT      3
0021 #define SIGILL       4
0022 #define SIGTRAP      5
0023 #define SIGABRT      6
0024 #define SIGIOT       6
0025 #define SIGBUS       7
0026 #define SIGFPE       8
0027 #define SIGKILL      9
0028 #define SIGUSR1     10
0029 #define SIGSEGV     11
0030 #define SIGUSR2     12
0031 #define SIGPIPE     13
0032 #define SIGALRM     14
0033 #define SIGTERM     15
0034 #define SIGSTKFLT   16
0035 #define SIGCHLD     17
0036 #define SIGCONT     18
0037 #define SIGSTOP     19
0038 #define SIGTSTP     20
0039 #define SIGTTIN     21
0040 #define SIGTTOU     22
0041 #define SIGURG      23
0042 #define SIGXCPU     24
0043 #define SIGXFSZ     25
0044 #define SIGVTALRM   26
0045 #define SIGPROF     27
0046 #define SIGWINCH    28
0047 #define SIGIO       29
0048 #define SIGPOLL     SIGIO
0049 /*
0050 #define SIGLOST     29
0051 */
0052 #define SIGPWR      30
0053 #define SIGSYS      31
0054 #define SIGUNUSED   31
0055 
0056 /* These should not be considered constants from userland.  */
0057 #define SIGRTMIN    32
0058 #define SIGRTMAX    _NSIG
0059 
0060 #define SIGSWI      32
0061 
0062 /*
0063  * SA_THIRTYTWO historically meant deliver the signal in 32-bit mode, even if
0064  * the task is running in 26-bit. But since the kernel no longer supports
0065  * 26-bit mode, the flag has no effect.
0066  */
0067 #define SA_THIRTYTWO    0x02000000
0068 #define SA_RESTORER 0x04000000
0069 
0070 #define MINSIGSTKSZ 2048
0071 #define SIGSTKSZ    8192
0072 
0073 #include <asm-generic/signal-defs.h>
0074 
0075 #ifndef __KERNEL__
0076 /* Here we must cater to libcs that poke about in kernel headers.  */
0077 
0078 struct sigaction {
0079     union {
0080       __sighandler_t _sa_handler;
0081       void (*_sa_sigaction)(int, struct siginfo *, void *);
0082     } _u;
0083     sigset_t sa_mask;
0084     unsigned long sa_flags;
0085     void (*sa_restorer)(void);
0086 };
0087 
0088 #define sa_handler  _u._sa_handler
0089 #define sa_sigaction    _u._sa_sigaction
0090 
0091 #endif /* __KERNEL__ */
0092 
0093 typedef struct sigaltstack {
0094     void __user *ss_sp;
0095     int ss_flags;
0096     __kernel_size_t ss_size;
0097 } stack_t;
0098 
0099 
0100 #endif /* _UAPI_ASMARM_SIGNAL_H */