projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13f46d6
)
Add filesize() stub.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 23 Oct 2004 02:49:20 +0000
(
02:49
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 23 Oct 2004 02:49:20 +0000
(
02:49
+0000)
src/lib/user/syscall.c
patch
|
blob
|
history
diff --git
a/src/lib/user/syscall.c
b/src/lib/user/syscall.c
index 791f31c6b1dc34a85a4b0a56a3a1ff848a21dc5d..89e0185f901700cceab59d7709d0f0b389be98d8 100644
(file)
--- a/
src/lib/user/syscall.c
+++ b/
src/lib/user/syscall.c
@@
-46,6
+46,12
@@
open (const char *file)
return syscall (SYS_open, file);
}
+int
+filesize (int fd)
+{
+ return syscall (SYS_filesize, fd);
+}
+
int
read (int fd, void *buffer, unsigned size)
{