From e7550a1dfb9ffaeb42c248b4384eafed036b37f2 Mon Sep 17 00:00:00 2001 From: Ola x Nilsson Date: Tue, 23 Apr 2024 10:54:22 +0200 Subject: [PATCH] gnu: Add f_flags to struct statfs for arm, powerpc and x86 --- src/unix/linux_like/linux/gnu/b32/mips/mod.rs | 3 ++- src/unix/linux_like/linux/gnu/b32/powerpc.rs | 3 ++- src/unix/linux_like/linux/gnu/b32/x86/mod.rs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/unix/linux_like/linux/gnu/b32/mips/mod.rs b/src/unix/linux_like/linux/gnu/b32/mips/mod.rs index 8f5ed0f348459..6f9560334c164 100644 --- a/src/unix/linux_like/linux/gnu/b32/mips/mod.rs +++ b/src/unix/linux_like/linux/gnu/b32/mips/mod.rs @@ -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 { diff --git a/src/unix/linux_like/linux/gnu/b32/powerpc.rs b/src/unix/linux_like/linux/gnu/b32/powerpc.rs index dd5732e0dcc14..0b0c779c4d7c7 100644 --- a/src/unix/linux_like/linux/gnu/b32/powerpc.rs +++ b/src/unix/linux_like/linux/gnu/b32/powerpc.rs @@ -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 { diff --git a/src/unix/linux_like/linux/gnu/b32/x86/mod.rs b/src/unix/linux_like/linux/gnu/b32/x86/mod.rs index 2acac7fb7ad43..8e206b114cd3a 100644 --- a/src/unix/linux_like/linux/gnu/b32/x86/mod.rs +++ b/src/unix/linux_like/linux/gnu/b32/x86/mod.rs @@ -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 {