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

Function syscall_link

source/kernel/syscall.cpp:141–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static U32 syscall_link(CPU* cpu, U32 eipCount) {
142 BString path1 = cpu->memory->readString(ARG1);
143 BString path2 = cpu->memory->readString(ARG2);
144 SYS_LOG1(SYSCALL_FILE, cpu, "link: path1=%X(%s) path2=%X(%s)", ARG1, path1.c_str(), ARG2, path2.c_str());
145 U32 result = cpu->thread->process->link(path1, path2);
146 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
147 return result;
148}
149
150static U32 syscall_unlink(CPU* cpu, U32 eipCount) {
151 BString path = cpu->memory->readString(ARG1);

Callers

nothing calls this directly

Calls 3

linkMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected