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

Function syscall_memfd_create

source/kernel/syscall.cpp:1689–1695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1687}
1688
1689static U32 syscall_memfd_create(CPU* cpu, U32 eipCount) {
1690 BString name = cpu->memory->readString(ARG1);
1691 SYS_LOG1(SYSCALL_FILE, cpu, "name=%X(%s) flags=%X", ARG1, name.c_str(), ARG2);
1692 U32 result = cpu->thread->process->memfd_create(name, ARG2);
1693 SYS_LOG(SYSCALL_FILE, cpu, " result=%d(0x%X)\n", result, result);
1694 return result;
1695}
1696
1697U32 syscall_socket(CPU* cpu, U32 eipCount) {
1698 SYS_LOG1(SYSCALL_SOCKET, cpu, "socket domain=%d(%s) type=%d(%s) protocol=%d(%s)", ARG1, ARG1==K_AF_UNIX?"AF_UNIX":(ARG1==K_AF_INET)?"AF_INET":"", (ARG2 & 0xFF), (ARG2 & 0xFF)==K_SOCK_STREAM?"SOCK_STREAM":((ARG2 & 0xFF)==K_SOCK_DGRAM)?"AF_SOCK_DGRAM":"", ARG3, (ARG3 == 0)?"IPPROTO_IP":(ARG3==6)?"IPPROTO_TCP":(ARG3==17)?"IPPROTO_UDP":"");

Callers

nothing calls this directly

Calls 3

memfd_createMethod · 0.80
readStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected