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

Function endpoint_runtime_still_valid

src/daemon/ipc.c:719–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719static bool endpoint_runtime_still_valid(const cbm_daemon_ipc_endpoint_t *endpoint) {
720 if (!endpoint || endpoint->dir_fd < 0) {
721 return false;
722 }
723 struct stat current;
724 return private_runtime_snapshot(endpoint->dir_fd, endpoint->runtime_dir, true, &current) &&
725 current.st_dev == endpoint->dir_device && current.st_ino == endpoint->dir_inode;
726}
727
728static bool private_regular_file_snapshot(int directory_fd, const char *base_name, int fd,
729 nlink_t expected_links, struct stat *status_out) {

Calls 1

private_runtime_snapshotFunction · 0.85

Tested by

no test coverage detected