diff options
author | Al Viro <viro@www.linux.org.uk> | 2005-05-04 00:40:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-04 10:33:15 -0400 |
commit | b1ecb4c3a9e33cc8b93ac9cb046b535b72a15f68 (patch) | |
tree | d34b412e61ff720926da836ff989d1c821b5ef1b /include/asm-generic | |
parent | 0555985d046348b39e44ff1da2719d73409d7981 (diff) |
[PATCH] asm/signal.h unification
New file - asm-generic/signal.h. Contains declarations of
__sighandler_t, __sigrestore_t, SIG_DFL, SIG_IGN, SIG_ERR and default
definitions of SIG_BLOCK, SIG_UNBLOCK and SIG_SETMASK.
asm-*/signal.h switched to including it. The only exception is
asm-parisc/signal.h that wants its own declaration of __sighandler_t;
that one is left as-is.
asm-ppc64/signal.h required one more thing - unlike everybody else it
used __sigrestorer_t instead of usual __sigrestore_t. PPC64 switched to
common spelling.
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/signal.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-generic/signal.h b/include/asm-generic/signal.h new file mode 100644 index 000000000000..9418d6e9b8cd --- /dev/null +++ b/include/asm-generic/signal.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef SIG_BLOCK | ||
2 | #define SIG_BLOCK 0 /* for blocking signals */ | ||
3 | #endif | ||
4 | #ifndef SIG_UNBLOCK | ||
5 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | ||
6 | #endif | ||
7 | #ifndef SIG_SETMASK | ||
8 | #define SIG_SETMASK 2 /* for setting the signal mask */ | ||
9 | #endif | ||
10 | |||
11 | #ifndef __ASSEMBLY__ | ||
12 | typedef void __signalfn_t(int); | ||
13 | typedef __signalfn_t __user *__sighandler_t; | ||
14 | |||
15 | typedef void __restorefn_t(void); | ||
16 | typedef __restorefn_t __user *__sigrestore_t; | ||
17 | |||
18 | #define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */ | ||
19 | #define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */ | ||
20 | #define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */ | ||
21 | #endif | ||