.. | .. |
---|
35 | 35 | #define SIGURG 29 |
---|
36 | 36 | #define SIGXFSZ 30 |
---|
37 | 37 | #define SIGUNUSED 31 |
---|
38 | | -#define SIGSYS 31 /* Linux doesn't use this */ |
---|
| 38 | +#define SIGSYS 31 |
---|
39 | 39 | |
---|
40 | 40 | /* These should not be considered constants from userland. */ |
---|
41 | 41 | #define SIGRTMIN 32 |
---|
42 | | -#define SIGRTMAX _NSIG /* it's 44 under HP/UX */ |
---|
| 42 | +#define SIGRTMAX _NSIG |
---|
43 | 43 | |
---|
44 | | -/* |
---|
45 | | - * SA_FLAGS values: |
---|
46 | | - * |
---|
47 | | - * SA_ONSTACK indicates that a registered stack_t will be used. |
---|
48 | | - * SA_RESTART flag to get restarting signals (which were the default long ago) |
---|
49 | | - * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. |
---|
50 | | - * SA_RESETHAND clears the handler when the signal is delivered. |
---|
51 | | - * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. |
---|
52 | | - * SA_NODEFER prevents the current signal from being masked in the handler. |
---|
53 | | - * |
---|
54 | | - * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single |
---|
55 | | - * Unix names RESETHAND and NODEFER respectively. |
---|
56 | | - */ |
---|
57 | 44 | #define SA_ONSTACK 0x00000001 |
---|
58 | 45 | #define SA_RESETHAND 0x00000004 |
---|
59 | 46 | #define SA_NOCLDSTOP 0x00000008 |
---|
.. | .. |
---|
61 | 48 | #define SA_NODEFER 0x00000020 |
---|
62 | 49 | #define SA_RESTART 0x00000040 |
---|
63 | 50 | #define SA_NOCLDWAIT 0x00000080 |
---|
64 | | -#define _SA_SIGGFAULT 0x00000100 /* HPUX */ |
---|
65 | 51 | |
---|
66 | 52 | #define SA_NOMASK SA_NODEFER |
---|
67 | 53 | #define SA_ONESHOT SA_RESETHAND |
---|
.. | .. |
---|
69 | 55 | #define MINSIGSTKSZ 2048 |
---|
70 | 56 | #define SIGSTKSZ 8192 |
---|
71 | 57 | |
---|
72 | | - |
---|
73 | | -#define SIG_BLOCK 0 /* for blocking signals */ |
---|
74 | | -#define SIG_UNBLOCK 1 /* for unblocking signals */ |
---|
75 | | -#define SIG_SETMASK 2 /* for setting the signal mask */ |
---|
76 | | - |
---|
77 | | -#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ |
---|
78 | | -#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ |
---|
79 | | -#define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ |
---|
| 58 | +#include <asm-generic/signal-defs.h> |
---|
80 | 59 | |
---|
81 | 60 | # ifndef __ASSEMBLY__ |
---|
82 | 61 | |
---|
.. | .. |
---|
84 | 63 | |
---|
85 | 64 | /* Avoid too many header ordering problems. */ |
---|
86 | 65 | struct siginfo; |
---|
87 | | - |
---|
88 | | -/* Type of a signal handler. */ |
---|
89 | | -#if defined(__LP64__) |
---|
90 | | -/* function pointers on 64-bit parisc are pointers to little structs and the |
---|
91 | | - * compiler doesn't support code which changes or tests the address of |
---|
92 | | - * the function in the little struct. This is really ugly -PB |
---|
93 | | - */ |
---|
94 | | -typedef char __user *__sighandler_t; |
---|
95 | | -#else |
---|
96 | | -typedef void __signalfn_t(int); |
---|
97 | | -typedef __signalfn_t __user *__sighandler_t; |
---|
98 | | -#endif |
---|
99 | 66 | |
---|
100 | 67 | typedef struct sigaltstack { |
---|
101 | 68 | void __user *ss_sp; |
---|