File tree Expand file tree Collapse file tree 3 files changed +7
-21
lines changed
src/unix/linux_like/linux/gnu/b32 Expand file tree Collapse file tree 3 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -3339,8 +3339,8 @@ fn test_linux(target: &str) {
3339
3339
3340
3340
// In MUSL `flock64` is a typedef to `flock`.
3341
3341
"flock64" if musl => format ! ( "struct {}" , ty) ,
3342
- // In some gnu targets `stat64` is a typedef to `stat`
3343
- "statfs64" if gnu => format ! ( "struct {}" , ty) ,
3342
+ // In some gnu targets `stat64` is a typedef to `stat`
3343
+ "stat64" | "statfs64" if gnu => format ! ( "struct {}" , ty) ,
3344
3344
3345
3345
// put `struct` in front of all structs:.
3346
3346
t if is_struct => format ! ( "struct {}" , t) ,
Original file line number Diff line number Diff line change 57
57
__unused2: :: c_ulong
58
58
}
59
59
60
- pub struct stat64 {
61
- pub st_dev: :: dev_t,
62
- pub st_ino: :: ino_t,
63
- pub st_mode: :: mode_t,
64
- pub st_nlink: :: nlink_t,
65
- pub st_uid: :: uid_t,
66
- pub st_gid: :: gid_t,
67
- pub st_rdev: :: dev_t,
68
- pub st_size: :: off64_t,
69
- pub st_blksize: :: blksize_t,
70
- pub st_blocks: :: blkcnt64_t,
71
- pub st_atime: :: time_t,
72
- pub st_atime_nsec: :: c_long,
73
- pub st_mtime: :: time_t,
74
- pub st_mtime_nsec: :: c_long,
75
- pub st_ctime: :: time_t,
76
- pub st_ctime_nsec: :: c_long,
77
- }
78
-
79
60
pub struct statvfs64 {
80
61
pub f_bsize: :: c_ulong,
81
62
pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ cfg_if! {
40
40
pub type blksize_t = i32 ;
41
41
}
42
42
}
43
+ cfg_if ! {
44
+ if #[ cfg( target_arch = "arm" ) ] {
45
+ pub type stat64 = stat;
46
+ }
47
+ }
43
48
44
49
s ! {
45
50
pub struct stat {
You can’t perform that action at this time.
0 commit comments