e2k: Update target_stat and target_statfs structs.

This commit is contained in:
Denis Drakhnia 2021-01-04 23:37:42 +02:00 committed by Denis Drakhnia
parent 6633770b16
commit 10f960328a
1 changed files with 63 additions and 40 deletions

View File

@ -1555,50 +1555,43 @@ struct target_stat64 {
#elif defined(TARGET_E2K) #elif defined(TARGET_E2K)
#define TARGET_STAT_HAVE_NSEC #define TARGET_STAT_HAVE_NSEC
struct target_stat { struct target_stat {
unsigned long st_dev; abi_uint st_dev;
unsigned long st_ino; abi_ulong st_ino;
unsigned int st_mode; abi_uint st_mode;
unsigned int st_nlink; abi_uint st_nlink;
unsigned int st_uid; abi_uint st_uid;
unsigned int st_gid; abi_uint st_gid;
unsigned long st_rdev; abi_uint st_rdev;
unsigned long __pad1; abi_long st_size;
long st_size; abi_long st_blksize;
int st_blksize; abi_long st_blocks;
int __pad2; abi_long target_st_atime;
long st_blocks; abi_ulong target_st_atime_nsec;
int target_st_atime; abi_long target_st_mtime;
unsigned int target_st_atime_nsec; abi_ulong target_st_mtime_nsec;
int target_st_mtime; abi_long target_st_ctime;
unsigned int target_st_mtime_nsec; abi_ulong target_st_ctime_nsec;
int target_st_ctime;
unsigned int target_st_ctime_nsec;
unsigned int __unused4;
unsigned int __unused5;
}; };
#define TARGET_HAS_STRUCT_STAT64 #define TARGET_HAS_STRUCT_STAT64
struct target_stat64 { struct target_stat64 {
unsigned long long st_dev; abi_ulong st_dev;
unsigned long long st_ino; abi_ulong st_ino;
unsigned int st_mode; abi_uint st_mode;
unsigned int st_nlink; abi_uint st_nlink;
unsigned int st_uid; abi_uint st_uid;
unsigned int st_gid; abi_uint st_gid;
unsigned long long st_rdev; abi_ulong st_rdev;
unsigned long long __pad0; abi_ulong st_size;
long long st_size; abi_uint st_blksize;
int st_blksize; abi_uint __unused1;
int __pad1; abi_ulong st_blocks;
long long st_blocks; abi_int target_st_atime;
int target_st_atime; abi_uint target_st_atime_nsec;
unsigned int target_st_atime_nsec; abi_int target_st_mtime;
int target_st_mtime; abi_uint target_st_mtime_nsec;
unsigned int target_st_mtime_nsec; abi_int target_st_ctime;
int target_st_ctime; abi_uint target_st_ctime_nsec;
unsigned int target_st_ctime_nsec;
unsigned int __unused4;
unsigned int __unused5;
}; };
#elif defined(TARGET_PPC) #elif defined(TARGET_PPC)
@ -2368,6 +2361,36 @@ struct target_statfs64 {
int32_t f_flags; int32_t f_flags;
int32_t f_spare[4]; int32_t f_spare[4];
}; };
#elif defined(TARGET_E2K)
struct target_statfs {
abi_long f_type;
abi_long f_bsize;
abi_ulong f_blocks;
abi_ulong f_bfree;
abi_ulong f_bavail;
abi_ulong f_files;
abi_ulong f_ffree;
target_fsid_t f_fsid;
abi_long f_namelen;
abi_long f_frsize;
abi_long f_flags;
abi_long f_spare[4];
};
struct target_statfs64 {
abi_long f_type;
abi_long f_bsize;
abi_ullong f_blocks;
abi_ullong f_bfree;
abi_ullong f_bavail;
abi_ullong f_files;
abi_ullong f_ffree;
target_fsid_t f_fsid;
abi_long f_namelen;
abi_long f_frsize;
abi_long f_flags;
abi_long f_spare[4];
};
#else #else
struct target_statfs { struct target_statfs {
uint32_t f_type; uint32_t f_type;