Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


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: #define SIGLOST         29
043: */
044: #define SIGPWR          30
045: #define SIGSYS          31
046: #define SIGUNUSED       31
047: 
048: /* These should not be considered constants from userland.  */
049: #define SIGRTMIN        32
050: #ifndef SIGRTMAX
051: #define SIGRTMAX        _NSIG
052: #endif
053: 
054: /*
055:  * SA_FLAGS values:
056:  *
057:  * SA_ONSTACK indicates that a registered stack_t will be used.
058:  * SA_RESTART flag to get restarting signals (which were the default long ago)
059:  * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
060:  * SA_RESETHAND clears the handler when the signal is delivered.
061:  * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
062:  * SA_NODEFER prevents the current signal from being masked in the handler.
063:  *
064:  * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
065:  * Unix names RESETHAND and NODEFER respectively.
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:  * New architectures should not define the obsolete
080:  *      SA_RESTORER     0x04000000
081:  */
082: 
083: /*
084:  * sigaltstack controls
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: /* not actually used, but required for linux/syscalls.h */
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;               /* mask last for extensibility */
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 /* __ASSEMBLY__ */
122: 
123: #endif /* _ASM_GENERIC_SIGNAL_H */
124: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/