From: tholo Date: Sat, 23 Mar 1996 19:13:11 +0000 (+0000) Subject: Moved boolean_t back to vm_param.h; not protected by _KERNEL. It needs to X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e53da61c382f656c840e6a00467405a638c24434;p=openbsd 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 . --- 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 $ */ /* @@ -73,6 +74,13 @@ #include +/* + * 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.