From: Ben Pfaff Date: Sat, 23 Oct 2004 02:49:20 +0000 (+0000) Subject: Add filesize() stub. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=590f912cc145f43329a8e6db8f97db3a836a1755 Add filesize() stub. --- diff --git a/src/lib/user/syscall.c b/src/lib/user/syscall.c index 791f31c..89e0185 100644 --- 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) {