| 197 | } |
| 198 | |
| 199 | static 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 | |
| 208 | static U32 syscall_lseek(CPU* cpu, U32 eipCount) { |
| 209 | SYS_LOG1(SYSCALL_FILE, cpu, "lseek: fildes=%d offset=%d whence=%d", ARG1, ARG2, ARG3); |
nothing calls this directly
no test coverage detected