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 __NFDBITS
  20 #define __NFDBITS       (8 * sizeof(unsigned int))
  21 
  22 #undef __FD_SETSIZE
  23 #define __FD_SETSIZE    256
  24 
  25 #undef __FDSET_INTS
  26 #define __FDSET_INTS    (__FD_SETSIZE/__NFDBITS)
  27 
  28 typedef struct fd_set {
  29         unsigned int fds_bits [__FDSET_INTS];
  30 } fd_set;
  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] */