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

Function cbm_fopen

src/foundation/compat_fs.c:419–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419FILE *cbm_fopen(const char *path, const char *mode) {
420 wchar_t *wpath = cbm_path_to_wide(path);
421 if (!wpath) {
422 return NULL;
423 }
424 wchar_t *wmode = cbm_utf8_to_wide(mode);
425 if (!wmode) {
426 free(wpath);
427 return NULL;
428 }
429 FILE *f = _wfopen(wpath, wmode);
430 free(wpath);
431 free(wmode);
432 return f;
433}
434
435/* Stamp the exact current user as owner and apply an owner-only protected
436 * 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_writer_openFunction · 0.85
run_cliFunction · 0.85
cbm_disambiguate_mFunction · 0.85
cbm_disambiguate_clsFunction · 0.85
cbm_disambiguate_incFunction · 0.85
load_config_fileFunction · 0.85
read_core_excludes_fileFunction · 0.85
detect_file_languageFunction · 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
mcp_read_file_bytesFunction · 0.68