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

Function cbm_tmpdir

src/foundation/compat.h:146–155  ·  view source on GitHub ↗

── Temp directory helper ───────────────────────────────────── */

Source from the content-addressed store, hash-verified

144
145/* ── Temp directory helper ───────────────────────────────────── */
146static inline const char *cbm_tmpdir(void) {
147#ifdef _WIN32
148 const char *t = getenv("TEMP");
149 if (!t)
150 t = getenv("TMP");
151 return t ? t : ".";
152#else
153 return "/tmp";
154#endif
155}
156
157/* ── Signal handling ──────────────────────────────────────────── */
158/* Windows doesn't have sigaction; provide macro to select signal API. */

Callers 15

cbm_store_openFunction · 0.85
verify_download_checksumFunction · 0.85
download_verify_installFunction · 0.85
cache_dirFunction · 0.85
write_pattern_fileFunction · 0.85
cbm_diag_startFunction · 0.85
cbm_ui_config_pathFunction · 0.85
db_path_for_projectFunction · 0.85
cr_cache_dirFunction · 0.85
prepare_stripped_dbFunction · 0.85
dump_and_persist_hashesFunction · 0.85
sha256_vector_okFunction · 0.85

Calls

no outgoing calls

Tested by 4

sha256_vector_okFunction · 0.68
make_temp_pathFunction · 0.68
dv_temp_pathFunction · 0.68
setup_artifact_testFunction · 0.68