MCPcopy Create free account
hub / github.com/ElementsProject/elements / PosixError

Function PosixError

src/leveldb/util/env_posix.cc:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58constexpr const size_t kWritableFileBufferSize = 65536;
59
60Status PosixError(const std::string& context, int error_number) {
61 if (error_number == ENOENT) {
62 return Status::NotFound(context, std::strerror(error_number));
63 } else {
64 return Status::IOError(context, std::strerror(error_number));
65 }
66}
67
68// Helper class to limit resource usage to avoid exhaustion.
69// Currently used to limit read-only file descriptors and mmap file usage

Callers 15

ReadMethod · 0.85
SkipMethod · 0.85
ReadMethod · 0.85
ReadMethod · 0.85
CloseMethod · 0.85
WriteUnbufferedMethod · 0.85
SyncDirIfManifestMethod · 0.85
SyncFdMethod · 0.85
NewSequentialFileMethod · 0.85
NewRandomAccessFileMethod · 0.85
NewWritableFileMethod · 0.85
NewAppendableFileMethod · 0.85

Calls 2

NotFoundFunction · 0.85
IOErrorFunction · 0.85

Tested by

no test coverage detected