summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-12-18 15:42:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-12-18 15:42:54 +0000
commitc0aa54c9b441f7548fa6ba79a87594b2168fd120 (patch)
treece4f0244876984a28ae20dcac381e003f4fe12e7 /sys/arch/sparc64/include
parentb82cd7c01a322762d9e140071e45089d72905e97 (diff)
Don't include cdefs.h if _LOCORE is defined and hide some more defines
unless __BSD_VISIBLE or _LOCORE are set. OK deraadt@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/signal.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/sparc64/include/signal.h b/sys/arch/sparc64/include/signal.h
index ddab3c9d73e..48a5ebc4595 100644
--- a/sys/arch/sparc64/include/signal.h
+++ b/sys/arch/sparc64/include/signal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.h,v 1.6 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: signal.h,v 1.7 2005/12/18 15:42:53 millert Exp $ */
/* $NetBSD: signal.h,v 1.10 2001/05/09 19:50:49 kleink Exp $ */
/*
@@ -44,15 +44,12 @@
#ifndef _SPARC64_SIGNAL_H_
#define _SPARC64_SIGNAL_H_
+#ifndef _LOCORE
#include <sys/cdefs.h>
-#ifndef _LOCORE
typedef int sig_atomic_t;
-#endif
#if __BSD_VISIBLE
-#ifndef _LOCORE
-
/*
* Information pushed on stack when a signal is delivered.
* This is used by the kernel to restore state following
@@ -74,8 +71,10 @@ struct sigcontext {
long sc_o0; /* %o0 to restore */
int sc_mask; /* signal mask to restore (new style) */
};
+#endif /* __BSD_VISIBLE */
#endif /* _LOCORE */
+#if defined(_LOCORE) || __BSD_VISIBLE
/*
* `Code' arguments to signal handlers. The names, and the funny numbering.
* are defined so as to match up with what SunOS uses; I have no idea why
@@ -88,6 +87,6 @@ struct sigcontext {
#define FPE_FLTUND_TRAP 0xcc /* underflow */
#define FPE_FLTOPERR_TRAP 0xd0 /* operand error */
#define FPE_FLTOVF_TRAP 0xd4 /* overflow */
+#endif
-#endif /* __BSD_VISIBLE */
#endif /* !_SPARC64_SIGNAL_H_ */