]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-83714: Check for struct statx.stx_atomic_write_unit_max_opt in configure (#140185)
authorJeffrey Bosboom <jbosboom@jeffreybosboom.com>
Thu, 16 Oct 2025 11:40:47 +0000 (04:40 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Oct 2025 11:40:47 +0000 (13:40 +0200)
commit5a31024da45eb00f5450269cad4481131d77c81f
tree5a4d19d2290409c39c472b58d5eb1c69b88cd31c
parentea4cc585cd12ed73e5fe9978f943ceff5bb5cd51
gh-83714: Check for struct statx.stx_atomic_write_unit_max_opt in configure (#140185)

stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlled
by the STATX_WRITE_ATOMIC mask bit added in Linux 6.11.  That's safe at
runtime because all kernels clear the reserved space in struct statx and
zero is a valid value for stx_atomic_write_unit_max_opt, and it avoids
allocating another mask bit, which are a limited resource.  But it also
means the kernel headers don't provide a way to check whether
stx_atomic_write_unit_max_opt exists, so add a configure check.
Doc/library/os.rst
Modules/posixmodule.c
configure
configure.ac
pyconfig.h.in