From 651bb81717366b381e59b94954fbcd094636bb44 Mon Sep 17 00:00:00 2001 From: Alexander Langer Date: Wed, 31 Dec 1997 02:35:29 +0000 Subject: [PATCH] caddr_t --> void * --- sys/vm/vm_extern.h | 4 ++-- sys/vm/vm_mmap.c | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h index 75ff3d1dc087..f8780d44a3c2 100644 --- a/sys/vm/vm_extern.h +++ b/sys/vm/vm_extern.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_extern.h 8.2 (Berkeley) 1/12/94 - * $Id: vm_extern.h,v 1.34 1997/04/13 01:48:33 dyson Exp $ + * $Id: vm_extern.h,v 1.35 1997/12/06 02:23:27 dyson Exp $ */ #ifndef _VM_EXTERN_H_ @@ -82,7 +82,7 @@ void vm_fault_unwire __P((vm_map_t, vm_offset_t, vm_offset_t)); int vm_fault_wire __P((vm_map_t, vm_offset_t, vm_offset_t)); int vm_fault_user_wire __P((vm_map_t, vm_offset_t, vm_offset_t)); void vm_fork __P((struct proc *, struct proc *, int)); -int vm_mmap __P((vm_map_t, vm_offset_t *, vm_size_t, vm_prot_t, vm_prot_t, int, caddr_t, vm_ooffset_t)); +int vm_mmap __P((vm_map_t, vm_offset_t *, vm_size_t, vm_prot_t, vm_prot_t, int, void *, vm_ooffset_t)); vm_offset_t vm_page_alloc_contig __P((vm_offset_t, vm_offset_t, vm_offset_t, vm_offset_t)); void vm_set_page_size __P((void)); void vmmeter __P((void)); diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 459a20c978de..3b5b2bd8419f 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -38,7 +38,7 @@ * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$ * * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 - * $Id: vm_mmap.c,v 1.69 1997/11/06 19:29:54 phk Exp $ + * $Id: vm_mmap.c,v 1.70 1997/12/16 17:40:42 eivind Exp $ */ /* @@ -139,7 +139,7 @@ ogetpagesize(p, uap) */ #ifndef _SYS_SYSPROTO_H_ struct mmap_args { - caddr_t addr; + void *addr; size_t len; int prot; int flags; @@ -160,7 +160,7 @@ mmap(p, uap) vm_offset_t addr; vm_size_t size, pageoff; vm_prot_t prot, maxprot; - caddr_t handle; + void *handle; int flags, error; off_t pos; @@ -272,7 +272,7 @@ mmap(p, uap) return (EACCES); } else maxprot |= VM_PROT_WRITE; - handle = (caddr_t) vp; + handle = (void *)vp; } } error = vm_mmap(&p->p_vmspace->vm_map, &addr, size, prot, maxprot, @@ -341,7 +341,7 @@ ommap(p, uap) #ifndef _SYS_SYSPROTO_H_ struct msync_args { - caddr_t addr; + void *addr; int len; int flags; }; @@ -414,7 +414,7 @@ msync(p, uap) #ifndef _SYS_SYSPROTO_H_ struct munmap_args { - caddr_t addr; + void *addr; size_t len; }; #endif @@ -474,7 +474,7 @@ munmapfd(p, fd) #ifndef _SYS_SYSPROTO_H_ struct mprotect_args { - caddr_t addr; + const void *addr; size_t len; int prot; }; @@ -515,7 +515,7 @@ mprotect(p, uap) #ifndef _SYS_SYSPROTO_H_ struct minherit_args { - caddr_t addr; + void *addr; size_t len; int inherit; }; @@ -552,7 +552,7 @@ minherit(p, uap) #ifndef _SYS_SYSPROTO_H_ struct madvise_args { - caddr_t addr; + void *addr; size_t len; int behav; }; @@ -598,7 +598,7 @@ madvise(p, uap) #ifndef _SYS_SYSPROTO_H_ struct mincore_args { - caddr_t addr; + const void *addr; size_t len; char *vec; }; @@ -767,7 +767,7 @@ mincore(p, uap) #ifndef _SYS_SYSPROTO_H_ struct mlock_args { - caddr_t addr; + const void *addr; size_t len; }; #endif @@ -839,7 +839,7 @@ munlockall(p, uap) #ifndef _SYS_SYSPROTO_H_ struct munlock_args { - caddr_t addr; + const void *addr; size_t len; }; #endif @@ -882,7 +882,7 @@ munlock(p, uap) int vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t maxprot, int flags, - caddr_t handle, /* XXX should be vp */ + void *handle, vm_ooffset_t foff) { boolean_t fitit; @@ -934,7 +934,7 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vp = (struct vnode *) handle; if (vp->v_type == VCHR) { type = OBJT_DEVICE; - handle = (caddr_t) vp->v_rdev; + handle = (void *)vp->v_rdev; } else { struct vattr vat; int error;