signal.h
001: #ifndef __ASM_GENERIC_SIGNAL_H
002: #define __ASM_GENERIC_SIGNAL_H
003: 
004: #include <linux/types.h>
005: 
006: #define _NSIG           64
007: #define _NSIG_BPW       __BITS_PER_LONG
008: #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
009: 
010: #define SIGHUP           1
011: #define SIGINT           2
012: #define SIGQUIT          3
013: #define SIGILL           4
014: #define SIGTRAP          5
015: #define SIGABRT          6
016: #define SIGIOT           6
017: #define SIGBUS           7
018: #define SIGFPE           8
019: #define SIGKILL          9
020: #define SIGUSR1         10
021: #define SIGSEGV         11
022: #define SIGUSR2         12
023: #define SIGPIPE         13
024: #define SIGALRM         14
025: #define SIGTERM         15
026: #define SIGSTKFLT       16
027: #define SIGCHLD         17
028: #define SIGCONT         18
029: #define SIGSTOP         19
030: #define SIGTSTP         20
031: #define SIGTTIN         21
032: #define SIGTTOU         22
033: #define SIGURG          23
034: #define SIGXCPU         24
035: #define SIGXFSZ         25
036: #define SIGVTALRM       26
037: #define SIGPROF         27
038: #define SIGWINCH        28
039: #define SIGIO           29
040: #define SIGPOLL         SIGIO
041: 
042: 
043: 
044: #define SIGPWR          30
045: #define SIGSYS          31
046: #define SIGUNUSED       31
047: 
048: 
049: #define SIGRTMIN        32
050: #ifndef SIGRTMAX
051: #define SIGRTMAX        _NSIG
052: #endif
053: 
054: 
055: 
056: 
057: 
058: 
059: 
060: 
061: 
062: 
063: 
064: 
065: 
066: 
067: #define SA_NOCLDSTOP    0x00000001
068: #define SA_NOCLDWAIT    0x00000002
069: #define SA_SIGINFO      0x00000004
070: #define SA_ONSTACK      0x08000000
071: #define SA_RESTART      0x10000000
072: #define SA_NODEFER      0x40000000
073: #define SA_RESETHAND    0x80000000
074: 
075: #define SA_NOMASK       SA_NODEFER
076: #define SA_ONESHOT      SA_RESETHAND
077: 
078: 
079: 
080: 
081: 
082: 
083: 
084: 
085: 
086: #define SS_ONSTACK      1
087: #define SS_DISABLE      2
088: 
089: #define MINSIGSTKSZ     2048
090: #define SIGSTKSZ        8192
091: 
092: #ifndef __ASSEMBLY__
093: typedef struct {
094:         unsigned long sig[_NSIG_WORDS];
095: } sigset_t;
096: 
097: 
098: typedef unsigned long old_sigset_t;
099: 
100: #include <asm-generic/signal-defs.h>
101: 
102: struct sigaction {
103:         __sighandler_t sa_handler;
104:         unsigned long sa_flags;
105: #ifdef SA_RESTORER
106:         __sigrestore_t sa_restorer;
107: #endif
108:         sigset_t sa_mask;               
109: };
110: 
111: struct k_sigaction {
112:         struct sigaction sa;
113: };
114: 
115: typedef struct sigaltstack {
116:         void *ss_sp;
117:         int ss_flags;
118:         size_t ss_size;
119: } stack_t;
120: 
121: #endif 
122: 
123: #endif 
124: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved