diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-04-24 21:53:13 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-04-24 21:53:13 +0000 |
commit | 7c0de9a6039bc6cbca0fd91e88e4c1b334df52d7 (patch) | |
tree | eae09ebbce65e9c5a8b1e831523955aaa3847d61 /sys/lib/libkern | |
parent | 767845303816d6a74680f4a7a5f9a70087b57e44 (diff) |
Introduce a new file, machine/internal_types.h, to hold that specific arch
type characteristics.
internal_types.h will contain only settings invisible from standard C, e.g.,
in the __* or _[A-Z]* namespace, and be reused by files like limits.h.
This allows us to shorten machine/limits.h greatly, as all the common defines
are now in sys/limits.h, plus a small stub in internal_types.h.
Tested on all arches as far as I know.
Approved after discussion with art, millert, deraadt, and others.
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r-- | sys/lib/libkern/memset.c | 4 | ||||
-rw-r--r-- | sys/lib/libkern/quad.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libkern/memset.c b/sys/lib/libkern/memset.c index b0a34c1ea62..cc7f9a15568 100644 --- a/sys/lib/libkern/memset.c +++ b/sys/lib/libkern/memset.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memset.c,v 1.2 2000/04/25 15:24:01 mickey Exp $ */ +/* $OpenBSD: memset.c,v 1.3 2002/04/24 21:53:12 espie Exp $ */ /* $NetBSD: memset.c,v 1.6 1998/03/27 05:35:47 cgd Exp $ */ /*- @@ -52,9 +52,9 @@ __RCSID("$NetBSD: memset.c,v 1.6 1998/03/27 05:35:47 cgd Exp $"); #include <string.h> #include <limits.h> #else +#include <sys/limits.h> #include <sys/systm.h> #include <lib/libkern/libkern.h> -#include <machine/limits.h> #endif #define wsize sizeof(u_int) diff --git a/sys/lib/libkern/quad.h b/sys/lib/libkern/quad.h index 5b4dfde04c0..b8ebe038388 100644 --- a/sys/lib/libkern/quad.h +++ b/sys/lib/libkern/quad.h @@ -1,4 +1,4 @@ -/* $OpenBSD: quad.h,v 1.6 2002/03/14 01:27:07 millert Exp $ */ +/* $OpenBSD: quad.h,v 1.7 2002/04/24 21:53:12 espie Exp $ */ /* $NetBSD: quad.h,v 1.7 1996/04/18 02:20:04 cgd Exp $ */ /*- @@ -60,7 +60,7 @@ #if !defined(_KERNEL) && !defined(_STANDALONE) #include <limits.h> #else -#include <machine/limits.h> +#include <sys/limits.h> #endif /* |