patch-2.1.132 linux/include/asm-arm/signal.h
Next file: linux/include/asm-arm/socket.h
Previous file: linux/include/asm-arm/proc-armv/uaccess.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Thu Dec 17 09:05:43 1998
- Orig file:
v2.1.131/linux/include/asm-arm/signal.h
- Orig date:
Wed Sep 9 14:51:12 1998
diff -u --recursive --new-file v2.1.131/linux/include/asm-arm/signal.h linux/include/asm-arm/signal.h
@@ -132,6 +132,7 @@
#define SIG_IGN ((__sighandler_t)1) /* ignore signal */
#define SIG_ERR ((__sighandler_t)-1) /* error return from signal */
+#ifdef __KERNEL__
struct old_sigaction {
__sighandler_t sa_handler;
old_sigset_t sa_mask;
@@ -149,6 +150,24 @@
struct k_sigaction {
struct sigaction sa;
};
+
+#else
+/* Here we must cater to libcs that poke about in kernel headers. */
+
+struct sigaction {
+ union {
+ __sighandler_t _sa_handler;
+ void (*_sa_sigaction)(int, struct siginfo *, void *);
+ } _u;
+ sigset_t sa_mask;
+ unsigned long sa_flags;
+ void (*sa_restorer)(void);
+};
+
+#define sa_handler _u._sa_handler
+#define sa_sigaction _u._sa_sigaction
+
+#endif /* __KERNEL__ */
typedef struct sigaltstack {
void *ss_sp;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov