root/include/linux/types.h

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

INCLUDED FROM


   1 #ifndef _LINUX_TYPES_H
   2 #define _LINUX_TYPES_H
   3 
   4 #ifndef _SIZE_T
   5 #define _SIZE_T
   6 typedef unsigned int size_t;
   7 #endif
   8 
   9 #ifndef _SSIZE_T
  10 #define _SSIZE_T
  11 typedef int ssize_t;
  12 #endif
  13 
  14 #ifndef _TIME_T
  15 #define _TIME_T
  16 typedef long time_t;
  17 #endif
  18 
  19 #ifndef _CLOCK_T
  20 #define _CLOCK_T
  21 typedef long clock_t;
  22 #endif
  23 
  24 #ifndef _PTRDIFF_T
  25 #define _PTRDIFF_T
  26 typedef long ptrdiff_t;
  27 #endif
  28 
  29 #ifndef NULL
  30 #define NULL ((void *) 0)
  31 #endif
  32 
  33 typedef int pid_t;
  34 typedef unsigned short uid_t;
  35 typedef unsigned short gid_t;
  36 typedef unsigned short dev_t;
  37 #ifdef OLD_LINUX
  38 typedef unsigned short ino_t;
  39 #else
  40 typedef unsigned long ino_t;
  41 #endif
  42 typedef unsigned short mode_t;
  43 typedef unsigned short umode_t;
  44 typedef unsigned short nlink_t;
  45 typedef int daddr_t;
  46 typedef long off_t;
  47 
  48 /* bsd */
  49 typedef unsigned char u_char;
  50 typedef unsigned short u_short;
  51 typedef unsigned int u_int;
  52 typedef unsigned long u_long;
  53 
  54 /* sysv */
  55 typedef unsigned char unchar;
  56 typedef unsigned short ushort;
  57 typedef unsigned int uint;
  58 typedef unsigned long ulong;
  59 
  60 typedef char *caddr_t;
  61 
  62 typedef unsigned char cc_t;
  63 typedef unsigned int speed_t;
  64 typedef unsigned long tcflag_t;
  65 
  66 typedef unsigned long fd_set;
  67 
  68 typedef struct { int quot,rem; } div_t;
  69 typedef struct { long quot,rem; } ldiv_t;
  70 
  71 struct ustat {
  72         daddr_t f_tfree;
  73         ino_t f_tinode;
  74         char f_fname[6];
  75         char f_fpack[6];
  76 };
  77 
  78 #endif

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