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

Function activation_native_sync

src/cli/activation_transaction.c:998–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998static bool activation_native_sync(activation_native_file_t file) {
999#ifdef _WIN32
1000 return FlushFileBuffers(file) != 0;
1001#else
1002 int result;
1003 do {
1004 result = fsync(file);
1005 } while (result != 0 && errno == EINTR);
1006 return result == 0 || errno == EINVAL || errno == ENOTSUP || errno == EROFS;
1007#endif
1008}
1009
1010static bool activation_native_write_all(activation_native_file_t file, const void *data,
1011 size_t length) {

Calls

no outgoing calls

Tested by

no test coverage detected