diff options
Diffstat (limited to 'include/asm-ppc64/signal.h')
-rw-r--r-- | include/asm-ppc64/signal.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/asm-ppc64/signal.h b/include/asm-ppc64/signal.h index a2d7bbb4befd..432df7dd355d 100644 --- a/include/asm-ppc64/signal.h +++ b/include/asm-ppc64/signal.h | |||
@@ -97,33 +97,19 @@ typedef struct { | |||
97 | #define MINSIGSTKSZ 2048 | 97 | #define MINSIGSTKSZ 2048 |
98 | #define SIGSTKSZ 8192 | 98 | #define SIGSTKSZ 8192 |
99 | 99 | ||
100 | #define SIG_BLOCK 0 /* for blocking signals */ | 100 | #include <asm-generic/signal.h> |
101 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | ||
102 | #define SIG_SETMASK 2 /* for setting the signal mask */ | ||
103 | |||
104 | /* Type of a signal handler. */ | ||
105 | typedef void __sigfunction(int); | ||
106 | typedef __sigfunction __user * __sighandler_t; | ||
107 | |||
108 | /* Type of the restorer function */ | ||
109 | typedef void __sigrestorer(void); | ||
110 | typedef __sigrestorer __user * __sigrestorer_t; | ||
111 | |||
112 | #define SIG_DFL ((__sighandler_t)0) /* default signal handling */ | ||
113 | #define SIG_IGN ((__sighandler_t)1) /* ignore signal */ | ||
114 | #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ | ||
115 | 101 | ||
116 | struct old_sigaction { | 102 | struct old_sigaction { |
117 | __sighandler_t sa_handler; | 103 | __sighandler_t sa_handler; |
118 | old_sigset_t sa_mask; | 104 | old_sigset_t sa_mask; |
119 | unsigned long sa_flags; | 105 | unsigned long sa_flags; |
120 | __sigrestorer_t sa_restorer; | 106 | __sigrestore_t sa_restorer; |
121 | }; | 107 | }; |
122 | 108 | ||
123 | struct sigaction { | 109 | struct sigaction { |
124 | __sighandler_t sa_handler; | 110 | __sighandler_t sa_handler; |
125 | unsigned long sa_flags; | 111 | unsigned long sa_flags; |
126 | __sigrestorer_t sa_restorer; | 112 | __sigrestore_t sa_restorer; |
127 | sigset_t sa_mask; /* mask last for extensibility */ | 113 | sigset_t sa_mask; /* mask last for extensibility */ |
128 | }; | 114 | }; |
129 | 115 | ||