diff options
author | smart <smart@cvs.openbsd.org> | 2001-03-09 05:34:39 +0000 |
---|---|---|
committer | smart <smart@cvs.openbsd.org> | 2001-03-09 05:34:39 +0000 |
commit | 70dc353ae31df19a481d5ec5cd2f83804fa0f7ea (patch) | |
tree | 9fec01a53da69b20fc8b27bbe2ee8be61c958fa9 /sys/uvm/uvm_stat.h | |
parent | d6685a5c97ce71b163917bbafb3d6834a374aae4 (diff) |
Protect protypes, certain macros, and inlines from userland. Checked userland
with a 'make build'. From NetBSD. art@ ok
Diffstat (limited to 'sys/uvm/uvm_stat.h')
-rw-r--r-- | sys/uvm/uvm_stat.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/uvm/uvm_stat.h b/sys/uvm/uvm_stat.h index d2abc3efef6..6706895d0c8 100644 --- a/sys/uvm/uvm_stat.h +++ b/sys/uvm/uvm_stat.h @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_stat.h,v 1.6 2001/01/29 02:07:49 niklas Exp $ */ -/* $NetBSD: uvm_stat.h,v 1.14 1999/03/25 18:48:56 mrg Exp $ */ +/* $OpenBSD: uvm_stat.h,v 1.7 2001/03/09 05:34:38 smart Exp $ */ +/* $NetBSD: uvm_stat.h,v 1.15 1999/06/21 17:25:12 thorpej Exp $ */ /* * @@ -60,6 +60,8 @@ struct uvm_cnt { void *p; /* private data */ }; +#ifdef _KERNEL + extern struct uvm_cnt *uvm_cnt_head; /* @@ -89,6 +91,7 @@ do { \ #define UVMCNT_INCR(C) UVMCNT_ADD(C,1) #define UVMCNT_DECR(C) UVMCNT_ADD(C,-1) +#endif /* _KERNEL */ /* * history/tracing @@ -129,6 +132,8 @@ LIST_HEAD(uvm_history_head, uvm_history); #define UVMHIST_MAPHIST 0x00000001 /* maphist */ #define UVMHIST_PDHIST 0x00000002 /* pdhist */ +#ifdef _KERNEL + /* * macros to use the history/tracing code. note that UVMHIST_LOG * must take 4 arguments (even if they are ignored by the format). @@ -239,4 +244,6 @@ uvmhist_print(e) } #endif /* UVMHIST */ +#endif /* _KERNEL */ + #endif /* _UVM_UVM_STAT_H_ */ |