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?a=commitdiff_plain;h=23d963eb33731e809db753f6569132825cbb3821;p=pintos-anon 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) {