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

Function posix_fd_write_all

src/daemon/ipc.c:2379–2392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2377}
2378
2379static bool posix_fd_write_all(int fd, const uint8_t *buffer, size_t length) {
2380 size_t offset = 0;
2381 while (offset < length) {
2382 ssize_t written = write(fd, buffer + offset, length - offset);
2383 if (written > 0) {
2384 offset += (size_t)written;
2385 } else if (written < 0 && errno == EINTR) {
2386 continue;
2387 } else {
2388 return false;
2389 }
2390 }
2391 return true;
2392}
2393
2394/* The failing step of the most recent record publication in this process:
2395 * its errno (0 when a validation predicate, not a syscall, refused) and the

Callers 1

posix_record_fd_writeFunction · 0.85

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected