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

Function prepare_receiver

tests/test_coverage_children.c:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static bool prepare_receiver(Child *child, const char *root) {
105 if (!path_fits(
106 snprintf(child->receiver_dir, sizeof(child->receiver_dir), "%s/_receiver.XXXXXX", root),
107 sizeof(child->receiver_dir)) ||
108 !mkdtemp(child->receiver_dir))
109 return false;
110 return path_fits(snprintf(child->receiver_profile, sizeof(child->receiver_profile),
111 "%s/receiver.profraw", child->receiver_dir),
112 sizeof(child->receiver_profile)) &&
113 path_fits(snprintf(child->missing, sizeof(child->missing), "%s/missing-executable",
114 child->receiver_dir),
115 sizeof(child->missing));
116}
117
118static int execute(enum ChildOperation operation, const char *path, char **args) {
119 switch (operation) {

Callers 1

start_childFunction · 0.85

Calls 1

path_fitsFunction · 0.85

Tested by

no test coverage detected