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

Function activation_native_sync

src/cli/activation_transaction.c:941–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941static bool activation_native_sync(activation_native_file_t file) {
942#ifdef _WIN32
943 return FlushFileBuffers(file) != 0;
944#else
945 int result;
946 do {
947 result = fsync(file);
948 } while (result != 0 && errno == EINTR);
949 return result == 0 || errno == EINVAL || errno == ENOTSUP || errno == EROFS;
950#endif
951}
952
953static bool activation_native_write_all(activation_native_file_t file, const void *data,
954 size_t length) {

Calls

no outgoing calls

Tested by

no test coverage detected