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

Function syscall_unlinkat

source/kernel/syscall.cpp:1511–1517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511static U32 syscall_unlinkat(CPU* cpu, U32 eipCount) {
1512 BString path = cpu->memory->readString(ARG2);
1513 SYS_LOG1(SYSCALL_FILE, cpu, "unlinkat: dirfd=%d path=%s flags=%x", ARG1, path.c_str(), ARG3);
1514 U32 result = cpu->thread->process->unlinkat(ARG1, path, ARG3);
1515 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
1516 return result;
1517}
1518
1519static U32 syscall_symlinkat(CPU* cpu, U32 eipCount) {
1520 BString oldpath = cpu->memory->readString(ARG1);

Callers

nothing calls this directly

Calls 3

unlinkatMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected