diff options
author | eivind <eivind@FreeBSD.org> | 2002-03-10 21:52:48 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 2002-03-10 21:52:48 +0000 |
commit | 0799ec54b17250c98026f90199f5baedd6b2f059 (patch) | |
tree | 04ac1a4dc72dcc8cc27d9fc6a8db45c2ac58d464 /sys/vm/vm_mmap.c | |
parent | 50558d3ff6041cd51346a332bab715d69e7a1f97 (diff) | |
download | FreeBSD-src-0799ec54b17250c98026f90199f5baedd6b2f059.zip FreeBSD-src-0799ec54b17250c98026f90199f5baedd6b2f059.tar.gz |
- Remove a number of extra newlines that do not belong here according to
style(9)
- Minor space adjustment in cases where we have "( ", " )", if(), return(),
while(), for(), etc.
- Add /* SYMBOL */ after a few #endifs.
Reviewed by: alc
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r-- | sys/vm/vm_mmap.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 27a1ae3..0a75a9d 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -93,7 +93,6 @@ SYSCTL_INT(_vm, OID_AUTO, max_proc_mmap, CTLFLAG_RW, &max_proc_mmap, 0, ""); * if attacked from compromised user account but generous enough such that * multi-threaded processes are not unduly inconvenienced. */ - static void vmmapentry_rsrc_init __P((void *)); SYSINIT(vmmersrc, SI_SUB_KVM_RSRC, SI_ORDER_FIRST, vmmapentry_rsrc_init, NULL) @@ -380,7 +379,6 @@ mmap(td, uap) * we're at securelevel < 1, to allow the XIG X server * to continue to work. */ - if ((flags & MAP_SHARED) != 0 || (vp->v_type == VCHR && disablexworkaround)) { if ((fp->f_flag & FWRITE) != 0) { @@ -517,7 +515,7 @@ msync(td, uap) size += pageoff; size = (vm_size_t) round_page(size); if (addr + size < addr) - return(EINVAL); + return (EINVAL); if ((flags & (MS_ASYNC|MS_INVALIDATE)) == (MS_ASYNC|MS_INVALIDATE)) return (EINVAL); @@ -558,7 +556,7 @@ done2: switch (rv) { case KERN_SUCCESS: - return(0); + return (0); case KERN_INVALID_ADDRESS: return (EINVAL); /* Sun returns ENOMEM? */ case KERN_FAILURE: @@ -594,7 +592,7 @@ munmap(td, uap) size += pageoff; size = (vm_size_t) round_page(size); if (addr + size < addr) - return(EINVAL); + return (EINVAL); if (size == 0) return (0); @@ -672,7 +670,7 @@ mprotect(td, uap) size += pageoff; size = (vm_size_t) round_page(size); if (addr + size < addr) - return(EINVAL); + return (EINVAL); mtx_lock(&Giant); ret = vm_map_protect(&td->td_proc->p_vmspace->vm_map, addr, @@ -716,7 +714,7 @@ minherit(td, uap) size += pageoff; size = (vm_size_t) round_page(size); if (addr + size < addr) - return(EINVAL); + return (EINVAL); mtx_lock(&Giant); ret = vm_map_inherit(&td->td_proc->p_vmspace->vm_map, addr, addr+size, @@ -921,7 +919,7 @@ RestartScan: * the byte vector is zeroed for those skipped entries. */ while ((lastvecindex + 1) < vecindex) { - error = subyte( vec + lastvecindex, 0); + error = subyte(vec + lastvecindex, 0); if (error) { error = EFAULT; goto done2; @@ -932,7 +930,7 @@ RestartScan: /* * Pass the page information to the user */ - error = subyte( vec + vecindex, mincoreinfo); + error = subyte(vec + vecindex, mincoreinfo); if (error) { error = EFAULT; goto done2; @@ -962,7 +960,7 @@ RestartScan: */ vecindex = OFF_TO_IDX(end - first_addr); while ((lastvecindex + 1) < vecindex) { - error = subyte( vec + lastvecindex, 0); + error = subyte(vec + lastvecindex, 0); if (error) { error = EFAULT; goto done2; |