Merge branch 'akpm' (Andrew's patch-bomb)
[linux-3.10.git] / arch / s390 / include / uapi / asm / posix_types.h
1 /*
2  *  S390 version
3  *
4  */
5
6 #ifndef __ARCH_S390_POSIX_TYPES_H
7 #define __ARCH_S390_POSIX_TYPES_H
8
9 /*
10  * This file is generally used by user-level software, so you need to
11  * be a little careful about namespace pollution etc.  Also, we cannot
12  * assume GCC is being used.
13  */
14
15 typedef unsigned long   __kernel_size_t;
16 typedef long            __kernel_ssize_t;
17 #define __kernel_size_t __kernel_size_t
18
19 typedef unsigned short  __kernel_old_dev_t;
20 #define __kernel_old_dev_t __kernel_old_dev_t
21
22 #ifndef __s390x__
23
24 typedef unsigned long   __kernel_ino_t;
25 typedef unsigned short  __kernel_mode_t;
26 typedef unsigned short  __kernel_ipc_pid_t;
27 typedef unsigned short  __kernel_uid_t;
28 typedef unsigned short  __kernel_gid_t;
29 typedef int             __kernel_ptrdiff_t;
30
31 #else /* __s390x__ */
32
33 typedef unsigned int    __kernel_ino_t;
34 typedef unsigned int    __kernel_mode_t;
35 typedef int             __kernel_ipc_pid_t;
36 typedef unsigned int    __kernel_uid_t;
37 typedef unsigned int    __kernel_gid_t;
38 typedef long            __kernel_ptrdiff_t;
39 typedef unsigned long   __kernel_sigset_t;      /* at least 32 bits */
40
41 #endif /* __s390x__ */
42
43 #define __kernel_ino_t  __kernel_ino_t
44 #define __kernel_mode_t __kernel_mode_t
45 #define __kernel_ipc_pid_t __kernel_ipc_pid_t
46 #define __kernel_uid_t __kernel_uid_t
47 #define __kernel_gid_t __kernel_gid_t
48
49 #include <asm-generic/posix_types.h>
50
51 #endif