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

Function hold_obstruction

tests/test_coverage_children.c:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static bool hold_obstruction(Child *child) {
211 if (mkdir(child->profile, 0700) != 0)
212 return false;
213 child->owns_obstruction = true;
214 if (lstat(child->profile, &child->obstruction) != 0 || !S_ISDIR(child->obstruction.st_mode))
215 return false;
216 return note(child, "obstacle_held", -1, 1);
217}
218
219static bool remove_obstruction(Child *child) {
220 struct stat now;

Callers 1

ready_childFunction · 0.85

Calls 2

lstatFunction · 0.85
noteFunction · 0.70

Tested by

no test coverage detected