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

Function cbm_tmpdir

src/foundation/compat.h:218–227  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

216
217/* ── Temp directory helper ───────────────────────────────────── */
218static inline const char *cbm_tmpdir(void) {
219#ifdef _WIN32
220 const char *t = getenv("TEMP");
221 if (!t)
222 t = getenv("TMP");
223 return t ? t : ".";
224#else
225 return "/tmp";
226#endif
227}
228
229/* ── Signal handling ──────────────────────────────────────────── */
230/* Windows doesn't have sigaction; provide macro to select signal API. */

Callers 15

cbm_store_openFunction · 0.85
verify_download_checksumFunction · 0.85
cbm_cmd_installFunction · 0.85
download_verify_installFunction · 0.85
cache_dirFunction · 0.85
search_scratch_openFunction · 0.85
mcp_command_output_pathFunction · 0.85
diag_tmp_baseFunction · 0.85
cbm_ui_config_pathFunction · 0.85

Calls

no outgoing calls

Tested by 15

sha256_vector_okFunction · 0.68
make_temp_pathFunction · 0.68
cx_measure_pairFunction · 0.68
cx_measure_bigpkg_pairFunction · 0.68
mcp_search_cache_openFunction · 0.68
autoindex_limit_probeFunction · 0.68