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

Function syscall_chmod

source/kernel/syscall.cpp:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static U32 syscall_chmod(CPU* cpu, U32 eipCount) {
200 BString path = cpu->memory->readString(ARG1);
201
202 SYS_LOG1(SYSCALL_FILE, cpu, "chmod: path=%X (%s) mode=%o", ARG1, path.c_str(), ARG2);
203 U32 result = cpu->thread->process->chmod(path, ARG2);
204 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
205 return result;
206}
207
208static U32 syscall_lseek(CPU* cpu, U32 eipCount) {
209 SYS_LOG1(SYSCALL_FILE, cpu, "lseek: fildes=%d offset=%d whence=%d", ARG1, ARG2, ARG3);

Callers

nothing calls this directly

Calls 3

chmodMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected