diff options
Diffstat (limited to 'src/libSystem/src/SystemCalls.cc')
| -rw-r--r-- | src/libSystem/src/SystemCalls.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libSystem/src/SystemCalls.cc b/src/libSystem/src/SystemCalls.cc index 0059d55d..07f5241b 100644 --- a/src/libSystem/src/SystemCalls.cc +++ b/src/libSystem/src/SystemCalls.cc @@ -217,3 +217,8 @@ IMPORT_C SInt32 PrintOut(_Input IORef desc, const Char* fmt, ...) { return *ret; } + +IMPORT_C UInt64 PrintSize(IORef ref) { + MUST_PASS(ref); + return *static_cast<UInt64*>(libsys_syscall_arg_2(SYSCALL_HASH("PrintSize"), ref)); +}
\ No newline at end of file |
