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

Function err_to_errno

components/net/lwip/lwip-2.1.2/src/api/err.c:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68int
69err_to_errno(err_t err)
70{
71 if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
72 return EIO;
73 }
74 return err_to_errno_table[-err];
75}
76#endif /* !NO_SYS */
77
78#ifdef LWIP_DEBUG

Callers 15

lwip_acceptFunction · 0.70
lwip_bindFunction · 0.70
lwip_closeFunction · 0.70
lwip_connectFunction · 0.70
lwip_listenFunction · 0.70
lwip_recv_tcpFunction · 0.70
lwip_recvfromFunction · 0.70
lwip_recvmsgFunction · 0.70
lwip_sendFunction · 0.70
lwip_sendmsgFunction · 0.70
lwip_sendtoFunction · 0.70
lwip_shutdownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected