diff options
Diffstat (limited to 'src/user/lib/syscall.c')
-rw-r--r-- | src/user/lib/syscall.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |