about summary refs log tree commit diff
path: root/arch/mips/bits
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-03-12 15:59:09 +0100
committerSzabolcs Nagy <nsz@port70.net>2014-03-12 18:08:58 +0100
commit7673acd31503016f2af93e187aac98da07af42b4 (patch)
treefeea629c2077acbdc79e49e8114097e31dc2767d /arch/mips/bits
parent3ceb89ed3fb5a43fc267ce818f90f38f55bf4e71 (diff)
downloadmusl-7673acd31503016f2af93e187aac98da07af42b4.tar.gz
musl-7673acd31503016f2af93e187aac98da07af42b4.tar.xz
musl-7673acd31503016f2af93e187aac98da07af42b4.zip
fix statfs struct on mips
The mips statfs struct layout is different than on other archs, so the
statfs, fstatfs, statvfs and fstatvfs APIs were broken on mips.
Now the ordering is fixed, the types are kept consistent with other archs.
Diffstat (limited to 'arch/mips/bits')
-rw-r--r--arch/mips/bits/statfs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/mips/bits/statfs.h b/arch/mips/bits/statfs.h
index f103f4e4..a73bd547 100644
--- a/arch/mips/bits/statfs.h
+++ b/arch/mips/bits/statfs.h
@@ -1,7 +1,8 @@
 struct statfs {
-	unsigned long f_type, f_bsize;
-	fsblkcnt_t f_blocks, f_bfree, f_bavail;
+	unsigned long f_type, f_bsize, f_frsize;
+	fsblkcnt_t f_blocks, f_bfree;
 	fsfilcnt_t f_files, f_ffree;
+	fsblkcnt_t f_bavail;
 	fsid_t f_fsid;
-	unsigned long f_namelen, f_frsize, f_flags, f_spare[4];
+	unsigned long f_namelen, f_flags, f_spare[5];
 };