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

Function activation_native_sync

src/cli/activation_transaction.c:868–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866}
867
868static bool activation_native_sync(activation_native_file_t file) {
869#ifdef _WIN32
870 return FlushFileBuffers(file) != 0;
871#else
872 int result;
873 do {
874 result = fsync(file);
875 } while (result != 0 && errno == EINTR);
876 return result == 0 || errno == EINVAL || errno == ENOTSUP || errno == EROFS;
877#endif
878}
879
880static bool activation_native_write_all(activation_native_file_t file, const void *data,
881 size_t length) {

Calls

no outgoing calls

Tested by

no test coverage detected