diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-14 21:13:21 (GMT) |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-20 20:48:47 (GMT) |
commit | 1f5e27a90add2fe2a1c11508f68d377e3ddcf9ab (patch) | |
tree | 66172218a9ec03f7246714cc1fa08b49c816977c /arch/x86/include/asm/posix_types_x32.h | |
parent | afead38d011ab2f333d12ebb6752ed9baa53b667 (diff) | |
download | linux-1f5e27a90add2fe2a1c11508f68d377e3ddcf9ab.tar.xz |
x32: Create posix_types_x32.h
This is the same as the 64-bit posix_types.h, except that
__kernel_[u]long_t is defined to be [unsigned] long long and therefore
64 bits.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/posix_types_x32.h')
-rw-r--r-- | arch/x86/include/asm/posix_types_x32.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/include/asm/posix_types_x32.h b/arch/x86/include/asm/posix_types_x32.h new file mode 100644 index 0000000..85f9bda --- /dev/null +++ b/arch/x86/include/asm/posix_types_x32.h @@ -0,0 +1,19 @@ +#ifndef _ASM_X86_POSIX_TYPES_X32_H +#define _ASM_X86_POSIX_TYPES_X32_H + +/* + * This file is only used by user-level software, so you need to + * be a little careful about namespace pollution etc. Also, we cannot + * assume GCC is being used. + * + * These types should generally match the ones used by the 64-bit kernel, + * + */ + +typedef long long __kernel_long_t; +typedef unsigned long long __kernel_ulong_t; +#define __kernel_long_t __kernel_long_t + +#include <asm/posix_types_64.h> + +#endif /* _ASM_X86_POSIX_TYPES_X32_H */ |