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

Function syscall_chdir

source/kernel/syscall.cpp:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static U32 syscall_chdir(CPU* cpu, U32 eipCount) {
183 BString path = cpu->memory->readString(ARG1);
184
185 SYS_LOG1(SYSCALL_PROCESS, cpu, "chdir: path=%X(%s)", ARG1, path.c_str());
186 U32 result = cpu->thread->process->chdir(path);
187 SYS_LOG(SYSCALL_PROCESS, cpu, " result=%d(0x%X)\n", result, result);
188 return result;
189}
190
191static U32 syscall_time(CPU* cpu, U32 eipCount) {
192 U32 result = (U32)(KSystem::getSystemTimeAsMicroSeconds() / 1000000l);

Callers

nothing calls this directly

Calls 3

chdirMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected