MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / close

Method close

KittyMemoryEx/KittyIOFile.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18 return _fd >= 0;
19}
20
21bool KittyIOFile::close()
22{
23 _error = 0;
24 if (_fd >= 0)
25 {
26 if (KT_EINTR_RETRY(::close(_fd)) == -1)
27 {
28 _fd = -1;
29 _error = errno;
30 return false;
31 }
32 _fd = -1;
33 }
34 return true;
35}

Callers 3

dumpMemRangeMethod · 0.80
dumpMemELFMethod · 0.80
dsymbolsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected