summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_mmap.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-09 03:32:24 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-09 03:32:24 +0000
commitfd127db91b4066b807938ac60a8212295d0c06f5 (patch)
tree3c5541194b7ccf990f00ef8bf1df692480e6249e /sys/uvm/uvm_mmap.c
parent6a9115d581e87c74d4086f45d9734a7c4f52fe7b (diff)
minor sync to NetBSD.
Diffstat (limited to 'sys/uvm/uvm_mmap.c')
-rw-r--r--sys/uvm/uvm_mmap.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c
index 22f0ceb9d3f..8e449bec4fa 100644
--- a/sys/uvm/uvm_mmap.c
+++ b/sys/uvm/uvm_mmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_mmap.c,v 1.25 2001/11/07 02:55:50 art Exp $ */
+/* $OpenBSD: uvm_mmap.c,v 1.26 2001/11/09 03:32:23 art Exp $ */
/* $NetBSD: uvm_mmap.c,v 1.45 2000/11/24 23:30:01 soren Exp $ */
/*
@@ -263,26 +263,6 @@ sys_mincore(p, v, retval)
return (error);
}
-#if 0
-/*
- * munmapfd: unmap file descriptor
- *
- * XXX: is this acutally a useful function? could it be useful?
- */
-
-void
-munmapfd(p, fd)
- struct proc *p;
- int fd;
-{
-
- /*
- * XXX should vm_deallocate any regions mapped to this file
- */
- p->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED;
-}
-#endif
-
/*
* sys_mmap: mmap system call.
*
@@ -376,7 +356,9 @@ sys_mmap(p, v, retval)
* not fixed: make sure we skip over the largest possible heap.
* we will refine our guess later (e.g. to account for VAC, etc)
*/
- if (addr < round_page((vaddr_t)p->p_vmspace->vm_daddr+MAXDSIZ))
+
+ if (addr < round_page((vaddr_t)p->p_vmspace->vm_daddr +
+ MAXDSIZ))
addr = round_page((vaddr_t)p->p_vmspace->vm_daddr +
MAXDSIZ);
}