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

Method WriteUnbuffered

src/leveldb/util/env_posix.cc:338–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 Status WriteUnbuffered(const char* data, size_t size) {
339 while (size > 0) {
340 ssize_t write_result = ::write(fd_, data, size);
341 if (write_result < 0) {
342 if (errno == EINTR) {
343 continue; // Retry
344 }
345 return PosixError(filename_, errno);
346 }
347 data += write_result;
348 size -= write_result;
349 }
350 return Status::OK();
351 }
352
353 Status SyncDirIfManifest() {
354 Status status;

Callers

nothing calls this directly

Calls 2

PosixErrorFunction · 0.85
OKFunction · 0.85

Tested by

no test coverage detected