4eecfd64864a1d2b4d5777d964d0a1392654a877
[gapil.git] / listati / statx.h
1 struct statx {
2     __u32 stx_mask;        /* Mask of bits indicating filled fields */
3     __u32 stx_blksize;     /* Block size for filesystem I/O */
4     __u64 stx_attributes;  /* Extra file attribute indicators */
5     __u32 stx_nlink;       /* Number of hard links */
6     __u32 stx_uid;         /* User ID of owner */
7     __u32 stx_gid;         /* Group ID of owner */
8     __u16 stx_mode;        /* File type and mode */
9     __u64 stx_ino;         /* Inode number */
10     __u64 stx_size;        /* Total size in bytes */
11     __u64 stx_blocks;      /* Number of 512B blocks allocated */
12     __u64 stx_attributes_mask; 
13                            /* Mask to show what's supported in stx_attributes */
14     /* The following fields are file timestamps */
15     struct statx_timestamp stx_atime;  /* Last access */
16     struct statx_timestamp stx_btime;  /* Creation */
17     struct statx_timestamp stx_ctime;  /* Last status change */
18     struct statx_timestamp stx_mtime;  /* Last modification */
19     /* If this file represents a device, then the next two
20        fields contain the ID of the device */
21     __u32 stx_rdev_major;  /* Major ID */
22     __u32 stx_rdev_minor;  /* Minor ID */
23     /* The next two fields contain the ID of the device
24        containing the filesystem where the file resides */
25     __u32 stx_dev_major;   /* Major ID */
26     __u32 stx_dev_minor;   /* Minor ID */
27 };