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

Method open

KittyMemoryEx/KittyIOFile.cpp:3–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "KittyIOFile.hpp"
2
3bool KittyIOFile::open()
4{
5 _error = 0;
6 if (_fd < 0)
7 {
8 if (_mode)
9 _fd = KT_EINTR_RETRY(::open(_filePath.c_str(), _flags, _mode));
10 else
11 _fd = KT_EINTR_RETRY(::open(_filePath.c_str(), _flags));
12
13 if (_fd < 0)
14 _error = errno;
15 }
16 return _fd >= 0;
17}
18
19bool KittyIOFile::close()
20{

Callers 9

writeToFileMethod · 0.80
readFileToStringMethod · 0.80
readFileToBufferMethod · 0.80
copyMethod · 0.80
dumpMemRangeMethod · 0.80
dumpMemELFMethod · 0.80
writeOffsetToFileMethod · 0.80
initMethod · 0.80
dsymbolsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected