Skip to content

Commit adaec59

Browse files
snoggetgross35
authored andcommitted
gnu: Add f_flags to struct statfs for arm, mips, powerpc and x86
(backport <rust-lang#3663>) (cherry picked from commit 12e3a0b)
1 parent ad66186 commit adaec59

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ s! {
2222

2323
pub f_namelen: ::__fsword_t,
2424
pub f_frsize: ::__fsword_t,
25-
f_spare: [::__fsword_t; 5],
25+
pub f_flags: ::__fsword_t,
26+
f_spare: [::__fsword_t; 4],
2627
}
2728

2829
pub struct flock {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ s! {
3737
pub f_fsid: ::fsid_t,
3838

3939
pub f_namelen: ::c_long,
40-
f_spare: [::c_long; 6],
40+
pub f_flags: ::c_long,
41+
f_spare: [::c_long; 5],
4142
}
4243

4344
pub struct statfs64 {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ s! {
2222

2323
pub f_namelen: ::__fsword_t,
2424
pub f_frsize: ::__fsword_t,
25-
f_spare: [::__fsword_t; 5],
25+
pub f_flags: ::__fsword_t,
26+
f_spare: [::__fsword_t; 4],
2627
}
2728

2829
pub struct flock {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ s! {
2323

2424
pub f_namelen: ::__fsword_t,
2525
pub f_frsize: ::__fsword_t,
26-
f_spare: [::__fsword_t; 5],
26+
pub f_flags: ::__fsword_t,
27+
f_spare: [::__fsword_t; 4],
2728
}
2829

2930
pub struct flock {

0 commit comments

Comments
 (0)