| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7f371ed commit 37ebb56
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3496,7 +3496,7 @@ features: | |||
| 3496 | 3496 | Maximum optimized size for direct I/O with torn-write protection. | |
| 3497 | 3497 | ||
| 3498 | 3498 | .. availability:: Linux >= 4.11 with glibc >= 2.28 and build-time kernel | |
| 3499 | - userspace API headers >= 6.11. | ||
| 3499 | + userspace API headers >= 6.16. | ||
| 3500 | 3500 | ||
| 3501 | 3501 | .. attribute:: stx_atomic_write_segments_max | |
| 3502 | 3502 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3369,7 +3369,7 @@ static PyMemberDef pystatx_result_members[] = { | |||
| 3369 | 3369 | MM(stx_atomic_write_segments_max, Py_T_UINT, atomic_write_segments_max, | |
| 3370 | 3370 | "maximum iovecs for direct I/O with torn-write protection"), | |
| 3371 | 3371 | #endif | |
| 3372 | - #if 0 | ||
| 3372 | + #ifdef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MAX_OPT | ||
| 3373 | 3373 | MM(stx_atomic_write_unit_max_opt, Py_T_UINT, atomic_write_unit_max_opt, | |
| 3374 | 3374 | "maximum optimized size for direct I/O with torn-write protection"), | |
| 3375 | 3375 | #endif | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5819,6 +5819,13 @@ AC_CHECK_MEMBERS([struct passwd.pw_gecos, struct passwd.pw_passwd], [], [], [[ | |||
| 5819 | 5819 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. | |
| 5820 | 5820 | AC_CHECK_MEMBERS([siginfo_t.si_band], [], [], [[@%:@include <signal.h>]]) | |
| 5821 | 5821 | ||
| 5822 | + if test "$ac_cv_func_statx" = yes; then | ||
| 5823 | + # stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlled by | ||
| 5824 | + # the STATX_WRITE_ATOMIC mask bit added in Linux 6.11, so having the mask bit | ||
| 5825 | + # doesn't imply having the member. | ||
| 5826 | + AC_CHECK_MEMBERS([struct statx.stx_atomic_write_unit_max_opt]) | ||
| 5827 | + fi | ||
| 5828 | + | ||
| 5822 | 5829 | AC_CACHE_CHECK([for time.h that defines altzone], [ac_cv_header_time_altzone], [ | |
| 5823 | 5830 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <time.h>]], [[return altzone;]])], | |
| 5824 | 5831 | [ac_cv_header_time_altzone=yes], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1330,6 +1330,10 @@ | |||
| 1330 | 1330 | /* Define to 1 if 'pw_passwd' is a member of 'struct passwd'. */ | |
| 1331 | 1331 | #undef HAVE_STRUCT_PASSWD_PW_PASSWD | |
| 1332 | 1332 | ||
| 1333 | + /* Define to 1 if 'stx_atomic_write_unit_max_opt' is a member of 'struct | ||
| 1334 | + statx'. */ | ||
| 1335 | + #undef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MAX_OPT | ||
| 1336 | + | ||
| 1333 | 1337 | /* Define to 1 if 'st_birthtime' is a member of 'struct stat'. */ | |
| 1334 | 1338 | #undef HAVE_STRUCT_STAT_ST_BIRTHTIME | |
| 1335 | 1339 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments