Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
posix_types.h
Go to the documentation of this file.
1 /* MN10300 POSIX types
2  *
3  * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
4  * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public Licence
8  * as published by the Free Software Foundation; either version
9  * 2 of the Licence, or (at your option) any later version.
10  */
11 #ifndef _ASM_POSIX_TYPES_H
12 #define _ASM_POSIX_TYPES_H
13 
14 /*
15  * This file is generally used by user-level software, so you need to
16  * be a little careful about namespace pollution etc. Also, we cannot
17  * assume GCC is being used.
18  */
19 
20 typedef unsigned short __kernel_mode_t;
21 #define __kernel_mode_t __kernel_mode_t
22 
23 typedef unsigned short __kernel_ipc_pid_t;
24 #define __kernel_ipc_pid_t __kernel_ipc_pid_t
25 
26 typedef unsigned short __kernel_uid_t;
27 typedef unsigned short __kernel_gid_t;
28 #define __kernel_uid_t __kernel_uid_t
29 
30 #if __GNUC__ == 4
31 typedef unsigned int __kernel_size_t;
32 typedef signed int __kernel_ssize_t;
33 #else
34 typedef unsigned long __kernel_size_t;
35 typedef signed long __kernel_ssize_t;
36 #endif
37 typedef int __kernel_ptrdiff_t;
38 #define __kernel_size_t __kernel_size_t
39 
40 typedef unsigned short __kernel_old_dev_t;
41 #define __kernel_old_dev_t __kernel_old_dev_t
42 
44 
45 #endif /* _ASM_POSIX_TYPES_H */