File tree 4 files changed +38
-18
lines changed
4 files changed +38
-18
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,22 @@ cfg_if! {
7
7
}
8
8
}
9
9
10
+ pub type clock_t = u64 ;
11
+ pub type ino_t = u64 ;
12
+ pub type nlink_t = u32 ;
13
+ pub type blksize_t = u64 ;
14
+
15
+ s ! {
16
+ pub struct dirent {
17
+ pub d_fileno: :: ino_t,
18
+ pub d_namelen: u16 ,
19
+ pub d_type: u8 ,
20
+ __unused1: u8 ,
21
+ __unused2: u32 ,
22
+ pub d_name: [ :: c_char; 256 ] ,
23
+ }
24
+ }
25
+
10
26
pub type fsblkcnt_t = :: c_uint ;
11
27
pub type fsfilcnt_t = :: c_uint ;
12
28
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ pub type suseconds_t = i64;
5
5
6
6
s ! {
7
7
pub struct stat {
8
- pub st_dev: :: dev_t,
9
8
pub st_ino: :: ino_t,
10
- pub st_mode: :: mode_t,
11
9
pub st_nlink: :: nlink_t,
10
+ pub st_dev: :: dev_t,
11
+ pub st_mode: :: mode_t,
12
+ pub st_padding1: :: uint16_t,
12
13
pub st_uid: :: uid_t,
13
14
pub st_gid: :: gid_t,
14
15
pub st_rdev: :: dev_t,
19
20
pub st_ctime: :: time_t,
20
21
pub st_ctime_nsec: :: c_long,
21
22
pub st_size: :: off_t,
22
- pub st_blocks: :: blkcnt_t ,
23
- pub st_blksize: :: blksize_t ,
23
+ pub st_blocks: :: int64_t ,
24
+ pub st_blksize: :: uint32_t ,
24
25
pub st_flags: :: fflags_t,
25
26
pub st_gen: :: uint32_t,
26
27
pub st_lspare: :: int32_t,
27
- pub st_birthtime : :: time_t ,
28
- pub st_birthtime_nsec : :: c_long ,
28
+ pub st_qspare1 : :: int64_t ,
29
+ pub st_qspare2 : :: int64_t ,
29
30
}
30
31
}
Original file line number Diff line number Diff line change @@ -10,6 +10,21 @@ cfg_if! {
10
10
}
11
11
}
12
12
13
+ pub type clock_t = i32 ;
14
+ pub type ino_t = u32 ;
15
+ pub type nlink_t = u16 ;
16
+ pub type blksize_t = u32 ;
17
+
18
+ s ! {
19
+ pub struct dirent {
20
+ pub d_fileno: u32 ,
21
+ pub d_reclen: u16 ,
22
+ pub d_type: u8 ,
23
+ pub d_namlen: u8 ,
24
+ pub d_name: [ :: c_char; 256 ] ,
25
+ }
26
+ }
27
+
13
28
pub type fsblkcnt_t = :: uint64_t ;
14
29
pub type fsfilcnt_t = :: uint64_t ;
15
30
Original file line number Diff line number Diff line change 1
- pub type clock_t = i32 ;
2
1
pub type dev_t = u32 ;
3
- pub type ino_t = u32 ;
4
2
pub type mode_t = u16 ;
5
- pub type nlink_t = u16 ;
6
- pub type blksize_t = u32 ;
7
3
pub type fflags_t = u32 ;
8
4
pub type pthread_attr_t = * mut :: c_void ;
9
5
pub type rlim_t = i64 ;
@@ -18,14 +14,6 @@ pub type speed_t = ::c_uint;
18
14
pub enum timezone { }
19
15
20
16
s ! {
21
- pub struct dirent {
22
- pub d_fileno: u32 ,
23
- pub d_reclen: u16 ,
24
- pub d_type: u8 ,
25
- pub d_namlen: u8 ,
26
- pub d_name: [ :: c_char; 256 ] ,
27
- }
28
-
29
17
pub struct glob_t {
30
18
pub gl_pathc: :: size_t,
31
19
__unused1: :: size_t,
You can’t perform that action at this time.
0 commit comments