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
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).
gpshead
changed the title
bpo-39533: Use
gh-83714: Use statx on more recent Linux to expose st_flags and st_btime on all platformsstatx on more recent Linux to expose st_flags and st_btime on all platforms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters