diff options
author | Raghu Gandham <raghu@mips.com> | 2012-08-02 16:50:10 -0700 |
---|---|---|
committer | Raghu Gandham <raghu@mips.com> | 2012-08-02 18:03:54 -0700 |
commit | 6437eac15a5b595ab26ef51834509c44695eb7e4 (patch) | |
tree | b83b9dcd1a4e4f2c78054878fe7b9136761cb95b /libc/include/sys/vfs.h | |
parent | 52f3ee962b384bf247638adb653f0024ce92a895 (diff) | |
download | bionic-6437eac15a5b595ab26ef51834509c44695eb7e4.zip bionic-6437eac15a5b595ab26ef51834509c44695eb7e4.tar.gz bionic-6437eac15a5b595ab26ef51834509c44695eb7e4.tar.bz2 |
MIPS support to sys/ headers
Change-Id: I32207a1d918e4842da341f6b242ae39c69a83b03
Diffstat (limited to 'libc/include/sys/vfs.h')
-rw-r--r-- | libc/include/sys/vfs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/include/sys/vfs.h b/libc/include/sys/vfs.h index 4adaf5f..d14944d 100644 --- a/libc/include/sys/vfs.h +++ b/libc/include/sys/vfs.h @@ -35,6 +35,22 @@ __BEGIN_DECLS /* note: this 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; + __kernel_fsid_t f_fsid; + uint32_t f_namelen; + uint32_t f_spare[6]; +}; +#else struct statfs { uint32_t f_type; uint32_t f_bsize; @@ -48,6 +64,7 @@ struct statfs { uint32_t f_frsize; uint32_t f_spare[5]; }; +#endif #define ADFS_SUPER_MAGIC 0xadf5 #define AFFS_SUPER_MAGIC 0xADFF |