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
19bool KittyIOFile::close()
20{
21 _error = 0;
22 if (_fd >= 0)
23 {
24 if (KT_EINTR_RETRY(::close(_fd)) == -1)
25 {
26 _error = errno;
27 return false;
28 }
29 _fd = -1;
30 }
31 return true;
32}
33
34ssize_t KittyIOFile::read(void *buffer, size_t len)
35{

Callers 3

dumpMemRangeMethod · 0.80
dumpMemELFMethod · 0.80
dsymbolsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected