patch-2.1.72 linux/include/asm-alpha/signal.h

Next file: linux/include/asm-alpha/socket.h
Previous file: linux/include/asm-alpha/posix_types.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.71/linux/include/asm-alpha/signal.h linux/include/asm-alpha/signal.h
@@ -6,6 +6,7 @@
 /* Avoid too many header ordering problems.  */
 struct siginfo;
 
+#ifdef __KERNEL__
 /* Digital Unix defines 64 signals.  Most things should be clean enough
    to redefine this at will, if care is taken to make libc match.  */
 
@@ -19,6 +20,15 @@
 	unsigned long sig[_NSIG_WORDS];
 } sigset_t;
 
+#else
+/* Here we must cater to libcs that poke about in kernel headers.  */
+
+#define NSIG		32
+typedef unsigned long sigset_t;
+
+#endif /* __KERNEL__ */
+
+
 /*
  * Linux/AXP has different signal numbers that Linux/i386: I'm trying
  * to make it OSF/1 binary compatible, at least for normal binaries.
@@ -114,6 +124,7 @@
 #define SIG_IGN	((__sighandler_t)1)	/* ignore signal */
 #define SIG_ERR	((__sighandler_t)-1)	/* error return from signal */
 
+#ifdef __KERNEL__
 struct osf_sigaction {
 	__sighandler_t	sa_handler;
 	old_sigset_t	sa_mask;
@@ -130,6 +141,15 @@
 	struct sigaction sa;
 	void (*ka_restorer)(void);
 };
+#else
+/* Here we must cater to libcs that poke about in kernel headers.  */
+
+struct sigaction {
+	__sighandler_t	sa_handler;
+	sigset_t	sa_mask;
+	int		sa_flags;
+};
+#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