UAPI: (Scripted) Disintegrate arch/alpha/include/asm
[linux-2.6.git] / arch / alpha / include / uapi / asm / signal.h
blob965bbfa59c658f7d0d6c6e7a4c116e05174d4bc5
1 #ifndef _UAPI_ASMAXP_SIGNAL_H
2 #define _UAPI_ASMAXP_SIGNAL_H
4 #include <linux/types.h>
6 /* Avoid too many header ordering problems. */
7 struct siginfo;
9 #ifndef __KERNEL__
10 /* Here we must cater to libcs that poke about in kernel headers. */
12 #define NSIG 32
13 typedef unsigned long sigset_t;
15 #endif /* __KERNEL__ */
19 * Linux/AXP has different signal numbers that Linux/i386: I'm trying
20 * to make it OSF/1 binary compatible, at least for normal binaries.
22 #define SIGHUP 1
23 #define SIGINT 2
24 #define SIGQUIT 3
25 #define SIGILL 4
26 #define SIGTRAP 5
27 #define SIGABRT 6
28 #define SIGEMT 7
29 #define SIGFPE 8
30 #define SIGKILL 9
31 #define SIGBUS 10
32 #define SIGSEGV 11
33 #define SIGSYS 12
34 #define SIGPIPE 13
35 #define SIGALRM 14
36 #define SIGTERM 15
37 #define SIGURG 16
38 #define SIGSTOP 17
39 #define SIGTSTP 18
40 #define SIGCONT 19
41 #define SIGCHLD 20
42 #define SIGTTIN 21
43 #define SIGTTOU 22
44 #define SIGIO 23
45 #define SIGXCPU 24
46 #define SIGXFSZ 25
47 #define SIGVTALRM 26
48 #define SIGPROF 27
49 #define SIGWINCH 28
50 #define SIGINFO 29
51 #define SIGUSR1 30
52 #define SIGUSR2 31
54 #define SIGPOLL SIGIO
55 #define SIGPWR SIGINFO
56 #define SIGIOT SIGABRT
58 /* These should not be considered constants from userland. */
59 #define SIGRTMIN 32
60 #define SIGRTMAX _NSIG
63 * SA_FLAGS values:
65 * SA_ONSTACK indicates that a registered stack_t will be used.
66 * SA_RESTART flag to get restarting signals (which were the default long ago)
67 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
68 * SA_RESETHAND clears the handler when the signal is delivered.
69 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
70 * SA_NODEFER prevents the current signal from being masked in the handler.
72 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
73 * Unix names RESETHAND and NODEFER respectively.
76 #define SA_ONSTACK 0x00000001
77 #define SA_RESTART 0x00000002
78 #define SA_NOCLDSTOP 0x00000004
79 #define SA_NODEFER 0x00000008
80 #define SA_RESETHAND 0x00000010
81 #define SA_NOCLDWAIT 0x00000020
82 #define SA_SIGINFO 0x00000040
84 #define SA_ONESHOT SA_RESETHAND
85 #define SA_NOMASK SA_NODEFER
87 /*
88 * sigaltstack controls
90 #define SS_ONSTACK 1
91 #define SS_DISABLE 2
93 #define MINSIGSTKSZ 4096
94 #define SIGSTKSZ 16384
96 #define SIG_BLOCK 1 /* for blocking signals */
97 #define SIG_UNBLOCK 2 /* for unblocking signals */
98 #define SIG_SETMASK 3 /* for setting the signal mask */
100 #include <asm-generic/signal-defs.h>
102 #ifndef __KERNEL__
103 /* Here we must cater to libcs that poke about in kernel headers. */
105 struct sigaction {
106 union {
107 __sighandler_t _sa_handler;
108 void (*_sa_sigaction)(int, struct siginfo *, void *);
109 } _u;
110 sigset_t sa_mask;
111 int sa_flags;
114 #define sa_handler _u._sa_handler
115 #define sa_sigaction _u._sa_sigaction
117 #endif /* __KERNEL__ */
119 typedef struct sigaltstack {
120 void __user *ss_sp;
121 int ss_flags;
122 size_t ss_size;
123 } stack_t;
125 /* sigstack(2) is deprecated, and will be withdrawn in a future version
126 of the X/Open CAE Specification. Use sigaltstack instead. It is only
127 implemented here for OSF/1 compatibility. */
129 struct sigstack {
130 void __user *ss_sp;
131 int ss_onstack;
135 #endif /* _UAPI_ASMAXP_SIGNAL_H */