MCPcopy Create free account
hub / github.com/coreutils/coreutils / get_stat_btime

Function get_stat_btime

src/ls.c:1126–1138  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

1124 from the statx structure or reset to an invalid timestamp
1125 where birth time is not supported. */
1126static struct timespec
1127get_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
1141ATTRIBUTE_PURE

Callers 2

cmp_btimeFunction · 0.85
print_long_formatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected