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

Function runtime_posix_stat_same_image

src/daemon/runtime.c:790–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788#elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
789
790static bool runtime_posix_stat_same_image(const struct stat *first, const struct stat *second) {
791 return first && second && S_ISREG(first->st_mode) && S_ISREG(second->st_mode) &&
792 first->st_dev == second->st_dev && first->st_ino == second->st_ino &&
793 first->st_size == second->st_size && first->st_mtim.tv_sec == second->st_mtim.tv_sec &&
794 first->st_mtim.tv_nsec == second->st_mtim.tv_nsec &&
795 first->st_ctim.tv_sec == second->st_ctim.tv_sec &&
796 first->st_ctim.tv_nsec == second->st_ctim.tv_nsec;
797}
798
799#endif
800

Calls

no outgoing calls

Tested by

no test coverage detected