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

Function syscall_access

source/kernel/syscall.cpp:255–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static U32 syscall_access(CPU* cpu, U32 eipCount) {
256 BString fileName = cpu->memory->readString(ARG1);
257
258 SYS_LOG1(SYSCALL_FILE, cpu, "access: filename=%s flags=0x%X", fileName.c_str(), ARG2);
259 U32 result = cpu->thread->process->access(fileName, ARG2);
260 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
261 return result;
262}
263
264static U32 syscall_sync(CPU* cpu, U32 eipCount) {
265 SYS_LOG1_NO_FMT(SYSCALL_FILE, cpu, "sync:");

Callers

nothing calls this directly

Calls 3

accessMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected