linux_rust_bindings/stat/
stat_x86.rs1pub const S_IFMT: i32 = 61440;
4pub const S_IFSOCK: i32 = 49152;
5pub const S_IFLNK: i32 = 40960;
6pub const S_IFREG: i32 = 32768;
7pub const S_IFBLK: i32 = 24576;
8pub const S_IFDIR: i32 = 16384;
9pub const S_IFCHR: i32 = 8192;
10pub const S_IFIFO: i32 = 4096;
11pub const S_ISUID: i32 = 2048;
12pub const S_ISGID: i32 = 1024;
13pub const S_ISVTX: i32 = 512;
14pub const S_IRWXU: i32 = 448;
15pub const S_IRUSR: i32 = 256;
16pub const S_IWUSR: i32 = 128;
17pub const S_IXUSR: i32 = 64;
18pub const S_IRWXG: i32 = 56;
19pub const S_IRGRP: i32 = 32;
20pub const S_IWGRP: i32 = 16;
21pub const S_IXGRP: i32 = 8;
22pub const S_IRWXO: i32 = 7;
23pub const S_IROTH: i32 = 4;
24pub const S_IWOTH: i32 = 2;
25pub const S_IXOTH: i32 = 1;
26pub const STATX_TYPE: i32 = 1;
27pub const STATX_MODE: i32 = 2;
28pub const STATX_NLINK: i32 = 4;
29pub const STATX_UID: i32 = 8;
30pub const STATX_GID: i32 = 16;
31pub const STATX_ATIME: i32 = 32;
32pub const STATX_MTIME: i32 = 64;
33pub const STATX_CTIME: i32 = 128;
34pub const STATX_INO: i32 = 256;
35pub const STATX_SIZE: i32 = 512;
36pub const STATX_BLOCKS: i32 = 1024;
37pub const STATX_BASIC_STATS: i32 = 2047;
38pub const STATX_BTIME: i32 = 2048;
39pub const STATX_MNT_ID: i32 = 4096;
40pub const STATX_DIOALIGN: i32 = 8192;
41pub const STATX__RESERVED: i64 = 2147483648;
42pub const STATX_ALL: i32 = 4095;
43pub const STATX_ATTR_COMPRESSED: i32 = 4;
44pub const STATX_ATTR_IMMUTABLE: i32 = 16;
45pub const STATX_ATTR_APPEND: i32 = 32;
46pub const STATX_ATTR_NODUMP: i32 = 64;
47pub const STATX_ATTR_ENCRYPTED: i32 = 2048;
48pub const STATX_ATTR_AUTOMOUNT: i32 = 4096;
49pub const STATX_ATTR_MOUNT_ROOT: i32 = 8192;
50pub const STATX_ATTR_VERITY: i32 = 1048576;
51pub const STATX_ATTR_DAX: i32 = 2097152;
52pub type __kernel_long_t = ::core::ffi::c_long;
53pub type __kernel_ulong_t = ::core::ffi::c_ulong;
54#[repr(C)]
55#[derive(Debug, Copy, Clone)]
56pub struct stat {
57 pub st_dev: __kernel_ulong_t,
58 pub st_ino: __kernel_ulong_t,
59 pub st_nlink: __kernel_ulong_t,
60 pub st_mode: ::core::ffi::c_uint,
61 pub st_uid: ::core::ffi::c_uint,
62 pub st_gid: ::core::ffi::c_uint,
63 pub __pad0: ::core::ffi::c_uint,
64 pub st_rdev: __kernel_ulong_t,
65 pub st_size: __kernel_long_t,
66 pub st_blksize: __kernel_long_t,
67 pub st_blocks: __kernel_long_t,
68 pub st_atime: __kernel_ulong_t,
69 pub st_atime_nsec: __kernel_ulong_t,
70 pub st_mtime: __kernel_ulong_t,
71 pub st_mtime_nsec: __kernel_ulong_t,
72 pub st_ctime: __kernel_ulong_t,
73 pub st_ctime_nsec: __kernel_ulong_t,
74 pub __unused: [__kernel_long_t; 3usize],
75}
76pub type __u16 = ::core::ffi::c_ushort;
77pub type __s32 = ::core::ffi::c_int;
78pub type __u32 = ::core::ffi::c_uint;
79pub type __s64 = ::core::ffi::c_longlong;
80pub type __u64 = ::core::ffi::c_ulonglong;
81#[repr(C)]
82#[derive(Debug, Copy, Clone)]
83pub struct statx_timestamp {
84 pub tv_sec: __s64,
85 pub tv_nsec: __u32,
86 pub __reserved: __s32,
87}
88#[repr(C)]
89#[derive(Debug, Copy, Clone)]
90pub struct statx {
91 pub stx_mask: __u32,
92 pub stx_blksize: __u32,
93 pub stx_attributes: __u64,
94 pub stx_nlink: __u32,
95 pub stx_uid: __u32,
96 pub stx_gid: __u32,
97 pub stx_mode: __u16,
98 pub __spare0: [__u16; 1usize],
99 pub stx_ino: __u64,
100 pub stx_size: __u64,
101 pub stx_blocks: __u64,
102 pub stx_attributes_mask: __u64,
103 pub stx_atime: statx_timestamp,
104 pub stx_btime: statx_timestamp,
105 pub stx_ctime: statx_timestamp,
106 pub stx_mtime: statx_timestamp,
107 pub stx_rdev_major: __u32,
108 pub stx_rdev_minor: __u32,
109 pub stx_dev_major: __u32,
110 pub stx_dev_minor: __u32,
111 pub stx_mnt_id: __u64,
112 pub stx_dio_mem_align: __u32,
113 pub stx_dio_offset_align: __u32,
114 pub __spare3: [__u64; 12usize],
115}