Skip to content

Commit

Permalink
gnu: Add f_flags to struct statfs for arm, mips, powerpc and x86
Browse files Browse the repository at this point in the history
(backport <rust-lang#3663>)
(cherry picked from commit 12e3a0b)
  • Loading branch information
snogge authored and tgross35 committed Nov 17, 2024
1 parent ab0819b commit 0591159
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/unix/linux_like/linux/gnu/b32/arm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ s! {

pub f_namelen: ::__fsword_t,
pub f_frsize: ::__fsword_t,
f_spare: [::__fsword_t; 5],
pub f_flags: ::__fsword_t,
f_spare: [::__fsword_t; 4],
}

pub struct flock {
Expand Down
3 changes: 2 additions & 1 deletion src/unix/linux_like/linux/gnu/b32/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ s! {
pub f_fsid: ::fsid_t,

pub f_namelen: ::c_long,
f_spare: [::c_long; 6],
pub f_flags: ::c_long,
f_spare: [::c_long; 5],
}

pub struct statfs64 {
Expand Down
3 changes: 2 additions & 1 deletion src/unix/linux_like/linux/gnu/b32/powerpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ s! {

pub f_namelen: ::__fsword_t,
pub f_frsize: ::__fsword_t,
f_spare: [::__fsword_t; 5],
pub f_flags: ::__fsword_t,
f_spare: [::__fsword_t; 4],
}

pub struct flock {
Expand Down
3 changes: 2 additions & 1 deletion src/unix/linux_like/linux/gnu/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ s! {

pub f_namelen: ::__fsword_t,
pub f_frsize: ::__fsword_t,
f_spare: [::__fsword_t; 5],
pub f_flags: ::__fsword_t,
f_spare: [::__fsword_t; 4],
}

pub struct flock {
Expand Down

0 comments on commit 0591159

Please sign in to comment.