◐ Shell
clean mode source ↗

gh-83714: Use `statx` on more recent Linux to expose `st_flags` and `st_btime` on all platforms by ntninja · Pull Request #19125 · python/cpython

SebAlbert

On BSD/macOS this uses the value of `st_birthtime` (which remains for
compatibity reasons), on Windows it duplicates the value of `st_ctime`.

A Linux implementation is added in subsequent commits.
It cannot be enabled by default because this implementation does not have
any fallback to plain stat for older kernels and Linux 4.11 is still fairly
recent. The configure checks also ensure that the C library expose the
proper stub functions (glibc 2.28+ only).
…D UF_* equivalent as defined by FreeBSD

ExplodingCabbage

@gpshead gpshead changed the title bpo-39533: Use statx on more recent Linux to expose st_flags and st_btime on all platforms gh-83714: Use statx on more recent Linux to expose st_flags and st_btime on all platforms

Aug 31, 2025