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

Function make_writer_temp_path

internal/cbm/sqlite_writer.c:1745–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1743} write_db_ctx_t;
1744
1745static int make_writer_temp_path(const char *path, const void *token, char *out, size_t out_size) {
1746 int n = snprintf(out, out_size, "%s.tmp.%ld.%p", path, (long)cbm_writer_getpid(), token);
1747 return (n >= 0 && (size_t)n < out_size) ? 0 : ERR_WRITE_FAILED;
1748}
1749
1750static int sync_writer_output(FILE *fp) {
1751 if (fflush(fp) != 0) {

Callers 1

cbm_writer_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected