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

Function activation_native_sync

src/cli/activation_transaction.c:1133–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131}
1132
1133static bool activation_native_sync(activation_native_file_t file) {
1134#ifdef _WIN32
1135 return FlushFileBuffers(file) != 0;
1136#else
1137 int result;
1138 do {
1139 result = fsync(file);
1140 } while (result != 0 && errno == EINTR);
1141 return result == 0 || errno == EINVAL || errno == ENOTSUP || errno == EROFS;
1142#endif
1143}
1144
1145static bool activation_native_write_all(activation_native_file_t file, const void *data,
1146 size_t length) {

Calls

no outgoing calls

Tested by

no test coverage detected