@@ -3330,17 +3330,17 @@ typedef struct {
33303330
33313331static PyMemberDef pystatx_result_members [] = {
33323332 MM (stx_mask , Py_T_UINT , mask , "member validity mask" ),
3333- MM (st_blksize , Py_T_UINT , blksize , "blocksize for filesystem I/O" ),
3333+ MM (stx_blksize , Py_T_UINT , blksize , "blocksize for filesystem I/O" ),
33343334 MM (stx_attributes , Py_T_ULONGLONG , attributes , "Linux inode attribute bits" ),
3335- MM (st_mode , Py_T_USHORT , mode , "protection bits" ),
3335+ MM (stx_mode , Py_T_USHORT , mode , "protection bits" ),
33363336 MM (stx_attributes_mask , Py_T_ULONGLONG , attributes_mask ,
33373337 "Mask of supported bits in stx_attributes" ),
33383338 MM (stx_rdev_major , Py_T_UINT , rdev_major , "represented device major number" ),
33393339 MM (stx_rdev_minor , Py_T_UINT , rdev_minor , "represented device minor number" ),
3340- MX (st_rdev , Py_T_ULONGLONG , rdev , "device type (if inode device)" ),
3340+ MX (stx_rdev , Py_T_ULONGLONG , rdev , "device type (if inode device)" ),
33413341 MM (stx_dev_major , Py_T_UINT , dev_major , "containing device major number" ),
33423342 MM (stx_dev_minor , Py_T_UINT , dev_minor , "containing device minor number" ),
3343- MX (st_dev , Py_T_ULONGLONG , dev , "device" ),
3343+ MX (stx_dev , Py_T_ULONGLONG , dev , "device" ),
33443344 {NULL },
33453345};
33463346
@@ -3361,9 +3361,9 @@ static PyMemberDef pystatx_result_members[] = {
33613361 return PyLong_FromUnsignedLong(value); \
33623362 }
33633363
3364- STATX_GET_UINT (st_uid , stx_uid , STATX_UID )
3365- STATX_GET_UINT (st_gid , stx_gid , STATX_GID )
3366- STATX_GET_UINT (st_nlink , stx_nlink , STATX_NLINK )
3364+ STATX_GET_UINT (stx_uid , stx_uid , STATX_UID )
3365+ STATX_GET_UINT (stx_gid , stx_gid , STATX_GID )
3366+ STATX_GET_UINT (stx_nlink , stx_nlink , STATX_NLINK )
33673367#ifdef HAVE_STRUCT_STATX_STX_DIO_MEM_ALIGN
33683368STATX_GET_UINT (stx_dio_mem_align , stx_dio_mem_align , STATX_DIOALIGN )
33693369STATX_GET_UINT (stx_dio_offset_align , stx_dio_offset_align , STATX_DIOALIGN )
@@ -3398,9 +3398,9 @@ STATX_GET_UINT(stx_atomic_write_unit_max_opt, stx_atomic_write_unit_max_opt,
33983398 return PyLong_FromUnsignedLongLong(value); \
33993399 }
34003400
3401- STATX_GET_ULONGLONG (st_blocks , stx_blocks , STATX_BLOCKS )
3402- STATX_GET_ULONGLONG (st_ino , stx_ino , STATX_INO )
3403- STATX_GET_ULONGLONG (st_size , stx_size , STATX_SIZE )
3401+ STATX_GET_ULONGLONG (stx_blocks , stx_blocks , STATX_BLOCKS )
3402+ STATX_GET_ULONGLONG (stx_ino , stx_ino , STATX_INO )
3403+ STATX_GET_ULONGLONG (stx_size , stx_size , STATX_SIZE )
34043404#ifdef HAVE_STRUCT_STATX_STX_MNT_ID
34053405STATX_GET_ULONGLONG (stx_mnt_id , stx_mnt_id , STATX_MNT_ID )
34063406#endif
@@ -3421,10 +3421,10 @@ STATX_GET_ULONGLONG(stx_subvol, stx_subvol, STATX_SUBVOL)
34213421 return PyFloat_FromDouble(sec); \
34223422 }
34233423
3424- STATX_GET_DOUBLE (st_atime , atime_sec , STATX_ATIME )
3425- STATX_GET_DOUBLE (st_birthtime , btime_sec , STATX_BTIME )
3426- STATX_GET_DOUBLE (st_ctime , ctime_sec , STATX_CTIME )
3427- STATX_GET_DOUBLE (st_mtime , mtime_sec , STATX_MTIME )
3424+ STATX_GET_DOUBLE (stx_atime , atime_sec , STATX_ATIME )
3425+ STATX_GET_DOUBLE (stx_birthtime , btime_sec , STATX_BTIME )
3426+ STATX_GET_DOUBLE (stx_ctime , ctime_sec , STATX_CTIME )
3427+ STATX_GET_DOUBLE (stx_mtime , mtime_sec , STATX_MTIME )
34283428
34293429#define STATX_GET_NSEC (ATTR , MEMBER , MASK ) \
34303430 static PyObject* \
@@ -3440,29 +3440,29 @@ STATX_GET_DOUBLE(st_mtime, mtime_sec, STATX_MTIME)
34403440 return stat_nanosecond_timestamp(state, ts->tv_sec, ts->tv_nsec); \
34413441 }
34423442
3443- STATX_GET_NSEC (st_atime_ns , stx_atime , STATX_ATIME )
3444- STATX_GET_NSEC (st_birthtime_ns , stx_btime , STATX_BTIME )
3445- STATX_GET_NSEC (st_ctime_ns , stx_ctime , STATX_CTIME )
3446- STATX_GET_NSEC (st_mtime_ns , stx_mtime , STATX_MTIME )
3443+ STATX_GET_NSEC (stx_atime_ns , stx_atime , STATX_ATIME )
3444+ STATX_GET_NSEC (stx_birthtime_ns , stx_btime , STATX_BTIME )
3445+ STATX_GET_NSEC (stx_ctime_ns , stx_ctime , STATX_CTIME )
3446+ STATX_GET_NSEC (stx_mtime_ns , stx_mtime , STATX_MTIME )
34473447
34483448#define G (attr , doc ) \
34493449 {#attr, pystatx_result_get_##attr, NULL, PyDoc_STR(doc), NULL}
34503450
34513451static PyGetSetDef pystatx_result_getset [] = {
3452- G (st_nlink , "number of hard links" ),
3453- G (st_uid , "user ID of owner" ),
3454- G (st_gid , "group ID of owner" ),
3455- G (st_ino , "inode" ),
3456- G (st_size , "total size, in bytes" ),
3457- G (st_blocks , "number of blocks allocated" ),
3458- G (st_atime , "time of last access" ),
3459- G (st_atime_ns , "time of last access in nanoseconds" ),
3460- G (st_birthtime , "time of creation" ),
3461- G (st_birthtime_ns , "time of creation in nanoseconds" ),
3462- G (st_ctime , "time of last change" ),
3463- G (st_ctime_ns , "time of last change in nanoseconds" ),
3464- G (st_mtime , "time of last modification" ),
3465- G (st_mtime_ns , "time of last modification in nanoseconds" ),
3452+ G (stx_nlink , "number of hard links" ),
3453+ G (stx_uid , "user ID of owner" ),
3454+ G (stx_gid , "group ID of owner" ),
3455+ G (stx_ino , "inode" ),
3456+ G (stx_size , "total size, in bytes" ),
3457+ G (stx_blocks , "number of blocks allocated" ),
3458+ G (stx_atime , "time of last access" ),
3459+ G (stx_atime_ns , "time of last access in nanoseconds" ),
3460+ G (stx_birthtime , "time of creation" ),
3461+ G (stx_birthtime_ns , "time of creation in nanoseconds" ),
3462+ G (stx_ctime , "time of last change" ),
3463+ G (stx_ctime_ns , "time of last change in nanoseconds" ),
3464+ G (stx_mtime , "time of last modification" ),
3465+ G (stx_mtime_ns , "time of last modification in nanoseconds" ),
34663466#ifdef HAVE_STRUCT_STATX_STX_MNT_ID
34673467 G (stx_mnt_id , "mount ID" ),
34683468#endif
0 commit comments