signal.h revision 4b29af0a1b8b25b43e4c0cb9bf066c52f3add9bd
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _ASM_X86_SIGNAL_H
13#define _ASM_X86_SIGNAL_H
14
15#ifndef __ASSEMBLY__
16#include <linux/types.h>
17#include <linux/time.h>
18#include <linux/compiler.h>
19
20struct siginfo;
21
22#define NSIG 32
23typedef unsigned long sigset_t;
24
25#endif
26
27#define SIGHUP 1
28#define SIGINT 2
29#define SIGQUIT 3
30#define SIGILL 4
31#define SIGTRAP 5
32#define SIGABRT 6
33#define SIGIOT 6
34#define SIGBUS 7
35#define SIGFPE 8
36#define SIGKILL 9
37#define SIGUSR1 10
38#define SIGSEGV 11
39#define SIGUSR2 12
40#define SIGPIPE 13
41#define SIGALRM 14
42#define SIGTERM 15
43#define SIGSTKFLT 16
44#define SIGCHLD 17
45#define SIGCONT 18
46#define SIGSTOP 19
47#define SIGTSTP 20
48#define SIGTTIN 21
49#define SIGTTOU 22
50#define SIGURG 23
51#define SIGXCPU 24
52#define SIGXFSZ 25
53#define SIGVTALRM 26
54#define SIGPROF 27
55#define SIGWINCH 28
56#define SIGIO 29
57#define SIGPOLL SIGIO
58
59#define SIGPWR 30
60#define SIGSYS 31
61#define SIGUNUSED 31
62
63#define SIGRTMIN 32
64#define SIGRTMAX _NSIG
65
66#define SA_NOCLDSTOP 0x00000001u
67#define SA_NOCLDWAIT 0x00000002u
68#define SA_SIGINFO 0x00000004u
69#define SA_ONSTACK 0x08000000u
70#define SA_RESTART 0x10000000u
71#define SA_NODEFER 0x40000000u
72#define SA_RESETHAND 0x80000000u
73
74#define SA_NOMASK SA_NODEFER
75#define SA_ONESHOT SA_RESETHAND
76
77#define SA_RESTORER 0x04000000
78
79#define SS_ONSTACK 1
80#define SS_DISABLE 2
81
82#define MINSIGSTKSZ 2048
83#define SIGSTKSZ 8192
84
85#include <asm-generic/signal.h>
86
87#ifndef __ASSEMBLY__
88
89#ifdef __i386__
90
91struct sigaction {
92 union {
93 __sighandler_t _sa_handler;
94 void (*_sa_sigaction)(int, struct siginfo *, void *);
95 } _u;
96 sigset_t sa_mask;
97 unsigned long sa_flags;
98 void (*sa_restorer)(void);
99};
100
101#define sa_handler _u._sa_handler
102#define sa_sigaction _u._sa_sigaction
103
104#else
105
106struct sigaction {
107 __sighandler_t sa_handler;
108 unsigned long sa_flags;
109 __sigrestore_t sa_restorer;
110 sigset_t sa_mask;
111};
112
113struct k_sigaction {
114 struct sigaction sa;
115};
116
117#endif
118
119typedef struct sigaltstack {
120 void __user *ss_sp;
121 int ss_flags;
122 size_t ss_size;
123} stack_t;
124
125#endif
126
127#endif
128