pre-2.3.4..
[davej-history.git] / include / asm-sparc / types.h
blobb70210ba829546217dda013db771b767c436999c
1 /* $Id: types.h,v 1.11 1997/12/22 13:28:22 mj Exp $ */
2 #ifndef _SPARC_TYPES_H
3 #define _SPARC_TYPES_H
5 /*
6 * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the
7 * header files exported to user space.
8 */
11 * This file is never included by application software unless
12 * explicitly requested (e.g., via linux/types.h) in which case the
13 * application is Linux specific so (user-) name space pollution is
14 * not a major issue. However, for interoperability, libraries still
15 * need to be careful to avoid a name clashes.
18 typedef unsigned short umode_t;
20 typedef __signed__ char __s8;
21 typedef unsigned char __u8;
23 typedef __signed__ short __s16;
24 typedef unsigned short __u16;
26 typedef __signed__ int __s32;
27 typedef unsigned int __u32;
29 typedef __signed__ long long __s64;
30 typedef unsigned long long __u64;
32 #ifdef __KERNEL__
34 typedef __signed__ char s8;
35 typedef unsigned char u8;
37 typedef __signed__ short s16;
38 typedef unsigned short u16;
40 typedef __signed__ int s32;
41 typedef unsigned int u32;
43 typedef __signed__ long long s64;
44 typedef unsigned long long u64;
46 #define BITS_PER_LONG 32
48 #endif /* __KERNEL__ */
50 #endif /* defined(_SPARC_TYPES_H) */