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

Function syscall_mkdir

source/kernel/syscall.cpp:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288static U32 syscall_mkdir(CPU* cpu, U32 eipCount) {
289 BString path = cpu->memory->readString(ARG1);
290
291 SYS_LOG1(SYSCALL_FILE, cpu, "mkdir: path=%X (%s) mode=%X", ARG1, path.c_str(), ARG2);
292 U32 result = cpu->thread->process->mkdir(path);
293 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
294 return result;
295}
296
297static U32 syscall_rmdir(CPU* cpu, U32 eipCount) {
298 BString path = cpu->memory->readString(ARG1);

Callers

nothing calls this directly

Calls 3

mkdirMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected