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

Function cgroup_test_setup

tests/test_platform.c:140–143  ·  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

138
139/* Create a unique tmp directory the caller will own; returns 0 on success. */
140static int cgroup_test_setup(char *root, size_t root_sz) {
141 strncpy(root, "/tmp/cbm_cgroup_test_XXXXXX", root_sz);
142 return mkdtemp(root) != NULL ? 0 : -1;
143}
144
145/* Write `content` to "<root>/<relpath>". Creates parent subdir if needed.
146 * 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