From e4d064fa81cbe009c6aca7accaf7a83ff2b70d63 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 25 Nov 2017 17:58:12 +0100 Subject: statfs.h: add f_flags Add missing member in struct statfs. It is used by xfsprogs (f.e. 4.13.1). Reported-by: Joshua Kinard --- libc/sysdeps/linux/alpha/bits/statfs.h | 6 ++++-- libc/sysdeps/linux/common/bits/statfs.h | 6 ++++-- libc/sysdeps/linux/mips/bits/statfs.h | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/alpha/bits/statfs.h b/libc/sysdeps/linux/alpha/bits/statfs.h index f8b61c722..b63a40526 100644 --- a/libc/sysdeps/linux/alpha/bits/statfs.h +++ b/libc/sysdeps/linux/alpha/bits/statfs.h @@ -41,7 +41,8 @@ struct statfs __fsid_t f_fsid; int f_namelen; int f_frsize; - int f_spare[5]; + int f_flags; + int f_spare[4]; }; #ifdef __USE_LARGEFILE64 @@ -57,7 +58,8 @@ struct statfs64 __fsid_t f_fsid; int f_namelen; int f_frsize; - int f_spare[5]; + int f_flags; + int f_spare[4]; }; #endif diff --git a/libc/sysdeps/linux/common/bits/statfs.h b/libc/sysdeps/linux/common/bits/statfs.h index bb780a81e..ab27f825e 100644 --- a/libc/sysdeps/linux/common/bits/statfs.h +++ b/libc/sysdeps/linux/common/bits/statfs.h @@ -41,7 +41,8 @@ struct statfs __fsid_t f_fsid; __SWORD_TYPE f_namelen; __SWORD_TYPE f_frsize; - __SWORD_TYPE f_spare[5]; + __SWORD_TYPE f_flags; + __SWORD_TYPE f_spare[4]; }; #ifdef __USE_LARGEFILE64 @@ -57,7 +58,8 @@ struct statfs64 __fsid_t f_fsid; __SWORD_TYPE f_namelen; __SWORD_TYPE f_frsize; - __SWORD_TYPE f_spare[5]; + __SWORD_TYPE f_flags; + __SWORD_TYPE f_spare[4]; }; #endif diff --git a/libc/sysdeps/linux/mips/bits/statfs.h b/libc/sysdeps/linux/mips/bits/statfs.h index baa964532..d1c3025c7 100644 --- a/libc/sysdeps/linux/mips/bits/statfs.h +++ b/libc/sysdeps/linux/mips/bits/statfs.h @@ -44,7 +44,8 @@ struct statfs /* Linux specials */ __fsid_t f_fsid; long int f_namelen; - long int f_spare[6]; + long int f_flags; + long int f_spare[5]; }; #ifdef __USE_LARGEFILE64 @@ -63,7 +64,8 @@ struct statfs64 /* Linux specials */ __fsid_t f_fsid; long int f_namelen; - long int f_spare[6]; + long int f_flags; + long int f_spare[5]; }; #endif -- cgit v1.2.3