f1393252bbdad837c97b794c8534328a9c912ee3
[linux-3.10.git] / arch / powerpc / include / asm / posix_types.h
1 #ifndef _ASM_POWERPC_POSIX_TYPES_H
2 #define _ASM_POWERPC_POSIX_TYPES_H
3
4 /*
5  * This file is generally used by user-level software, so you need to
6  * be a little careful about namespace pollution etc.  Also, we cannot
7  * assume GCC is being used.
8  */
9
10 #ifdef __powerpc64__
11 typedef unsigned long   __kernel_old_dev_t;
12 #define __kernel_old_dev_t __kernel_old_dev_t
13 #else
14 typedef unsigned int    __kernel_size_t;
15 typedef int             __kernel_ssize_t;
16 typedef long            __kernel_ptrdiff_t;
17 #define __kernel_size_t __kernel_size_t
18
19 typedef unsigned short  __kernel_nlink_t;
20 #define __kernel_nlink_t __kernel_nlink_t
21
22 typedef short           __kernel_ipc_pid_t;
23 #define __kernel_ipc_pid_t __kernel_ipc_pid_t
24 #endif
25
26 #include <asm-generic/posix_types.h>
27
28 #endif /* _ASM_POWERPC_POSIX_TYPES_H */