Return the platform birthtime member of the stat structure, or fallback to the mtime member, which we have populated from the statx structure or reset to an invalid timestamp where birth time is not supported. */
| 1124 | from the statx structure or reset to an invalid timestamp |
| 1125 | where birth time is not supported. */ |
| 1126 | static struct timespec |
| 1127 | get_stat_btime (struct stat const *st) |
| 1128 | { |
| 1129 | struct timespec btimespec; |
| 1130 | |
| 1131 | #if HAVE_STATX && defined STATX_INO |
| 1132 | btimespec = get_stat_mtime (st); |
| 1133 | #else |
| 1134 | btimespec = get_stat_birthtime (st); |
| 1135 | #endif |
| 1136 | |
| 1137 | return btimespec; |
| 1138 | } |
| 1139 | |
| 1140 | #if HAVE_STATX && defined STATX_INO |
| 1141 | ATTRIBUTE_PURE |
no outgoing calls
no test coverage detected