| ... | @@ -1322,52 +1322,65 @@ pub const statx_timestamp = extern struct { | ... | @@ -1322,52 +1322,65 @@ pub const statx_timestamp = extern struct { |
| 1322 | __pad1: u32, | 1322 | __pad1: u32, |
| 1323 | }; | 1323 | }; |
| 1324 | | 1324 | |
| | 1325 | /// Renamed to `Statx` to not conflict with the `statx` function. |
| 1325 | pub const Statx = extern struct { | 1326 | pub const Statx = extern struct { |
| 1326 | // Mask of bits indicating filled fields | 1327 | /// Mask of bits indicating filled fields |
| 1327 | stx_mask: u32, | 1328 | mask: u32, |
| 1328 | // Block size for filesystem I/O | 1329 | |
| 1329 | stx_blksize: u32, | 1330 | /// Block size for filesystem I/O |
| 1330 | // Extra file attribute indicators | 1331 | blksize: u32, |
| 1331 | stx_attributes: u64, | 1332 | |
| 1332 | // Number of hard links | 1333 | /// Extra file attribute indicators |
| 1333 | stx_nlink: u32, | 1334 | attributes: u64, |
| 1334 | // User ID of owner | 1335 | |
| 1335 | stx_uid: u32, | 1336 | /// Number of hard links |
| 1336 | // Group ID of owner | 1337 | nlink: u32, |
| 1337 | stx_gid: u32, | 1338 | |
| 1338 | // File type and mode | 1339 | /// User ID of owner |
| 1339 | stx_mode: u16, | 1340 | uid: u32, |
| | 1341 | |
| | 1342 | /// Group ID of owner |
| | 1343 | gid: u32, |
| | 1344 | |
| | 1345 | /// File type and mode |
| | 1346 | mode: u16, |
| 1340 | __pad1: u16, | 1347 | __pad1: u16, |
| 1341 | // Inode number | 1348 | |
| 1342 | stx_ino: u64, | 1349 | /// Inode number |
| 1343 | // Total size in bytes | 1350 | ino: u64, |
| 1344 | stx_size: u64, | 1351 | |
| 1345 | // Number of 512B blocks allocated | 1352 | /// Total size in bytes |
| 1346 | stx_blocks: u64, | 1353 | size: u64, |
| 1347 | // Mask to show what's supported in stx_attributes | 1354 | |
| 1348 | stx_attributes_mask: u64, | 1355 | /// Number of 512B blocks allocated |
| 1349 | | 1356 | blocks: u64, |
| 1350 | // The following fields are file timestamps | 1357 | |
| 1351 | // Last access | 1358 | /// Mask to show what's supported in `attributes`. |
| 1352 | stx_atime: statx_timestamp, | 1359 | attributes_mask: u64, |
| 1353 | // Creation | 1360 | |
| 1354 | stx_btime: statx_timestamp, | 1361 | /// Last access file timestamp |
| 1355 | // Last status change | 1362 | atime: statx_timestamp, |
| 1356 | stx_ctime: statx_timestamp, | 1363 | |
| 1357 | // Last modification | 1364 | /// Creation file timestamp |
| 1358 | stx_mtime: statx_timestamp, | 1365 | btime: statx_timestamp, |
| 1359 | | 1366 | |
| 1360 | // If this file represents a device, then the next two fields contain the ID of the device | 1367 | /// Last status change file timestamp |
| 1361 | // Major ID | 1368 | ctime: statx_timestamp, |
| 1362 | stx_rdev_major: u32, | 1369 | |
| 1363 | // Minor ID | 1370 | /// Last modification file timestamp |
| 1364 | stx_rdev_minor: u32, | 1371 | mtime: statx_timestamp, |
| 1365 | | 1372 | |
| 1366 | // The next two fields contain the ID of the device containing the filesystem where the file resides | 1373 | /// Major ID, if this file represents a device. |
| 1367 | // Major ID | 1374 | rdev_major: u32, |
| 1368 | stx_dev_major: u32, | 1375 | |
| 1369 | // Minor ID | 1376 | /// Minor ID, if this file represents a device. |
| 1370 | stx_dev_minor: u32, | 1377 | rdev_minor: u32, |
| | 1378 | |
| | 1379 | /// Major ID of the device containing the filesystem where this file resides. |
| | 1380 | dev_major: u32, |
| | 1381 | |
| | 1382 | /// Minor ID of the device containing the filesystem where this file resides. |
| | 1383 | dev_minor: u32, |
| 1371 | | 1384 | |
| 1372 | __pad2: [14]u64, | 1385 | __pad2: [14]u64, |
| 1373 | }; | 1386 | }; |