MCPcopy Create free account
hub / github.com/catboost/catboost / LastSystemError

Function LastSystemError

util/system/error.cpp:23–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int LastSystemError() {
24#if defined(_win_)
25 int ret = GetLastError();
26
27 if (ret) {
28 return ret;
29 }
30
31 ret = WSAGetLastError();
32
33 if (ret) {
34 return ret;
35 }
36 // when descriptors number are over maximum, errno set in this variable
37 ret = *(_errno());
38 return ret;
39
40#else
41 return errno;
42#endif
43}
44
45#if defined(_win_)
46namespace {

Callers 15

CreateSocketMethod · 0.85
SetSockOptMethod · 0.85
GetSockOptMethod · 0.85
CloseImplMethod · 0.85
RecvImplMethod · 0.85
FillRecvBuffersMethod · 0.85
ConnectMethod · 0.85
SendToMethod · 0.85
FlushPacketsMethod · 0.85
ErrorMethod · 0.85
ReadVectorDFunction · 0.85
WriteVectorDFunction · 0.85

Calls

no outgoing calls

Tested by 2

ConnectMethod · 0.68
TestErrorCodeMethod · 0.68