Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

include/asm-sparc64/types.h

Go to the documentation of this file.
00001 /* $Id: types.h,v 1.2 1997/12/22 13:28:33 mj Exp $ */
00002 #ifndef _SPARC64_TYPES_H
00003 #define _SPARC64_TYPES_H
00004 
00005 /*
00006  * This file is never included by application software unless
00007  * explicitly requested (e.g., via linux/types.h) in which case the
00008  * application is Linux specific so (user-) name space pollution is
00009  * not a major issue.  However, for interoperability, libraries still
00010  * need to be careful to avoid a name clashes.
00011  */
00012 
00013 typedef unsigned short umode_t;
00014 
00015 /*
00016  * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the
00017  * header files exported to user space.
00018  */
00019 
00020 typedef __signed__ char __s8;
00021 typedef unsigned char __u8;
00022 
00023 typedef __signed__ short __s16;
00024 typedef unsigned short __u16;
00025 
00026 typedef __signed__ int __s32;
00027 typedef unsigned int __u32;
00028 
00029 typedef __signed__ long __s64;
00030 typedef unsigned long __u64;
00031 
00032 #ifdef __KERNEL__
00033 
00034 typedef __signed__ char s8;
00035 typedef unsigned char u8;
00036 
00037 typedef __signed__ short s16;
00038 typedef unsigned short u16;
00039 
00040 typedef __signed__ int s32;
00041 typedef unsigned int u32;
00042 
00043 typedef __signed__ long s64;
00044 typedef unsigned long u64;
00045 
00046 #define BITS_PER_LONG 64
00047 
00048 #endif /* __KERNEL__ */
00049 
00050 #endif /* defined(_SPARC64_TYPES_H) */