@@ -40,55 +40,61 @@ cfg_if! {
40
40
}
41
41
}
42
42
43
- s ! {
44
- pub struct stat {
45
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
46
- pub st_dev: crate :: dev_t,
47
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
48
- pub st_dev: c_ulong,
49
-
50
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
51
- __pad1: c_short,
52
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
53
- st_pad1: [ c_long; 3 ] ,
54
- pub st_ino: crate :: ino_t,
55
- pub st_mode: crate :: mode_t,
56
- pub st_nlink: crate :: nlink_t,
57
- pub st_uid: crate :: uid_t,
58
- pub st_gid: crate :: gid_t,
59
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
60
- pub st_rdev: crate :: dev_t,
61
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
62
- pub st_rdev: c_ulong,
63
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
64
- __pad2: c_short,
65
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
66
- st_pad2: [ c_long; 2 ] ,
67
- pub st_size: off_t,
68
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
69
- st_pad3: c_long,
70
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
71
- pub st_blksize: crate :: blksize_t,
72
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
73
- pub st_blocks: crate :: blkcnt_t,
74
- pub st_atime: crate :: time_t,
75
- pub st_atime_nsec: c_long,
76
- pub st_mtime: crate :: time_t,
77
- pub st_mtime_nsec: c_long,
78
- pub st_ctime: crate :: time_t,
79
- pub st_ctime_nsec: c_long,
80
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
81
- __unused4: c_long,
82
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
83
- __unused5: c_long,
84
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
85
- pub st_blksize: crate :: blksize_t,
86
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
87
- pub st_blocks: crate :: blkcnt_t,
88
- #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
89
- st_pad5: [ c_long; 14 ] ,
43
+ cfg_if ! {
44
+ if #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ] {
45
+ s! {
46
+ pub struct stat {
47
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
48
+ pub st_dev: crate :: dev_t,
49
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
50
+ pub st_dev: c_ulong,
51
+
52
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
53
+ __pad1: c_short,
54
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
55
+ st_pad1: [ c_long; 3 ] ,
56
+ pub st_ino: crate :: ino_t,
57
+ pub st_mode: crate :: mode_t,
58
+ pub st_nlink: crate :: nlink_t,
59
+ pub st_uid: crate :: uid_t,
60
+ pub st_gid: crate :: gid_t,
61
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
62
+ pub st_rdev: crate :: dev_t,
63
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
64
+ pub st_rdev: c_ulong,
65
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
66
+ __pad2: c_short,
67
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
68
+ st_pad2: [ c_long; 2 ] ,
69
+ pub st_size: off_t,
70
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
71
+ st_pad3: c_long,
72
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
73
+ pub st_blksize: crate :: blksize_t,
74
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
75
+ pub st_blocks: crate :: blkcnt_t,
76
+ pub st_atime: crate :: time_t,
77
+ pub st_atime_nsec: c_long,
78
+ pub st_mtime: crate :: time_t,
79
+ pub st_mtime_nsec: c_long,
80
+ pub st_ctime: crate :: time_t,
81
+ pub st_ctime_nsec: c_long,
82
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
83
+ __unused4: c_long,
84
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ) ]
85
+ __unused5: c_long,
86
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
87
+ pub st_blksize: crate :: blksize_t,
88
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
89
+ pub st_blocks: crate :: blkcnt_t,
90
+ #[ cfg( any( target_arch = "mips" , target_arch = "mips32r6" ) ) ]
91
+ st_pad5: [ c_long; 14 ] ,
92
+ }
93
+ }
90
94
}
95
+ }
91
96
97
+ s ! {
92
98
pub struct statvfs {
93
99
pub f_bsize: c_ulong,
94
100
pub f_frsize: c_ulong,
0 commit comments