MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sockaddr_tomusl

Function sockaddr_tomusl

components/lwp/lwp_syscall.c:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 }
313
314 static void sockaddr_tomusl(const struct sockaddr *lwip, struct musl_sockaddr *std)
315 {
316 if (std && lwip)
317 {
318 std->sa_family = (uint16_t) lwip->sa_family;
319 memcpy(std->sa_data, lwip->sa_data, sizeof(std->sa_data));
320 }
321 }
322#endif
323
324static void _crt_thread_entry(void *parameter)

Callers 5

sys_acceptFunction · 0.85
sys_getpeernameFunction · 0.85
sys_getsocknameFunction · 0.85
sys_recvfromFunction · 0.85
sys_getaddrinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected