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:1789–1792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1787} write_db_ctx_t;
1788
1789static int make_writer_temp_path(const char *path, const void *token, char *out, size_t out_size) {
1790 int n = snprintf(out, out_size, "%s.tmp.%ld.%p", path, (long)cbm_writer_getpid(), token);
1791 return (n >= 0 && (size_t)n < out_size) ? 0 : ERR_WRITE_FAILED;
1792}
1793
1794static int sync_writer_output(FILE *fp) {
1795 if (fflush(fp) != 0) {

Callers 1

cbm_writer_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected