MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / config_write_all

Function config_write_all

src/ui/config.c:300–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299#else
300static bool config_write_all(int descriptor, const char *json, size_t json_length) {
301 size_t offset = 0;
302 while (offset < json_length) {
303 ssize_t written = write(descriptor, json + offset, json_length - offset);
304 if (written < 0 && errno == EINTR) {
305 continue;
306 }
307 if (written <= 0) {
308 return false;
309 }
310 offset += (size_t)written;
311 }
312 return true;
313}
314
315static bool config_sync_descriptor(int descriptor) {
316 int result;

Callers 1

config_write_atomicFunction · 0.85

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected