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

Function syscall_symlink

source/kernel/syscall.cpp:437–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437static U32 syscall_symlink(CPU* cpu, U32 eipCount) {
438 BString path1 = cpu->memory->readString(ARG1);
439 BString path2 = cpu->memory->readString(ARG2);
440
441 SYS_LOG1(SYSCALL_FILE, cpu, "symlink: path1=%X(%s) path2=%X(%s)", ARG1, path1.c_str(), ARG2, path2.c_str());
442 U32 result = cpu->thread->process->symlink(path1, path2);
443 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
444 return result;
445}
446
447static U32 syscall_readlink(CPU* cpu, U32 eipCount) {
448 BString path = cpu->memory->readString(ARG1);

Callers

nothing calls this directly

Calls 3

symlinkMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected