GNU Linux-libre 4.14.332-gnu1
[releases.git] / arch / xtensa / include / uapi / asm / posix_types.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * include/asm-xtensa/posix_types.h
4  *
5  * This file is subject to the terms and conditions of the GNU General Public
6  * License.  See the file "COPYING" in the main directory of this archive
7  * for more details.
8  *
9  * Largely copied from include/asm-ppc/posix_types.h
10  *
11  * Copyright (C) 2001 - 2005 Tensilica Inc.
12  */
13
14 #ifndef _XTENSA_POSIX_TYPES_H
15 #define _XTENSA_POSIX_TYPES_H
16
17 /*
18  * This file is generally used by user-level software, so you need to
19  * be a little careful about namespace pollution etc.  Also, we cannot
20  * assume GCC is being used.
21  */
22
23 typedef unsigned short  __kernel_ipc_pid_t;
24 #define __kernel_ipc_pid_t __kernel_ipc_pid_t
25
26 typedef unsigned int    __kernel_size_t;
27 typedef int             __kernel_ssize_t;
28 typedef long            __kernel_ptrdiff_t;
29 #define __kernel_size_t __kernel_size_t
30
31 typedef unsigned short  __kernel_old_uid_t;
32 typedef unsigned short  __kernel_old_gid_t;
33 #define __kernel_old_uid_t __kernel_old_uid_t
34
35 typedef unsigned short  __kernel_old_dev_t;
36 #define __kernel_old_dev_t __kernel_old_dev_t
37
38 #include <asm-generic/posix_types.h>
39
40 #endif /* _XTENSA_POSIX_TYPES_H */