From: Ben Pfaff Date: Thu, 24 Mar 2005 06:37:53 +0000 (+0000) Subject: Update mmap, munmap stubs to match new prototypes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbe0fc5e59b924437dbdb799ad6485d0734477cf;p=pintos-anon Update mmap, munmap stubs to match new prototypes. --- diff --git a/src/lib/user/syscall.c b/src/lib/user/syscall.c index aaeb109..b6120fd 100644 --- a/src/lib/user/syscall.c +++ b/src/lib/user/syscall.c @@ -141,16 +141,16 @@ close (int fd) syscall1 (SYS_close, fd); } -bool -mmap (int fd, void *addr, unsigned length) +mapid_t +mmap (int fd, void *addr) { - return syscall3 (SYS_mmap, fd, addr, length); + return syscall2 (SYS_mmap, fd, addr); } bool -munmap (void *addr, unsigned length) +munmap (mapid_t mapid) { - return syscall2 (SYS_munmap, addr, length); + return syscall1 (SYS_munmap, mapid); } bool