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_extern.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_extern.h')
-rw-r--r-- | sys/uvm/uvm_extern.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h index 03f727e2047..742d3e63732 100644 --- a/sys/uvm/uvm_extern.h +++ b/sys/uvm/uvm_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_extern.h,v 1.8 2001/01/29 02:07:43 niklas Exp $ */ +/* $OpenBSD: uvm_extern.h,v 1.9 2001/03/09 05:34:38 smart Exp $ */ /* $NetBSD: uvm_extern.h,v 1.27 1999/05/26 19:16:36 thorpej Exp $ */ /* @@ -243,6 +243,7 @@ struct uvmexp { struct uvm_object *mb_object; }; +#ifdef _KERNEL extern struct uvmexp uvmexp; @@ -254,6 +255,8 @@ extern struct uvmexp uvmexp; #define uvm_km_zalloc(MAP,SIZE) uvm_km_alloc1(MAP,SIZE,TRUE) #define uvm_km_alloc(MAP,SIZE) uvm_km_alloc1(MAP,SIZE,FALSE) +#endif /* _KERNEL */ + /* * typedefs */ @@ -261,6 +264,8 @@ extern struct uvmexp uvmexp; typedef unsigned int uvm_flag_t; typedef int vm_fault_t; +#ifdef _KERNEL + /* uvm_aobj.c */ struct uvm_object *uao_create __P((vsize_t, int)); void uao_detach __P((struct uvm_object *)); @@ -389,5 +394,6 @@ void uvm_vnp_terminate __P((struct vnode *)); boolean_t uvm_vnp_uncache __P((struct vnode *)); struct uvm_object *uvn_attach __P((void *, vm_prot_t)); -#endif /* _UVM_UVM_EXTERN_H_ */ +#endif /* _KERNEL */ +#endif /* _UVM_UVM_EXTERN_H_ */ |