fix munmapfd's arguments; it takes a struct proc _then_ an int.
authorChris G. Demetriou <cgd@ucbvax.Berkeley.EDU>
Tue, 10 Jan 1995 09:44:56 +0000 (01:44 -0800)
committerChris G. Demetriou <cgd@ucbvax.Berkeley.EDU>
Tue, 10 Jan 1995 09:44:56 +0000 (01:44 -0800)
SCCS-vsn: sys/vm/vm_mmap.c 8.9

usr/src/sys/vm/vm_mmap.c

index 4c409b2..9be0c84 100644 (file)
@@ -11,7 +11,7 @@
  *
  * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$
  *
  *
  * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$
  *
- *     @(#)vm_mmap.c   8.8 (Berkeley) %G%
+ *     @(#)vm_mmap.c   8.9 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -404,18 +404,19 @@ munmap(p, uap, retval)
 }
 
 void
 }
 
 void
-munmapfd(fd)
+munmapfd(p, fd)
+       struct proc *p;
        int fd;
 {
 #ifdef DEBUG
        if (mmapdebug & MDB_FOLLOW)
        int fd;
 {
 #ifdef DEBUG
        if (mmapdebug & MDB_FOLLOW)
-               printf("munmapfd(%d): fd %d\n", curproc->p_pid, fd);
+               printf("munmapfd(%d): fd %d\n", p->p_pid, fd);
 #endif
 
        /*
         * XXX should vm_deallocate any regions mapped to this file
         */
 #endif
 
        /*
         * XXX should vm_deallocate any regions mapped to this file
         */
-       curproc->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED;
+       p->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED;
 }
 
 struct mprotect_args {
 }
 
 struct mprotect_args {