diff options
Diffstat (limited to 'include/asm-ppc64/signal.h')
-rw-r--r-- | include/asm-ppc64/signal.h | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/include/asm-ppc64/signal.h b/include/asm-ppc64/signal.h index fe5401adb41b..432df7dd355d 100644 --- a/include/asm-ppc64/signal.h +++ b/include/asm-ppc64/signal.h | |||
@@ -96,47 +96,20 @@ typedef struct { | |||
96 | 96 | ||
97 | #define MINSIGSTKSZ 2048 | 97 | #define MINSIGSTKSZ 2048 |
98 | #define SIGSTKSZ 8192 | 98 | #define SIGSTKSZ 8192 |
99 | #ifdef __KERNEL__ | ||
100 | 99 | ||
101 | /* | 100 | #include <asm-generic/signal.h> |
102 | * These values of sa_flags are used only by the kernel as part of the | ||
103 | * irq handling routines. | ||
104 | * | ||
105 | * SA_INTERRUPT is also used by the irq handling routines. | ||
106 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
107 | */ | ||
108 | #define SA_PROBE SA_ONESHOT | ||
109 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
110 | #define SA_SHIRQ 0x04000000 | ||
111 | #endif | ||
112 | |||
113 | #define SIG_BLOCK 0 /* for blocking signals */ | ||
114 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | ||
115 | #define SIG_SETMASK 2 /* for setting the signal mask */ | ||
116 | |||
117 | /* Type of a signal handler. */ | ||
118 | typedef void __sigfunction(int); | ||
119 | typedef __sigfunction __user * __sighandler_t; | ||
120 | |||
121 | /* Type of the restorer function */ | ||
122 | typedef void __sigrestorer(void); | ||
123 | typedef __sigrestorer __user * __sigrestorer_t; | ||
124 | |||
125 | #define SIG_DFL ((__sighandler_t)0) /* default signal handling */ | ||
126 | #define SIG_IGN ((__sighandler_t)1) /* ignore signal */ | ||
127 | #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ | ||
128 | 101 | ||
129 | struct old_sigaction { | 102 | struct old_sigaction { |
130 | __sighandler_t sa_handler; | 103 | __sighandler_t sa_handler; |
131 | old_sigset_t sa_mask; | 104 | old_sigset_t sa_mask; |
132 | unsigned long sa_flags; | 105 | unsigned long sa_flags; |
133 | __sigrestorer_t sa_restorer; | 106 | __sigrestore_t sa_restorer; |
134 | }; | 107 | }; |
135 | 108 | ||
136 | struct sigaction { | 109 | struct sigaction { |
137 | __sighandler_t sa_handler; | 110 | __sighandler_t sa_handler; |
138 | unsigned long sa_flags; | 111 | unsigned long sa_flags; |
139 | __sigrestorer_t sa_restorer; | 112 | __sigrestore_t sa_restorer; |
140 | sigset_t sa_mask; /* mask last for extensibility */ | 113 | sigset_t sa_mask; /* mask last for extensibility */ |
141 | }; | 114 | }; |
142 | 115 | ||