summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-03-23 19:13:14 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-03-23 19:13:14 +0000
commit2838c4e779076ae9a9bfb13e330566a2ec2f6979 (patch)
tree63d057542eb7852b5af9bde611db4f63aa38aaca /sys
parent2930b64aae349be86fe61c2410b64683e3196785 (diff)
Moved boolean_t back to vm_param.h; not protected by _KERNEL. It needs to
be available to userland (libc, libkvm, others), but will break software if defined in <sys/types.h>.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/types.h11
-rw-r--r--sys/vm/vm_param.h8
2 files changed, 9 insertions, 10 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 39abed3675d..96842a674bc 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: types.h,v 1.4 1996/03/19 21:10:49 mickey Exp $ */
+/* $OpenBSD: types.h,v 1.5 1996/03/23 19:13:11 tholo Exp $ */
/* $NetBSD: types.h,v 1.24 1995/12/29 01:15:13 jtc Exp $ */
/*-
@@ -59,15 +59,6 @@ typedef unsigned short ushort; /* Sys V compatibility */
typedef unsigned int uint; /* Sys V compatibility */
#endif
-#ifdef _KERNEL
-/*
- * Boolean data type for use only kernel
- */
-typedef int boolean_t;
-#define TRUE 1
-#define FALSE 0
-#endif /* _KERNEL */
-
typedef u_int64_t u_quad_t; /* quads */
typedef int64_t quad_t;
typedef quad_t * qaddr_t;
diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h
index 572281a2c3e..4880723351c 100644
--- a/sys/vm/vm_param.h
+++ b/sys/vm/vm_param.h
@@ -1,3 +1,4 @@
+/* $OpenBSD: vm_param.h,v 1.3 1996/03/23 19:13:13 tholo Exp $ */
/* $NetBSD: vm_param.h,v 1.12 1995/03/26 20:39:16 jtc Exp $ */
/*
@@ -74,6 +75,13 @@
#include <machine/vmparam.h>
/*
+ * This belongs in types.h, but breaks too many existing programs.
+ */
+typedef int boolean_t;
+#define TRUE 1
+#define FALSE 0
+
+/*
* The machine independent pages are refered to as PAGES. A page
* is some number of hardware pages, depending on the target machine.
*/