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

Function syscall_getcwd

source/kernel/syscall.cpp:943–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943static U32 syscall_getcwd(CPU* cpu, U32 eipCount) {
944 SYS_LOG1(SYSCALL_PROCESS, cpu, "getcwd: buf=%X size=%d (%s)", ARG1, ARG2, cpu->thread->process->currentDirectory.c_str());
945 U32 result = cpu->thread->process->getcwd(ARG1, ARG2);
946 SYS_LOG(SYSCALL_PROCESS, cpu, " result=%d(0x%X)\n", result, result);
947 return result;
948}
949
950static U32 syscall_sigaltstack(CPU* cpu, U32 eipCount) {
951 SYS_LOG1(SYSCALL_SIGNAL, cpu, "sigaltstack ss=%X oss=%X", ARG1, ARG2);

Callers

nothing calls this directly

Calls 2

getcwdMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected