Add filesize() stub.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Oct 2004 02:49:20 +0000 (02:49 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Oct 2004 02:49:20 +0000 (02:49 +0000)
src/lib/user/syscall.c

index 791f31c6b1dc34a85a4b0a56a3a1ff848a21dc5d..89e0185f901700cceab59d7709d0f0b389be98d8 100644 (file)
@@ -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)
 {