1: /*	types.h	4.3	81/10/17	*/
   2: 
   3: /*
   4:  * Basic system types and major/minor device constructing/busting macros.
   5:  */
   6: 
   7: /* major part of a device */
   8: #define major(x)    ((int)(((unsigned)(x)>>8)&0377))
   9: 
  10: /* minor part of a device */
  11: #define minor(x)    ((int)((x)&0377))
  12: 
  13: /* make a device number */
  14: #define makedev(x,y)    ((dev_t)(((x)<<8) | (y)))
  15: 
  16: typedef unsigned char   u_char;
  17: typedef unsigned short  u_short;
  18: typedef unsigned int    u_int;
  19: typedef unsigned long   u_long;
  20: 
  21: /* SHOULD USE long RATHER THAN int HERE BUT IT WOULD GIVE LINT ON THE KERNEL */
  22: /* GASTRIC DISTRESS AND DON'T HAVE TIME TO FIX THAT JUST NOW */
  23: typedef struct  _physadr { int r[1]; } *physadr;
  24: typedef int daddr_t;
  25: typedef char *  caddr_t;
  26: typedef u_short ino_t;
  27: typedef int swblk_t;
  28: typedef int size_t;
  29: typedef int time_t;
  30: typedef int label_t[14];
  31: typedef short   dev_t;
  32: typedef int off_t;
  33: typedef long    portid_t;
  34: 
  35: typedef struct  fd_set { int fds_bits[1]; } fd_set;

Defined struct's

_physadr defined in line 23; never used
fd_set defined in line 35; never used

Defined typedef's

caddr_t defined in line 25; never used
dev_t defined in line 31; used 2 times
fd_set defined in line 35; never used
label_t defined in line 30; never used
off_t defined in line 32; never used
physadr defined in line 23; never used
portid_t defined in line 33; never used
size_t defined in line 28; never used
swblk_t defined in line 27; never used
u_char defined in line 16; never used
u_int defined in line 18; never used
u_long defined in line 19; never used
u_short defined in line 17; used 1 times
  • in line 26

Defined macros

major defined in line 8; never used
makedev defined in line 14; never used
minor defined in line 11; used 1 times

Usage of this include

Last modified: 1983-04-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 968
Valid CSS Valid XHTML 1.0 Strict