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

Function config_write_all

src/ui/config.c:293–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292#else
293static bool config_write_all(int descriptor, const char *json, size_t json_length) {
294 size_t offset = 0;
295 while (offset < json_length) {
296 ssize_t written = write(descriptor, json + offset, json_length - offset);
297 if (written < 0 && errno == EINTR) {
298 continue;
299 }
300 if (written <= 0) {
301 return false;
302 }
303 offset += (size_t)written;
304 }
305 return true;
306}
307
308static bool config_sync_descriptor(int descriptor) {
309 int result;

Callers 1

config_write_atomicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected