@@ -15,38 +15,6 @@ cfg_if! {
15
15
}
16
16
17
17
s ! {
18
- pub struct statx {
19
- pub stx_mask: u32 ,
20
- pub stx_blksize: u32 ,
21
- pub stx_attributes: u64 ,
22
- pub stx_nlink: u32 ,
23
- pub stx_uid: u32 ,
24
- pub stx_gid: u32 ,
25
- pub stx_mode: u16 ,
26
- __statx_pad1: [ u16 ; 1 ] ,
27
- pub stx_ino: u64 ,
28
- pub stx_size: u64 ,
29
- pub stx_blocks: u64 ,
30
- pub stx_attributes_mask: u64 ,
31
- pub stx_atime: :: statx_timestamp,
32
- pub stx_btime: :: statx_timestamp,
33
- pub stx_ctime: :: statx_timestamp,
34
- pub stx_mtime: :: statx_timestamp,
35
- pub stx_rdev_major: u32 ,
36
- pub stx_rdev_minor: u32 ,
37
- pub stx_dev_major: u32 ,
38
- pub stx_dev_minor: u32 ,
39
- pub stx_mnt_id: u64 ,
40
- __statx_pad2: u64 ,
41
- __statx_pad3: [ u64 ; 12 ] ,
42
- }
43
-
44
- pub struct statx_timestamp {
45
- pub tv_sec: i64 ,
46
- pub tv_nsec: u32 ,
47
- pub __statx_timestamp_pad1: [ i32 ; 1 ] ,
48
- }
49
-
50
18
pub struct aiocb {
51
19
pub aio_fildes: :: c_int,
52
20
pub aio_lio_opcode: :: c_int,
@@ -994,33 +962,6 @@ pub const M_PERTURB: ::c_int = -6;
994
962
pub const M_ARENA_TEST : :: c_int = -7 ;
995
963
pub const M_ARENA_MAX : :: c_int = -8 ;
996
964
997
- pub const AT_STATX_SYNC_TYPE : :: c_int = 0x6000 ;
998
- pub const AT_STATX_SYNC_AS_STAT : :: c_int = 0x0000 ;
999
- pub const AT_STATX_FORCE_SYNC : :: c_int = 0x2000 ;
1000
- pub const AT_STATX_DONT_SYNC : :: c_int = 0x4000 ;
1001
- pub const STATX_TYPE : :: c_uint = 0x0001 ;
1002
- pub const STATX_MODE : :: c_uint = 0x0002 ;
1003
- pub const STATX_NLINK : :: c_uint = 0x0004 ;
1004
- pub const STATX_UID : :: c_uint = 0x0008 ;
1005
- pub const STATX_GID : :: c_uint = 0x0010 ;
1006
- pub const STATX_ATIME : :: c_uint = 0x0020 ;
1007
- pub const STATX_MTIME : :: c_uint = 0x0040 ;
1008
- pub const STATX_CTIME : :: c_uint = 0x0080 ;
1009
- pub const STATX_INO : :: c_uint = 0x0100 ;
1010
- pub const STATX_SIZE : :: c_uint = 0x0200 ;
1011
- pub const STATX_BLOCKS : :: c_uint = 0x0400 ;
1012
- pub const STATX_BASIC_STATS : :: c_uint = 0x07ff ;
1013
- pub const STATX_BTIME : :: c_uint = 0x0800 ;
1014
- pub const STATX_MNT_ID : :: c_uint = 0x1000 ;
1015
- pub const STATX_ALL : :: c_uint = 0x0fff ;
1016
- pub const STATX__RESERVED : :: c_int = 0x80000000 ;
1017
- pub const STATX_ATTR_COMPRESSED : :: c_int = 0x0004 ;
1018
- pub const STATX_ATTR_IMMUTABLE : :: c_int = 0x0010 ;
1019
- pub const STATX_ATTR_APPEND : :: c_int = 0x0020 ;
1020
- pub const STATX_ATTR_NODUMP : :: c_int = 0x0040 ;
1021
- pub const STATX_ATTR_ENCRYPTED : :: c_int = 0x0800 ;
1022
- pub const STATX_ATTR_AUTOMOUNT : :: c_int = 0x1000 ;
1023
-
1024
965
//sys/timex.h
1025
966
pub const ADJ_OFFSET : :: c_uint = 0x0001 ;
1026
967
pub const ADJ_FREQUENCY : :: c_uint = 0x0002 ;
@@ -1178,13 +1119,6 @@ extern "C" {
1178
1119
pub fn getpt ( ) -> :: c_int ;
1179
1120
pub fn mallopt ( param : :: c_int , value : :: c_int ) -> :: c_int ;
1180
1121
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1181
- pub fn statx (
1182
- dirfd : :: c_int ,
1183
- pathname : * const c_char ,
1184
- flags : :: c_int ,
1185
- mask : :: c_uint ,
1186
- statxbuf : * mut statx ,
1187
- ) -> :: c_int ;
1188
1122
pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
1189
1123
pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1190
1124
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
0 commit comments