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) {
33393339
33403340 // In MUSL `flock64` is a typedef to `flock`.
33413341 "flock64" if musl => format ! ( "struct {}" , ty) ,
3342+ // In some gnu targets `stat64` is a typedef to `stat`
3343+ "statfs64" if gnu => format ! ( "struct {}" , ty) ,
33423344
33433345 // put `struct` in front of all structs:.
33443346 t if is_struct => format ! ( "struct {}" , t) ,
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type wchar_t = u32 ;
33
4+ pub type statfs64 = statfs ;
5+
46s ! {
57 pub struct sigaction {
68 pub sa_sigaction: :: sighandler_t,
7476 pub st_ctime_nsec: :: c_long,
7577 }
7678
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-
9279 pub struct statvfs64 {
9380 pub f_bsize: :: c_ulong,
9481 pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change 11pub type c_char = i8 ;
22pub type wchar_t = i32 ;
33
4+ pub type statfs64 = statfs ;
45s ! {
56 pub struct stat64 {
67 pub st_dev: :: dev_t,
3940 f_spare: [ :: c_long; 6 ] ,
4041 }
4142
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-
5743 pub struct statvfs64 {
5844 pub f_bsize: :: c_ulong,
5945 pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ pub type c_char = i8;
22pub type wchar_t = i32 ;
33pub type greg_t = i32 ;
44
5+ pub type statfs64 = statfs ;
6+
57s ! {
68 pub struct sigaction {
79 pub sa_sigaction: :: sighandler_t,
@@ -151,21 +153,6 @@ s! {
151153 __pad3: i32 ,
152154 }
153155
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-
169156 pub struct statvfs64 {
170157 pub f_bsize: :: c_ulong,
171158 pub f_frsize: :: c_ulong,
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ pub type suseconds_t = i64;
99pub type __u64 = :: c_ulonglong ;
1010pub type __s64 = :: c_longlong ;
1111
12+ pub type statfs64 = statfs ;
13+
1214s ! {
1315 pub struct sigaction {
1416 pub sa_sigaction: :: sighandler_t,
@@ -114,21 +116,6 @@ s! {
114116 __reserved: [ i64 ; 3 ] ,
115117 }
116118
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-
132119 pub struct statvfs64 {
133120 pub f_bsize: :: c_ulong,
134121 pub f_frsize: :: c_ulong,
You can’t perform that action at this time.
0 commit comments