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

Function syscall_write

source/kernel/syscall.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static U32 syscall_write(CPU* cpu, U32 eipCount) {
108 SYS_LOG1(SYSCALL_WRITE, cpu, "write: fd=%d buf=0x%X len=%d", ARG1, ARG2, ARG3);
109 U32 result = cpu->thread->process->write(cpu->thread, (FD)ARG1, ARG2, ARG3);
110 SYS_LOG(SYSCALL_WRITE, cpu, " result=%d(0x%X)\n", result, result);
111 return result;
112}
113
114static U32 syscall_open(CPU* cpu, U32 eipCount) {
115 BString name = cpu->memory->readString(ARG1);

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected