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