From 99e15199ef24d4f262683b47a529f1b239c4dcd9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 5 Aug 2022 15:54:32 +0200 Subject: add _syscall_getsize --- src/user/lib/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/user/lib') diff --git a/src/user/lib/syscall.c b/src/user/lib/syscall.c index ffda454..e22f718 100644 --- a/src/user/lib/syscall.c +++ b/src/user/lib/syscall.c @@ -38,6 +38,10 @@ long _syscall_write(handle_t h, const void __user *buf, size_t len, long offset, return _syscall(_SYSCALL_WRITE, (long)h, (long)buf, (long)len, offset, (long)flags); } +long _syscall_getsize(handle_t h) { + return _syscall(_SYSCALL_GETSIZE, (long)h, 0, 0, 0, 0); +} + long _syscall_close(handle_t h) { return _syscall(_SYSCALL_CLOSE, (long)h, 0, 0, 0, 0); } -- cgit v1.2.3