File tree Expand file tree Collapse file tree 5 files changed +9
-60
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 5 files changed +9
-60
lines changed Original file line number Diff line number Diff line change @@ -3339,6 +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
3344
3343
3345
// put `struct` in front of all structs:.
3344
3346
t if is_struct => format ! ( "struct {}" , t) ,
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type wchar_t = u32 ;
3
3
4
+ pub type statfs64 = statfs ;
5
+
4
6
s ! {
5
7
pub struct sigaction {
6
8
pub sa_sigaction: :: sighandler_t,
74
76
pub st_ctime_nsec: :: c_long,
75
77
}
76
78
77
- pub struct statfs64 {
78
- pub f_type: :: __fsword_t,
79
- pub f_bsize: :: __fsword_t,
80
- pub f_blocks: u64 ,
81
- pub f_bfree: u64 ,
82
- pub f_bavail: u64 ,
83
- pub f_files: u64 ,
84
- pub f_ffree: u64 ,
85
- pub f_fsid: :: fsid_t,
86
- pub f_namelen: :: __fsword_t,
87
- pub f_frsize: :: __fsword_t,
88
- pub f_flags: :: __fsword_t,
89
- pub f_spare: [ :: __fsword_t; 4 ] ,
90
- }
91
-
92
79
pub struct statvfs64 {
93
80
pub f_bsize: :: c_ulong,
94
81
pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change 1
1
pub type c_char = i8 ;
2
2
pub type wchar_t = i32 ;
3
3
4
+ pub type statfs64 = statfs ;
4
5
s ! {
5
6
pub struct stat64 {
6
7
pub st_dev: :: dev_t,
39
40
f_spare: [ :: c_long; 6 ] ,
40
41
}
41
42
42
- pub struct statfs64 {
43
- pub f_type: :: c_long,
44
- pub f_bsize: :: c_long,
45
- pub f_frsize: :: c_long,
46
- pub f_blocks: u64 ,
47
- pub f_bfree: u64 ,
48
- pub f_files: u64 ,
49
- pub f_ffree: u64 ,
50
- pub f_bavail: u64 ,
51
- pub f_fsid: :: fsid_t,
52
- pub f_namelen: :: c_long,
53
- pub f_flags: :: c_long,
54
- pub f_spare: [ :: c_long; 5 ] ,
55
- }
56
-
57
43
pub struct statvfs64 {
58
44
pub f_bsize: :: c_ulong,
59
45
pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ pub type c_char = i8;
2
2
pub type wchar_t = i32 ;
3
3
pub type greg_t = i32 ;
4
4
5
+ pub type statfs64 = statfs ;
6
+
5
7
s ! {
6
8
pub struct sigaction {
7
9
pub sa_sigaction: :: sighandler_t,
@@ -151,21 +153,6 @@ s! {
151
153
__pad3: i32 ,
152
154
}
153
155
154
- pub struct statfs64 {
155
- pub f_type: :: __fsword_t,
156
- pub f_bsize: :: __fsword_t,
157
- pub f_blocks: u64 ,
158
- pub f_bfree: u64 ,
159
- pub f_bavail: u64 ,
160
- pub f_files: u64 ,
161
- pub f_ffree: u64 ,
162
- pub f_fsid: :: fsid_t,
163
- pub f_namelen: :: __fsword_t,
164
- pub f_frsize: :: __fsword_t,
165
- pub f_flags: :: __fsword_t,
166
- pub f_spare: [ :: __fsword_t; 4 ] ,
167
- }
168
-
169
156
pub struct statvfs64 {
170
157
pub f_bsize: :: c_ulong,
171
158
pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ pub type suseconds_t = i64;
9
9
pub type __u64 = :: c_ulonglong ;
10
10
pub type __s64 = :: c_longlong ;
11
11
12
+ pub type statfs64 = statfs ;
13
+
12
14
s ! {
13
15
pub struct sigaction {
14
16
pub sa_sigaction: :: sighandler_t,
@@ -114,21 +116,6 @@ s! {
114
116
__reserved: [ i64 ; 3 ] ,
115
117
}
116
118
117
- pub struct statfs64 {
118
- pub f_type: :: __fsword_t,
119
- pub f_bsize: :: __fsword_t,
120
- pub f_blocks: u64 ,
121
- pub f_bfree: u64 ,
122
- pub f_bavail: u64 ,
123
- pub f_files: u64 ,
124
- pub f_ffree: u64 ,
125
- pub f_fsid: :: fsid_t,
126
- pub f_namelen: :: __fsword_t,
127
- pub f_frsize: :: __fsword_t,
128
- pub f_flags: :: __fsword_t,
129
- pub f_spare: [ :: __fsword_t; 4 ] ,
130
- }
131
-
132
119
pub struct statvfs64 {
133
120
pub f_bsize: :: c_ulong,
134
121
pub f_frsize: :: c_ulong,
You can’t perform that action at this time.
0 commit comments