diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-11-11 15:54:42 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-11-11 15:58:28 +0800 |
commit | e02e042b38d282df98814709a68d40cbcf614216 (patch) | |
tree | 7b4397b72d0afef5d4030209383f2723da918389 /9/platforms/android-14/arch-x86/usr/include/sys/vfs.h | |
parent | 80382fb8411116a733a37ba4f9cc4659427e6894 (diff) | |
download | prebuilts_ndk-e02e042b38d282df98814709a68d40cbcf614216.zip prebuilts_ndk-e02e042b38d282df98814709a68d40cbcf614216.tar.gz prebuilts_ndk-e02e042b38d282df98814709a68d40cbcf614216.tar.bz2 |
Refresh prebuilts/ndk/9/platforms with r9b+, part 1/2
Part 1: modify the existing API level
Change-Id: Ib14a58f8c1d52d7e5ec95a2f3d64077046c6c0fe
Diffstat (limited to '9/platforms/android-14/arch-x86/usr/include/sys/vfs.h')
-rw-r--r-- | 9/platforms/android-14/arch-x86/usr/include/sys/vfs.h | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/9/platforms/android-14/arch-x86/usr/include/sys/vfs.h b/9/platforms/android-14/arch-x86/usr/include/sys/vfs.h index 4adaf5f..4ec0e0d 100644 --- a/9/platforms/android-14/arch-x86/usr/include/sys/vfs.h +++ b/9/platforms/android-14/arch-x86/usr/include/sys/vfs.h @@ -34,20 +34,42 @@ __BEGIN_DECLS -/* note: this corresponds to the kernel's statfs64 type */ +/* The kernel's __kernel_fsid_t has a 'val' member but glibc uses '__val'. */ +typedef struct { int __val[2]; } __fsid_t; + +/* Our struct statfs corresponds to the kernel's statfs64 type. */ +#ifdef __mips__ +struct statfs { + uint32_t f_type; + uint32_t f_bsize; + uint32_t f_frsize; + uint32_t __pad; + uint64_t f_blocks; + uint64_t f_bfree; + uint64_t f_files; + uint64_t f_ffree; + uint64_t f_bavail; + __fsid_t f_fsid; + uint32_t f_namelen; + uint32_t f_flags; + uint32_t f_spare[5]; +}; +#else struct statfs { - uint32_t f_type; - uint32_t f_bsize; - uint64_t f_blocks; - uint64_t f_bfree; - uint64_t f_bavail; - uint64_t f_files; - uint64_t f_ffree; - __kernel_fsid_t f_fsid; - uint32_t f_namelen; - uint32_t f_frsize; - uint32_t f_spare[5]; + uint32_t f_type; + uint32_t f_bsize; + uint64_t f_blocks; + uint64_t f_bfree; + uint64_t f_bavail; + uint64_t f_files; + uint64_t f_ffree; + __fsid_t f_fsid; + uint32_t f_namelen; + uint32_t f_frsize; + uint32_t f_flags; + uint32_t f_spare[4]; }; +#endif #define ADFS_SUPER_MAGIC 0xadf5 #define AFFS_SUPER_MAGIC 0xADFF |