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=9409141f5d1d2636238374bf402d10ca1eaeca50;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