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