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

Function cbm_fopen

src/foundation/compat_fs.c:424–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424FILE *cbm_fopen(const char *path, const char *mode) {
425 wchar_t *wpath = cbm_path_to_wide(path);
426 if (!wpath) {
427 return NULL;
428 }
429 wchar_t *wmode = cbm_utf8_to_wide(mode);
430 if (!wmode) {
431 free(wpath);
432 return NULL;
433 }
434 FILE *f = _wfopen(wpath, wmode);
435 free(wpath);
436 free(wmode);
437 return f;
438}
439
440/* Stamp the exact current user as owner and apply an owner-only protected
441 * DACL on a directory cbm just created. Under the Administrators-default-owner

Callers 15

cbm_index_markFunction · 0.85
cbm_quarantine_loadFunction · 0.85
cbm_result_spill_openFunction · 0.85
cbm_writer_openFunction · 0.85
run_cliFunction · 0.85
cbm_disambiguate_mFunction · 0.85
cbm_disambiguate_frmFunction · 0.85
cbm_disambiguate_clsFunction · 0.85
cbm_disambiguate_incFunction · 0.85

Calls 2

cbm_path_to_wideFunction · 0.85
cbm_utf8_to_wideFunction · 0.85

Tested by 15

write_test_fileFunction · 0.68
write_fixture_fileFunction · 0.68
fixture_file_equalsFunction · 0.68
diagnostics_file_equalsFunction · 0.68
diagnostics_read_fileFunction · 0.68
tf_index_worker_probeFunction · 0.68
cte_readFunction · 0.68
mcp_test_gitFunction · 0.68