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

Function descriptor

tests/test_coverage_children.c:330–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330static int descriptor(const char *text) {
331 char *end = NULL;
332 errno = 0;
333 long value = strtol(text, &end, 10);
334 if (errno || !text[0] || *end || value < 3 || value > INT_MAX)
335 return -1;
336 return fcntl((int)value, F_GETFD) >= 0 ? (int)value : -1;
337}
338
339int tf_coverage_children_dispatch(int argc, char **argv) {
340 child_runner = argc > 0 && argv ? argv[0] : NULL;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected