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

Function cbm_tmpdir

src/foundation/compat.h:204–213  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

202
203/* ── Temp directory helper ───────────────────────────────────── */
204static inline const char *cbm_tmpdir(void) {
205#ifdef _WIN32
206 const char *t = getenv("TEMP");
207 if (!t)
208 t = getenv("TMP");
209 return t ? t : ".";
210#else
211 return "/tmp";
212#endif
213}
214
215/* ── Signal handling ──────────────────────────────────────────── */
216/* 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
jl_fixture_openFunction · 0.68