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

Function cgroup_test_setup

tests/test_platform.c:995–998  ·  view source on GitHub ↗

Create a unique tmp directory the caller will own; returns 0 on success. */

Source from the content-addressed store, hash-verified

993
994/* Create a unique tmp directory the caller will own; returns 0 on success. */
995static int cgroup_test_setup(char *root, size_t root_sz) {
996 strncpy(root, "/tmp/cbm_cgroup_test_XXXXXX", root_sz);
997 return mkdtemp(root) != NULL ? 0 : -1;
998}
999
1000/* Write `content` to "<root>/<relpath>". Creates parent subdir if needed.
1001 * Returns 0 on success, -1 on any failure. */

Callers 1

test_platform.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected