root/include/asm-alpha/types.h

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

INCLUDED FROM


   1 #ifndef _ALPHA_TYPES_H
   2 #define _ALPHA_TYPES_H
   3 
   4 #ifndef _SIZE_T
   5 #define _SIZE_T
   6 typedef unsigned long size_t;
   7 #endif
   8 
   9 #ifndef _SSIZE_T
  10 #define _SSIZE_T
  11 typedef long ssize_t;
  12 #endif
  13 
  14 #ifndef _PTRDIFF_T
  15 #define _PTRDIFF_T
  16 typedef long ptrdiff_t;
  17 #endif
  18 
  19 #ifndef _TIME_T
  20 #define _TIME_T
  21 typedef long time_t;
  22 #endif
  23 
  24 #ifndef _CLOCK_T
  25 #define _CLOCK_T
  26 typedef long clock_t;
  27 #endif
  28 
  29 typedef int pid_t;
  30 typedef unsigned int uid_t;
  31 typedef unsigned int gid_t;
  32 typedef unsigned int dev_t;
  33 typedef unsigned int ino_t;
  34 typedef unsigned int mode_t;
  35 typedef unsigned int umode_t;
  36 typedef unsigned short nlink_t;
  37 typedef int daddr_t;
  38 typedef long off_t;
  39 
  40 /*
  41  * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  42  * header files exported to user space
  43  */
  44 
  45 typedef __signed__ char __s8;
  46 typedef unsigned char __u8;
  47 
  48 typedef __signed__ short __s16;
  49 typedef unsigned short __u16;
  50 
  51 typedef __signed__ int __s32;
  52 typedef unsigned int __u32;
  53 
  54 /*
  55  * There are 32-bit compilers for the alpha out there..
  56  */
  57 #if ((~0UL) == 0xffffffff)
  58 
  59 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  60 typedef __signed__ long long __s64;
  61 typedef unsigned long long __u64;
  62 #endif
  63 
  64 #else
  65 
  66 typedef __signed__ long __s64;
  67 typedef unsigned long __u64;
  68 
  69 #endif
  70 
  71 /*
  72  * These aren't exported outside the kernel to avoid name space clashes
  73  */
  74 #ifdef __KERNEL__
  75 
  76 typedef signed char s8;
  77 typedef unsigned char u8;
  78 
  79 typedef signed short s16;
  80 typedef unsigned short u16;
  81 
  82 typedef signed int s32;
  83 typedef unsigned int u32;
  84 
  85 /*
  86  * There are 32-bit compilers for the alpha out there..
  87  */
  88 #if ((~0UL) == 0xffffffff)
  89 
  90 typedef signed long long s64;
  91 typedef unsigned long long u64;
  92 
  93 #else
  94 
  95 typedef signed long s64;
  96 typedef unsigned long u64;
  97 
  98 #endif
  99 
 100 #endif /* __KERNEL__ */
 101 
 102 #endif

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