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

Function cbm_fopen

src/foundation/compat_fs.c:447–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447FILE *cbm_fopen(const char *path, const char *mode) {
448 wchar_t *wpath = cbm_path_to_wide(path);
449 if (!wpath) {
450 return NULL;
451 }
452 wchar_t *wmode = cbm_utf8_to_wide(mode);
453 if (!wmode) {
454 free(wpath);
455 return NULL;
456 }
457 FILE *f = _wfopen(wpath, wmode);
458 free(wpath);
459 free(wmode);
460 return f;
461}
462
463/* Stamp the exact current user as owner and apply an owner-only protected
464 * 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
lang_read_headFunction · 0.85
cbm_language_for_fileFunction · 0.85
load_config_fileFunction · 0.85
load_project_sourceFunction · 0.85

Calls 3

cbm_path_to_wideFunction · 0.85
cbm_utf8_to_wideFunction · 0.85
fopenFunction · 0.85

Tested by 15

te_read_fileFunction · 0.68
te_copy_fileFunction · 0.68
ta_feed_fileFunction · 0.68
cbm_ti_receipt_readFunction · 0.68
cbm_ti_receipt_writeFunction · 0.68
te_read_configFunction · 0.68
te_configFunction · 0.68
cbm_test_config_loadFunction · 0.68
gf_capture_inputFunction · 0.68
gf_read_captureFunction · 0.68
write_test_fileFunction · 0.68
copy_fileFunction · 0.68