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

Function syscall_bind

source/kernel/syscall.cpp:1711–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1709}
1710
1711U32 syscall_bind(CPU* cpu, U32 eipCount) {
1712 SYS_LOG1(SYSCALL_SOCKET, cpu, "bind socket=%d address=%X(%s) len=%d", ARG1, ARG2, socketAddressName(cpu->memory, ARG2, ARG3).c_str(), ARG3);
1713 U32 result = kbind(cpu->thread, ARG1, ARG2, ARG3);
1714 SYS_LOG(SYSCALL_SOCKET, cpu, " result=%d(0x%X)\n", result, result);
1715 return result;
1716}
1717
1718U32 syscall_connect(CPU* cpu, U32 eipCount) {
1719 SYS_LOG1(SYSCALL_SOCKET, cpu, "connect socket=%d address=%X(%s) len=%d", ARG1, ARG2, socketAddressName(cpu->memory, ARG2, ARG3).c_str(), ARG3);

Callers

nothing calls this directly

Calls 3

socketAddressNameFunction · 0.85
kbindFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected