@@ -16,39 +16,6 @@ cfg_if! {
16
16
}
17
17
18
18
s ! {
19
- pub struct statx {
20
- pub stx_mask: u32 ,
21
- pub stx_blksize: u32 ,
22
- pub stx_attributes: u64 ,
23
- pub stx_nlink: u32 ,
24
- pub stx_uid: u32 ,
25
- pub stx_gid: u32 ,
26
- pub stx_mode: u16 ,
27
- __statx_pad1: [ u16 ; 1 ] ,
28
- pub stx_ino: u64 ,
29
- pub stx_size: u64 ,
30
- pub stx_blocks: u64 ,
31
- pub stx_attributes_mask: u64 ,
32
- pub stx_atime: :: statx_timestamp,
33
- pub stx_btime: :: statx_timestamp,
34
- pub stx_ctime: :: statx_timestamp,
35
- pub stx_mtime: :: statx_timestamp,
36
- pub stx_rdev_major: u32 ,
37
- pub stx_rdev_minor: u32 ,
38
- pub stx_dev_major: u32 ,
39
- pub stx_dev_minor: u32 ,
40
- pub stx_mnt_id: u64 ,
41
- pub stx_dio_mem_align: u32 ,
42
- pub stx_dio_offset_align: u32 ,
43
- __statx_pad3: [ u64 ; 12 ] ,
44
- }
45
-
46
- pub struct statx_timestamp {
47
- pub tv_sec: i64 ,
48
- pub tv_nsec: u32 ,
49
- pub __statx_timestamp_pad1: [ i32 ; 1 ] ,
50
- }
51
-
52
19
pub struct aiocb {
53
20
pub aio_fildes: :: c_int,
54
21
pub aio_lio_opcode: :: c_int,
@@ -1149,37 +1116,6 @@ pub const M_PERTURB: ::c_int = -6;
1149
1116
pub const M_ARENA_TEST : :: c_int = -7 ;
1150
1117
pub const M_ARENA_MAX : :: c_int = -8 ;
1151
1118
1152
- pub const AT_STATX_SYNC_TYPE : :: c_int = 0x6000 ;
1153
- pub const AT_STATX_SYNC_AS_STAT : :: c_int = 0x0000 ;
1154
- pub const AT_STATX_FORCE_SYNC : :: c_int = 0x2000 ;
1155
- pub const AT_STATX_DONT_SYNC : :: c_int = 0x4000 ;
1156
- pub const STATX_TYPE : :: c_uint = 0x0001 ;
1157
- pub const STATX_MODE : :: c_uint = 0x0002 ;
1158
- pub const STATX_NLINK : :: c_uint = 0x0004 ;
1159
- pub const STATX_UID : :: c_uint = 0x0008 ;
1160
- pub const STATX_GID : :: c_uint = 0x0010 ;
1161
- pub const STATX_ATIME : :: c_uint = 0x0020 ;
1162
- pub const STATX_MTIME : :: c_uint = 0x0040 ;
1163
- pub const STATX_CTIME : :: c_uint = 0x0080 ;
1164
- pub const STATX_INO : :: c_uint = 0x0100 ;
1165
- pub const STATX_SIZE : :: c_uint = 0x0200 ;
1166
- pub const STATX_BLOCKS : :: c_uint = 0x0400 ;
1167
- pub const STATX_BASIC_STATS : :: c_uint = 0x07ff ;
1168
- pub const STATX_BTIME : :: c_uint = 0x0800 ;
1169
- pub const STATX_MNT_ID : :: c_uint = 0x1000 ;
1170
- pub const STATX_DIOALIGN : :: c_uint = 0x2000 ;
1171
- pub const STATX_ALL : :: c_uint = 0x0fff ;
1172
- pub const STATX__RESERVED : :: c_int = 0x80000000 ;
1173
- pub const STATX_ATTR_COMPRESSED : :: c_int = 0x0004 ;
1174
- pub const STATX_ATTR_IMMUTABLE : :: c_int = 0x0010 ;
1175
- pub const STATX_ATTR_APPEND : :: c_int = 0x0020 ;
1176
- pub const STATX_ATTR_NODUMP : :: c_int = 0x0040 ;
1177
- pub const STATX_ATTR_ENCRYPTED : :: c_int = 0x0800 ;
1178
- pub const STATX_ATTR_AUTOMOUNT : :: c_int = 0x1000 ;
1179
- pub const STATX_ATTR_MOUNT_ROOT : :: c_int = 0x2000 ;
1180
- pub const STATX_ATTR_VERITY : :: c_int = 0x00100000 ;
1181
- pub const STATX_ATTR_DAX : :: c_int = 0x00200000 ;
1182
-
1183
1119
pub const SOMAXCONN : :: c_int = 4096 ;
1184
1120
1185
1121
// linux/mount.h
@@ -1384,13 +1320,6 @@ extern "C" {
1384
1320
pub fn getpt ( ) -> :: c_int ;
1385
1321
pub fn mallopt ( param : :: c_int , value : :: c_int ) -> :: c_int ;
1386
1322
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1387
- pub fn statx (
1388
- dirfd : :: c_int ,
1389
- pathname : * const c_char ,
1390
- flags : :: c_int ,
1391
- mask : :: c_uint ,
1392
- statxbuf : * mut statx ,
1393
- ) -> :: c_int ;
1394
1323
pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
1395
1324
pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1396
1325
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
0 commit comments