Follow-up Comment #1, bug #65792 (group findutils): Perhaps it makes sense to add a function in Gnulib that allows fetching the creation-time of a file?
On the BSDs you can use struct stat to get the birthtime [1]. Linux has statx as you mentioned [2]. Windows (not sure if Findutils supports it) through GetFileTime [3]. >From what I can tell AIX and Solaris don't have any way to get it. Maybe a wrapper function around stat with an extra argument? extern int stat_birthtime (const char *file, struct stat *st, struct timespec *birthtime); [2] https://man.freebsd.org/cgi/man.cgi?query=stat&sektion=2 [2] https://man7.org/linux/man-pages/man2/statx.2.html [3] https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletime _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65792> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/