From: Chris G. Demetriou Date: Tue, 10 Jan 1995 09:44:56 +0000 (-0800) Subject: fix munmapfd's arguments; it takes a struct proc _then_ an int. X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/a3b1f590c825dd994bc10089c804b2b822facf08 fix munmapfd's arguments; it takes a struct proc _then_ an int. SCCS-vsn: sys/vm/vm_mmap.c 8.9 --- diff --git a/usr/src/sys/vm/vm_mmap.c b/usr/src/sys/vm/vm_mmap.c index 4c409b20db..9be0c84c83 100644 --- a/usr/src/sys/vm/vm_mmap.c +++ b/usr/src/sys/vm/vm_mmap.c @@ -11,7 +11,7 @@ * * 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 -munmapfd(fd) +munmapfd(p, fd) + struct proc *p; 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 */ - curproc->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED; + p->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED; } struct mprotect_args {