| 788 | #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| 789 | |
| 790 | static 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 |
no outgoing calls
no test coverage detected