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

Function endpoint_runtime_still_valid

src/daemon/ipc.c:898–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896}
897
898static bool endpoint_runtime_still_valid(const cbm_daemon_ipc_endpoint_t *endpoint) {
899 if (!endpoint || endpoint->dir_fd < 0) {
900 return false;
901 }
902 struct stat current;
903 return private_runtime_snapshot(endpoint->dir_fd, endpoint->runtime_dir, true, &current) &&
904 current.st_dev == endpoint->dir_device && current.st_ino == endpoint->dir_inode;
905}
906
907static bool private_regular_file_snapshot(int directory_fd, const char *base_name, int fd,
908 nlink_t expected_links, struct stat *status_out) {

Calls 1

private_runtime_snapshotFunction · 0.85

Tested by

no test coverage detected