1: #define CRASH
   2: #define MAD HEX     /* format for octal/hex dumps */
   3: #define DUMP(x) hexout((x)) /* format for octal/hex dumps */
   4: 
   5: /*
   6:  * Arena (Mbuf) cross-reference table entry
   7:  */
   8: struct arenas {
   9:     struct  arenas *as_next;    /* link */
  10:     unsigned as_addr;       /* address in arena*/
  11:     short   as_ref;         /* reference counter */
  12:     short   as_size;
  13:     short   as_flags;
  14: };
  15: #define AS_SOCK     01
  16: #define AS_MBUF     02
  17: #define AS_ARCK     04
  18: #define AS_BDSZ     010
  19: #define AS_FREE     020
  20: #define AS_INPCB    040
  21: #define AS_TCPCB    0100
  22: #define AS_RTENT    0200
  23: #define AS_RAWCB    0400
  24: 
  25: struct arenas   *getars(),
  26:         *putars();
  27: 
  28: char *arenap;       /* stuffed with addr of arena, an auto variable */
  29: unsigned int    allocs,
  30:         alloct;
  31: 
  32: #define klseek(fd,base,off) lseek(fd, (off_t)((unsigned)base), off)
  33: #define VALADD(a,type)  ((unsigned)(a) > allocs && \
  34:              (unsigned)(a) < alloct-sizeof (type))
  35: #define VALMBA(a)   VALADD(a,struct mbuf)
  36: #define VALMBXA(a)  ((unsigned)(a) >= mbstat.m_mbxbase && \
  37:              (unsigned)(a) <= mbend-(sizeof (struct mbufx)/64))
  38: #define XLATE(a,type)   (type)(arenap + (unsigned)(a) - allocs)

Defined variables

allocs defined in line 29; used 10 times
alloct defined in line 30; used 7 times
arenap defined in line 28; used 4 times

Defined struct's

arenas defined in line 8; used 40 times

Defined macros

AS_ARCK defined in line 17; used 2 times
AS_BDSZ defined in line 18; used 1 times
AS_FREE defined in line 19; used 1 times
AS_INPCB defined in line 20; used 1 times
AS_MBUF defined in line 16; used 10 times
AS_RAWCB defined in line 23; used 1 times
AS_RTENT defined in line 22; used 1 times
AS_SOCK defined in line 15; used 2 times
AS_TCPCB defined in line 21; used 1 times
CRASH defined in line 1; used 9 times
DUMP defined in line 3; used 19 times
MAD defined in line 2; used 15 times
VALADD defined in line 33; used 7 times
VALMBA defined in line 35; used 4 times
VALMBXA defined in line 36; used 3 times
XLATE defined in line 38; used 11 times
klseek defined in line 32; used 26 times

Usage of this include

Last modified: 1987-07-26
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2444
Valid CSS Valid XHTML 1.0 Strict