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 #include <linux/posix_types.h>
   5 #include <asm/types.h>
   6 
   7 #ifndef _LINUX_TYPES_DONT_EXPORT
   8 
   9 typedef __fd_set        fd_set;
  10 typedef __dev_t         dev_t;
  11 typedef __ino_t         ino_t;
  12 typedef __mode_t        mode_t;
  13 typedef __nlink_t       nlink_t;
  14 typedef __off_t         off_t;
  15 typedef __pid_t         pid_t;
  16 typedef __uid_t         uid_t;
  17 typedef __gid_t         gid_t;
  18 typedef __daddr_t       daddr_t;
  19 
  20 /* bsd */
  21 
  22 typedef __u_char        u_char;
  23 typedef __u_short       u_short;
  24 typedef __u_int         u_int;
  25 typedef __u_long        u_long;
  26 
  27 /*
  28  * The following typedefs are also protected by individual ifdefs for
  29  * historical reasons:
  30  */
  31 #ifndef _SIZE_T
  32 #define _SIZE_T
  33 typedef __size_t        size_t;
  34 #endif
  35 
  36 #ifndef _SSIZE_T
  37 #define _SSIZE_T
  38 typedef __ssize_t       ssize_t;
  39 #endif
  40 
  41 #ifndef _PTRDIFF_T
  42 #define _PTRDIFF_T
  43 typedef __ptrdiff_t     ptrdiff_t;
  44 #endif
  45 
  46 #ifndef _TIME_T
  47 #define _TIME_T
  48 typedef __time_t        time_t;
  49 #endif
  50 
  51 #ifndef _CLOCK_T
  52 #define _CLOCK_T
  53 typedef __clock_t       clock_t;
  54 #endif
  55 
  56 #ifndef _CADDR_T
  57 #define _CADDR_T
  58 typedef __caddr_t       caddr_t;
  59 #endif
  60 
  61 /* sysv */
  62 typedef unsigned char   unchar;
  63 typedef unsigned short  ushort;
  64 typedef unsigned int    uint;
  65 typedef unsigned long   ulong;
  66 
  67 #endif /* _LINUX_TYPES_DONT_EXPORT */
  68 
  69 /*
  70  * Below are truly Linux-specific types that should never collide with
  71  * any application/library that wants linux/types.h.
  72  */
  73 
  74 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  75 
  76 typedef long long       __loff_t;
  77 
  78 #ifndef _LINUX_TYPES_DONT_EXPORT
  79 #define _LOFF_T
  80 typedef __loff_t        loff_t;
  81 #endif
  82 
  83 #endif
  84 
  85 struct ustat {
  86         __daddr_t       f_tfree;
  87         __ino_t         f_tinode;
  88         char            f_fname[6];
  89         char            f_fpack[6];
  90 };
  91 
  92 #endif /* _LINUX_TYPES_H */

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