Skip to content

Commit 5e37553

Browse files
committed
Fix statfs
1 parent f21d91f commit 5e37553

File tree

11 files changed

+157
-55
lines changed

11 files changed

+157
-55
lines changed

src/unix/linux_like/linux/gnu/b32/arm.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ s! {
99
pub sa_restorer: ::Option<extern fn()>,
1010
}
1111

12+
pub struct statfs {
13+
pub f_type: __fsword_t,
14+
pub f_bsize: __fsword_t,
15+
pub f_blocks: ::fsblkcnt_t,
16+
pub f_bfree: ::fsblkcnt_t,
17+
pub f_bavail: ::fsblkcnt_t,
18+
19+
pub f_files: ::fsfilcnt_t,
20+
pub f_ffree: ::fsfilcnt_t,
21+
pub f_fsid: ::fsid_t,
22+
23+
pub f_namelen: __fsword_t,
24+
pub f_frsize: __fsword_t,
25+
f_spare: [__fsword_t; 5],
26+
}
27+
1228
pub struct flock {
1329
pub l_type: ::c_short,
1430
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b32/mips.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ s! {
2525
st_pad5: [::c_long; 14],
2626
}
2727

28+
pub struct statfs {
29+
pub f_type: ::c_long,
30+
pub f_bsize: ::c_long,
31+
pub f_frsize: ::c_long,
32+
pub f_blocks: ::fsblkcnt_t,
33+
pub f_bfree: ::fsblkcnt_t,
34+
pub f_files: ::fsblkcnt_t,
35+
pub f_ffree: ::fsblkcnt_t,
36+
pub f_bavail: ::fsblkcnt_t,
37+
pub f_fsid: ::fsid_t,
38+
39+
pub f_namelen: ::c_long,
40+
f_spare: [::c_long; 6],
41+
}
42+
2843
pub struct statfs64 {
2944
pub f_type: ::c_long,
3045
pub f_bsize: ::c_long,

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ s! {
99
pub sa_restorer: ::Option<extern fn()>,
1010
}
1111

12+
pub struct statfs {
13+
pub f_type: __fsword_t,
14+
pub f_bsize: __fsword_t,
15+
pub f_blocks: ::fsblkcnt_t,
16+
pub f_bfree: ::fsblkcnt_t,
17+
pub f_bavail: ::fsblkcnt_t,
18+
19+
pub f_files: ::fsfilcnt_t,
20+
pub f_ffree: ::fsfilcnt_t,
21+
pub f_fsid: ::fsid_t,
22+
23+
pub f_namelen: __fsword_t,
24+
pub f_frsize: __fsword_t,
25+
f_spare: [__fsword_t; 5],
26+
}
27+
1228
pub struct flock {
1329
pub l_type: ::c_short,
1430
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b32/x86.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ s! {
1010
pub sa_restorer: ::Option<extern fn()>,
1111
}
1212

13+
pub struct statfs {
14+
pub f_type: __fsword_t,
15+
pub f_bsize: __fsword_t,
16+
pub f_blocks: ::fsblkcnt_t,
17+
pub f_bfree: ::fsblkcnt_t,
18+
pub f_bavail: ::fsblkcnt_t,
19+
20+
pub f_files: ::fsfilcnt_t,
21+
pub f_ffree: ::fsfilcnt_t,
22+
pub f_fsid: ::fsid_t,
23+
24+
pub f_namelen: __fsword_t,
25+
pub f_frsize: __fsword_t,
26+
f_spare: [__fsword_t; 5],
27+
}
28+
1329
pub struct flock {
1430
pub l_type: ::c_short,
1531
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b64/aarch64.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ s! {
2121
pub sa_restorer: ::Option<extern fn()>,
2222
}
2323

24+
pub struct statfs {
25+
pub f_type: __fsword_t,
26+
pub f_bsize: __fsword_t,
27+
pub f_blocks: ::fsblkcnt_t,
28+
pub f_bfree: ::fsblkcnt_t,
29+
pub f_bavail: ::fsblkcnt_t,
30+
31+
pub f_files: ::fsfilcnt_t,
32+
pub f_ffree: ::fsfilcnt_t,
33+
pub f_fsid: ::fsid_t,
34+
35+
pub f_namelen: __fsword_t,
36+
pub f_frsize: __fsword_t,
37+
f_spare: [__fsword_t; 5],
38+
}
39+
2440
pub struct flock {
2541
pub l_type: ::c_short,
2642
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b64/mips64.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ s! {
3434
st_pad5: [::c_long; 7],
3535
}
3636

37+
pub struct statfs {
38+
pub f_type: ::c_long,
39+
pub f_bsize: ::c_long,
40+
pub f_frsize: ::c_long,
41+
pub f_blocks: ::fsblkcnt_t,
42+
pub f_bfree: ::fsblkcnt_t,
43+
pub f_files: ::fsblkcnt_t,
44+
pub f_ffree: ::fsblkcnt_t,
45+
pub f_bavail: ::fsblkcnt_t,
46+
pub f_fsid: ::fsid_t,
47+
48+
pub f_namelen: ::c_long,
49+
f_spare: [::c_long; 6],
50+
}
51+
3752
pub struct flock {
3853
pub l_type: ::c_short,
3954
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b64/powerpc64.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ s! {
2121
pub sa_restorer: ::Option<extern fn()>,
2222
}
2323

24+
pub struct statfs {
25+
pub f_type: __fsword_t,
26+
pub f_bsize: __fsword_t,
27+
pub f_blocks: ::fsblkcnt_t,
28+
pub f_bfree: ::fsblkcnt_t,
29+
pub f_bavail: ::fsblkcnt_t,
30+
31+
pub f_files: ::fsfilcnt_t,
32+
pub f_ffree: ::fsfilcnt_t,
33+
pub f_fsid: ::fsid_t,
34+
35+
pub f_namelen: __fsword_t,
36+
pub f_frsize: __fsword_t,
37+
f_spare: [__fsword_t; 5],
38+
}
39+
2440
pub struct flock {
2541
pub l_type: ::c_short,
2642
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b64/s390x.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ s! {
2121
pub sa_mask: ::sigset_t,
2222
}
2323

24+
pub struct statfs {
25+
pub f_type: ::c_uint,
26+
pub f_bsize: ::c_uint,
27+
pub f_blocks: ::fsblkcnt_t,
28+
pub f_bfree: ::fsblkcnt_t,
29+
pub f_bavail: ::fsblkcnt_t,
30+
pub f_files: ::fsfilcnt_t,
31+
pub f_ffree: ::fsfilcnt_t,
32+
pub f_fsid: ::fsid_t,
33+
pub f_namelen: ::c_uint,
34+
pub f_frsize: ::c_uint,
35+
pub f_flags: ::c_uint,
36+
f_spare: [::c_uint; 4],
37+
}
38+
2439
pub struct flock {
2540
pub l_type: ::c_short,
2641
pub l_whence: ::c_short,

src/unix/linux_like/linux/gnu/b64/sparc64.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ s! {
2121
pub sa_restorer: ::Option<extern fn()>,
2222
}
2323

24+
pub struct statfs {
25+
pub f_type: __fsword_t,
26+
pub f_bsize: __fsword_t,
27+
pub f_blocks: ::fsblkcnt_t,
28+
pub f_bfree: ::fsblkcnt_t,
29+
pub f_bavail: ::fsblkcnt_t,
30+
31+
pub f_files: ::fsfilcnt_t,
32+
pub f_ffree: ::fsfilcnt_t,
33+
pub f_fsid: ::fsid_t,
34+
35+
pub f_namelen: __fsword_t,
36+
pub f_frsize: __fsword_t,
37+
f_spare: [__fsword_t; 5],
38+
}
39+
2440
pub struct siginfo_t {
2541
pub si_signo: ::c_int,
2642
pub si_errno: ::c_int,

src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ s! {
1818
pub sa_restorer: ::Option<extern fn()>,
1919
}
2020

21+
pub struct statfs {
22+
pub f_type: __fsword_t,
23+
pub f_bsize: __fsword_t,
24+
pub f_blocks: ::fsblkcnt_t,
25+
pub f_bfree: ::fsblkcnt_t,
26+
pub f_bavail: ::fsblkcnt_t,
27+
28+
pub f_files: ::fsfilcnt_t,
29+
pub f_ffree: ::fsfilcnt_t,
30+
pub f_fsid: ::fsid_t,
31+
32+
pub f_namelen: __fsword_t,
33+
pub f_frsize: __fsword_t,
34+
f_spare: [__fsword_t; 5],
35+
}
36+
2137
pub struct flock {
2238
pub l_type: ::c_short,
2339
pub l_whence: ::c_short,

0 commit comments

Comments
 (0)