Revision a4c075f1 linux-user/syscall_defs.h

b/linux-user/syscall_defs.h
58 58
#endif
59 59

  
60 60
#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_SH4) \
61
    || defined(TARGET_M68K) || defined(TARGET_CRIS) || defined(TARGET_UNICORE32)
61
    || defined(TARGET_M68K) || defined(TARGET_CRIS) || defined(TARGET_UNICORE32) \
62
    || defined(TARGET_S390X)
62 63

  
63 64
#define TARGET_IOC_SIZEBITS	14
64 65
#define TARGET_IOC_DIRBITS	2
......
321 322
#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_SPARC) \
322 323
    || defined(TARGET_PPC) || defined(TARGET_MIPS) || defined(TARGET_SH4) \
323 324
    || defined(TARGET_M68K) || defined(TARGET_ALPHA) || defined(TARGET_CRIS) \
324
    || defined(TARGET_MICROBLAZE) || defined(TARGET_UNICORE32)
325
    || defined(TARGET_MICROBLAZE) || defined(TARGET_UNICORE32) \
326
    || defined(TARGET_S390X)
325 327

  
326 328
#if defined(TARGET_SPARC)
327 329
#define TARGET_SA_NOCLDSTOP    8u
......
1688 1690

  
1689 1691
  	abi_long	__unused[3];
1690 1692
};
1693
#elif defined(TARGET_S390X)
1694
struct target_stat {
1695
    abi_ulong  st_dev;
1696
    abi_ulong  st_ino;
1697
    abi_ulong  st_nlink;
1698
    unsigned int   st_mode;
1699
    unsigned int   st_uid;
1700
    unsigned int   st_gid;
1701
    unsigned int   __pad1;
1702
    abi_ulong  st_rdev;
1703
    abi_ulong  st_size;
1704
    abi_ulong  target_st_atime;
1705
    abi_ulong  target_st_atime_nsec;
1706
    abi_ulong  target_st_mtime;
1707
    abi_ulong  target_st_mtime_nsec;
1708
    abi_ulong  target_st_ctime;
1709
    abi_ulong  target_st_ctime_nsec;
1710
    abi_ulong  st_blksize;
1711
    abi_long       st_blocks;
1712
    abi_ulong  __unused[3];
1713
};
1691 1714
#else
1692 1715
#error unsupported CPU
1693 1716
#endif
......
1774 1797
	abi_long f_frsize;
1775 1798
	abi_long f_spare[5];
1776 1799
};
1800
#elif defined(TARGET_S390X)
1801
struct target_statfs {
1802
    int32_t  f_type;
1803
    int32_t  f_bsize;
1804
    abi_long f_blocks;
1805
    abi_long f_bfree;
1806
    abi_long f_bavail;
1807
    abi_long f_files;
1808
    abi_long f_ffree;
1809
    kernel_fsid_t f_fsid;
1810
    int32_t  f_namelen;
1811
    int32_t  f_frsize;
1812
    int32_t  f_spare[5];
1813
};
1814

  
1815
struct target_statfs64 {
1816
    int32_t  f_type;
1817
    int32_t  f_bsize;
1818
    abi_long f_blocks;
1819
    abi_long f_bfree;
1820
    abi_long f_bavail;
1821
    abi_long f_files;
1822
    abi_long f_ffree;
1823
    kernel_fsid_t f_fsid;
1824
    int32_t  f_namelen;
1825
    int32_t  f_frsize;
1826
    int32_t  f_spare[5];
1827
};
1777 1828
#else
1778 1829
struct target_statfs {
1779 1830
	uint32_t f_type;

Also available in: Unified diff