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

Function syscall_mmap2

source/kernel/syscall.cpp:970–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970static U32 syscall_mmap2(CPU* cpu, U32 eipCount) {
971 SYS_LOG1(SYSCALL_MEMORY, cpu, "mmap2: address=%.8X len=0x%X(%d) prot=%X flags=%X fd=%d offset=%d", ARG1, ARG2, ARG2, ARG3, ARG4, ARG5, ARG6);
972 U32 result = cpu->memory->mmap(cpu->thread, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6*4096l);
973 SYS_LOG(SYSCALL_MEMORY, cpu, " result=%d(0x%X)\n", result, result);
974 return result;
975}
976
977static U32 syscall_ftruncate64(CPU* cpu, U32 eipCount) {
978 U64 len = ARG2 | ((U64)ARG3 << 32);

Callers

nothing calls this directly

Calls 1

mmapMethod · 0.80

Tested by

no test coverage detected