Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI__ASM_GENERIC_SIGNAL_H
0003 #define _UAPI__ASM_GENERIC_SIGNAL_H
0004 
0005 #include <linux/types.h>
0006 
0007 #define _NSIG       64
0008 #define _NSIG_BPW   __BITS_PER_LONG
0009 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
0010 
0011 #define SIGHUP       1
0012 #define SIGINT       2
0013 #define SIGQUIT      3
0014 #define SIGILL       4
0015 #define SIGTRAP      5
0016 #define SIGABRT      6
0017 #define SIGIOT       6
0018 #define SIGBUS       7
0019 #define SIGFPE       8
0020 #define SIGKILL      9
0021 #define SIGUSR1     10
0022 #define SIGSEGV     11
0023 #define SIGUSR2     12
0024 #define SIGPIPE     13
0025 #define SIGALRM     14
0026 #define SIGTERM     15
0027 #define SIGSTKFLT   16
0028 #define SIGCHLD     17
0029 #define SIGCONT     18
0030 #define SIGSTOP     19
0031 #define SIGTSTP     20
0032 #define SIGTTIN     21
0033 #define SIGTTOU     22
0034 #define SIGURG      23
0035 #define SIGXCPU     24
0036 #define SIGXFSZ     25
0037 #define SIGVTALRM   26
0038 #define SIGPROF     27
0039 #define SIGWINCH    28
0040 #define SIGIO       29
0041 #define SIGPOLL     SIGIO
0042 /*
0043 #define SIGLOST     29
0044 */
0045 #define SIGPWR      30
0046 #define SIGSYS      31
0047 #define SIGUNUSED   31
0048 
0049 /* These should not be considered constants from userland.  */
0050 #define SIGRTMIN    32
0051 #ifndef SIGRTMAX
0052 #define SIGRTMAX    _NSIG
0053 #endif
0054 
0055 #if !defined MINSIGSTKSZ || !defined SIGSTKSZ
0056 #define MINSIGSTKSZ 2048
0057 #define SIGSTKSZ    8192
0058 #endif
0059 
0060 #ifndef __ASSEMBLY__
0061 typedef struct {
0062     unsigned long sig[_NSIG_WORDS];
0063 } sigset_t;
0064 
0065 /* not actually used, but required for linux/syscalls.h */
0066 typedef unsigned long old_sigset_t;
0067 
0068 #include <asm-generic/signal-defs.h>
0069 
0070 #ifdef SA_RESTORER
0071 #define __ARCH_HAS_SA_RESTORER
0072 #endif
0073 
0074 #ifndef __KERNEL__
0075 struct sigaction {
0076     __sighandler_t sa_handler;
0077     unsigned long sa_flags;
0078 #ifdef SA_RESTORER
0079     __sigrestore_t sa_restorer;
0080 #endif
0081     sigset_t sa_mask;       /* mask last for extensibility */
0082 };
0083 #endif
0084 
0085 typedef struct sigaltstack {
0086     void __user *ss_sp;
0087     int ss_flags;
0088     __kernel_size_t ss_size;
0089 } stack_t;
0090 
0091 #endif /* __ASSEMBLY__ */
0092 
0093 #endif /* _UAPI__ASM_GENERIC_SIGNAL_H */