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 /*
   5  * This allows for 256 file descriptors: if NR_OPEN is ever grown beyond that
   6  * you'll have to change this too. But 256 fd's seem to be enough even for such
   7  * "real" unices like SunOS, so hopefully this is one limit that doesn't have
   8  * to be changed.
   9  *
  10  * Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in <sys/time.h>
  11  * (and thus <linux/time.h>) - but this is a more logical place for them. Solved
  12  * by having dummy defines in <sys/time.h>.
  13  */
  14 
  15 /*
  16  * Those macros may have been defined in <gnu/types.h>. But we always
  17  * use the ones here. 
  18  */
  19 #undef __FDSET_LONGS
  20 #define __FDSET_LONGS (256/(8*sizeof(unsigned long)))
  21 
  22 typedef struct fd_set {
  23         unsigned long fds_bits [__FDSET_LONGS];
  24 } fd_set;
  25 
  26 #undef __NFDBITS
  27 #define __NFDBITS       (8 * sizeof(unsigned long))
  28 
  29 #undef __FD_SETSIZE
  30 #define __FD_SETSIZE    (__FDSET_LONGS*__NFDBITS)
  31 
  32 #include <asm/types.h>
  33 
  34 #ifndef NULL
  35 #define NULL ((void *) 0)
  36 #endif
  37 
  38 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  39 #define _LOFF_T
  40 typedef long long loff_t;
  41 #endif
  42 
  43 /* bsd */
  44 typedef unsigned char u_char;
  45 typedef unsigned short u_short;
  46 typedef unsigned int u_int;
  47 typedef unsigned long u_long;
  48 
  49 /* sysv */
  50 typedef unsigned char unchar;
  51 typedef unsigned short ushort;
  52 typedef unsigned int uint;
  53 typedef unsigned long ulong;
  54 
  55 typedef char *caddr_t;
  56 
  57 typedef unsigned char cc_t;
  58 typedef unsigned int speed_t;
  59 typedef unsigned int tcflag_t;
  60 
  61 struct ustat {
  62         daddr_t f_tfree;
  63         ino_t f_tinode;
  64         char f_fname[6];
  65         char f_fpack[6];
  66 };
  67 
  68 #endif

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