root/include/asm-sparc/types.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _SPARC_TYPES_H
   2 #define _SPARC_TYPES_H
   3 
   4 /*
   5  * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the
   6  * header files exported to user space   <-- Linus sez this
   7  */
   8 
   9 /* NOTE: I will have to change these when the V9 sparcs come into play,
  10  *       however this won't be for a while.
  11  */
  12 
  13 #ifndef _SIZE_T
  14 #define _SIZE_T
  15 #ifdef __svr4__
  16 typedef unsigned int size_t;      /* solaris sucks */
  17 #else
  18 typedef long unsigned int size_t; /* sunos is much better */
  19 #endif /* !(__svr4__) */
  20 #endif
  21 
  22 #ifndef _SSIZE_T
  23 #define _SSIZE_T
  24 typedef int ssize_t;
  25 #endif
  26 
  27 #ifndef _PTRDIFF_T
  28 #define _PTRDIFF_T
  29 typedef int ptrdiff_t;
  30 #endif
  31 
  32 typedef signed char __s8;
  33 typedef unsigned char __u8;
  34 
  35 typedef signed short __s16;
  36 typedef unsigned short __u16;
  37 
  38 typedef signed int __s32;
  39 typedef unsigned int __u32;
  40 
  41 /* Only 32-bit sparcs for now so.... */
  42 
  43 typedef signed long long __s64;
  44 typedef unsigned long long __u64;
  45 
  46 #ifdef __KERNEL__
  47 
  48 typedef signed char s8;
  49 typedef unsigned char u8;
  50 
  51 typedef signed short s16;
  52 typedef unsigned short u16;
  53 
  54 typedef signed int s32;
  55 typedef unsigned int u32;
  56 
  57 /* Again, only have to worry about 32-bits */
  58 
  59 typedef signed long long s64;
  60 typedef unsigned long long u64;
  61 
  62 #endif /* __KERNEL__ */
  63 
  64 #endif /* defined(_SPARC_TYPES_H) */

/* [previous][next][first][last][top][bottom][index][help] */