diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-28 22:28:41 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-28 22:28:41 +0000 |
commit | 56c8f68f1d2e45ad740de8c01780c7a4830d2098 (patch) | |
tree | 4e459f5e7b56edd3f1a0cd332876fd7cf5067f24 /linux-user/syscall_defs.h | |
parent | c960bde13c2f9c807beb1c4e8c16cfde769e136a (diff) |
statfs fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1680 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall_defs.h')
-rw-r--r-- | linux-user/syscall_defs.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index ac12b52eeb..68f7e7f017 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1102,6 +1102,68 @@ struct target_stat64 { #error unsupported CPU #endif +#ifdef TARGET_MIPS +struct target_statfs { + target_long f_type; + target_long f_bsize; + target_long f_frsize; /* Fragment size - unsupported */ + target_long f_blocks; + target_long f_bfree; + target_long f_files; + target_long f_ffree; + target_long f_bavail; + + /* Linux specials */ + int f_fsid; + target_long f_namelen; + target_long f_spare[6]; +}; + +struct target_statfs64 { + uint32_t f_type; + uint32_t f_bsize; + uint32_t f_frsize; /* Fragment size - unsupported */ + uint32_t __pad; + uint64_t f_blocks; + uint64_t f_bfree; + uint64_t f_files; + uint64_t f_ffree; + uint64_t f_bavail; + int f_fsid; + uint32_t f_namelen; + uint32_t f_spare[6]; +}; +#else +struct target_statfs { + uint32_t f_type; + uint32_t f_bsize; + uint32_t f_blocks; + uint32_t f_bfree; + uint32_t f_bavail; + uint32_t f_files; + uint32_t f_ffree; + int f_fsid; + uint32_t f_namelen; + uint32_t f_frsize; + uint32_t f_spare[5]; +}; + +struct target_statfs64 { + 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; + int f_fsid; + uint32_t f_namelen; + uint32_t f_frsize; + uint32_t f_spare[5]; +}; +#endif + + #define TARGET_F_DUPFD 0 /* dup */ #define TARGET_F_GETFD 1 /* get close_on_exec */ #define TARGET_F_SETFD 2 /* set/clear close_on_exec */ |