X86: Add a structure to allow mapping between the host and guest fstat formats.
This commit is contained in:
parent
27b751ec46
commit
2fe87e62ba
1 changed files with 22 additions and 0 deletions
|
@ -117,6 +117,28 @@ class X86Linux32 : public Linux
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint64_t st_dev;
|
||||||
|
uint8_t __pad0[4];
|
||||||
|
uint32_t __st_ino;
|
||||||
|
uint32_t st_mode;
|
||||||
|
uint32_t st_nlink;
|
||||||
|
uint32_t st_uid;
|
||||||
|
uint32_t st_gid;
|
||||||
|
uint64_t st_rdev;
|
||||||
|
int64_t st_size;
|
||||||
|
uint8_t __pad3[4];
|
||||||
|
uint32_t st_blksize;
|
||||||
|
uint64_t st_blocks;
|
||||||
|
uint32_t st_atimeX;
|
||||||
|
uint32_t st_atime_nsec;
|
||||||
|
uint32_t st_mtimeX;
|
||||||
|
uint32_t st_mtime_nsec;
|
||||||
|
uint32_t st_ctimeX;
|
||||||
|
uint32_t st_ctime_nsec;
|
||||||
|
uint64_t st_ino;
|
||||||
|
} tgt_stat64;
|
||||||
|
|
||||||
static OpenFlagTransTable openFlagTable[];
|
static OpenFlagTransTable openFlagTable[];
|
||||||
|
|
||||||
static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
|
static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
|
||||||
|
|
Loading…
Reference in a new issue