MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / syscall_ftruncate

Function syscall_ftruncate

source/kernel/syscall.cpp:476–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476static U32 syscall_ftruncate(CPU* cpu, U32 eipCount) {
477 SYS_LOG1(SYSCALL_FILE, cpu, "ftruncate: fd=%X len=%d", ARG1, ARG2);
478 U32 result = cpu->thread->process->ftruncate64(ARG1, ARG2);
479 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
480 return result;
481}
482
483static U32 syscall_fchmod(CPU* cpu, U32 eipCount) {
484#ifdef _DEBUG

Callers

nothing calls this directly

Calls 1

ftruncate64Method · 0.80

Tested by

no test coverage detected