]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/syscall_defs.h
x86_64 linux user emulation
[mirror_qemu.git] / linux-user / syscall_defs.h
index 333977aa9f157130cee546bc199cbb278a9db561..c5d15a6f940ad7189b47b3aeded49807767ef8be 100644 (file)
@@ -881,7 +881,7 @@ struct target_winsize {
 #define TARGET_MAP_NONBLOCK    0x10000         /* do not block on IO */
 #endif
 
-#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_CRIS)
+#if (defined(TARGET_I386) && defined(TARGET_ABI32)) || defined(TARGET_ARM) || defined(TARGET_CRIS)
 struct target_stat {
        unsigned short st_dev;
        unsigned short __pad1;
@@ -1474,6 +1474,30 @@ struct target_stat64 {
        unsigned long long      st_ino;
 };
 
+#elif defined(TARGET_I386) && !defined(TARGET_ABI32)
+struct target_stat {
+       abi_ulong       st_dev;
+       abi_ulong       st_ino;
+       abi_ulong       st_nlink;
+
+       unsigned int    st_mode;
+       unsigned int    st_uid;
+       unsigned int    st_gid;
+       unsigned int    __pad0;
+       abi_ulong       st_rdev;
+       abi_long        st_size;
+       abi_long        st_blksize;
+       abi_long        st_blocks;      /* Number 512-byte blocks allocated. */
+
+       abi_ulong       target_st_atime;
+       abi_ulong       target_st_atime_nsec; 
+       abi_ulong       target_st_mtime;
+       abi_ulong       target_st_mtime_nsec;
+       abi_ulong       target_st_ctime;
+       abi_ulong       target_st_ctime_nsec;
+
+       abi_long        __unused[3];
+};
 #else
 #error unsupported CPU
 #endif