projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f46f4
)
Update mmap, munmap stubs to match new prototypes.
author
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 24 Mar 2005 06:37:53 +0000
(06:37 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 24 Mar 2005 06:37:53 +0000
(06:37 +0000)
src/lib/user/syscall.c
patch
|
blob
|
history
diff --git
a/src/lib/user/syscall.c
b/src/lib/user/syscall.c
index aaeb109314775c49f626e3bf9b27445a96d93416..b6120fd154227f9301dd029412c015e2156bf10a 100644
(file)
--- 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 syscall
3 (SYS_mmap, fd, addr, length
);
+ return syscall
2 (SYS_mmap, fd, addr
);
}
bool
-munmap (
void *addr, unsigned length
)
+munmap (
mapid_t mapid
)
{
- return syscall
2 (SYS_munmap, addr, length
);
+ return syscall
1 (SYS_munmap, mapid
);
}
bool