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

Function syscall_accept4

source/kernel/syscall.cpp:1732–1737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1730}
1731
1732U32 syscall_accept4(CPU* cpu, U32 eipCount) {
1733 SYS_LOG1(SYSCALL_SOCKET, cpu, "accept4 socket=%d address=%X(%s) len=%d flags=%X", ARG1, ARG2, socketAddressName(cpu->memory, ARG2, ARG3).c_str(), ARG3, ARG4);
1734 U32 result = kaccept(cpu->thread, ARG1, ARG2, ARG3, ARG4);
1735 SYS_LOG(SYSCALL_SOCKET, cpu, " result=%d(0x%X)\n", result, result);
1736 return result;
1737}
1738
1739U32 syscall_getsockopt(CPU* cpu, U32 eipCount) {
1740 SYS_LOG1(SYSCALL_SOCKET, cpu, "getsockopt socket=%d level=%d name=%d value=%d, len=%d", ARG1, ARG2, ARG3, ARG4, ARG5);

Callers

nothing calls this directly

Calls 3

socketAddressNameFunction · 0.85
kacceptFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected