]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/mn10300/include/uapi/asm/posix_types.h
Merge remote-tracking branches 'asoc/topic/dwc', 'asoc/topic/fallthrough', 'asoc...
[mirror_ubuntu-bionic-kernel.git] / arch / mn10300 / include / uapi / asm / posix_types.h
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /* MN10300 POSIX types
3 *
4 * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
5 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public Licence
9 * as published by the Free Software Foundation; either version
10 * 2 of the Licence, or (at your option) any later version.
11 */
12 #ifndef _ASM_POSIX_TYPES_H
13 #define _ASM_POSIX_TYPES_H
14
15 /*
16 * This file is generally used by user-level software, so you need to
17 * be a little careful about namespace pollution etc. Also, we cannot
18 * assume GCC is being used.
19 */
20
21 typedef unsigned short __kernel_mode_t;
22 #define __kernel_mode_t __kernel_mode_t
23
24 typedef unsigned short __kernel_ipc_pid_t;
25 #define __kernel_ipc_pid_t __kernel_ipc_pid_t
26
27 typedef unsigned short __kernel_uid_t;
28 typedef unsigned short __kernel_gid_t;
29 #define __kernel_uid_t __kernel_uid_t
30
31 #if __GNUC__ == 4
32 typedef unsigned int __kernel_size_t;
33 typedef signed int __kernel_ssize_t;
34 #else
35 typedef unsigned long __kernel_size_t;
36 typedef signed long __kernel_ssize_t;
37 #endif
38 typedef int __kernel_ptrdiff_t;
39 #define __kernel_size_t __kernel_size_t
40
41 typedef unsigned short __kernel_old_dev_t;
42 #define __kernel_old_dev_t __kernel_old_dev_t
43
44 #include <asm-generic/posix_types.h>
45
46 #endif /* _ASM_POSIX_TYPES_H */