From 23d963eb33731e809db753f6569132825cbb3821 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 23 Oct 2004 02:49:20 +0000 Subject: [PATCH] Add filesize() stub. --- src/lib/user/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.30.2