1: /*	@(#)tp.h	4.2	6/28/84	*/
   2: 
   3: /*	c-version of tp?.s
   4:  *
   5:  *	M. Ferentz
   6:  *	August 1976
   7:  *
   8:  *	revised July 1977 BTL
   9:  */
  10: 
  11: #define MDIRENT 496     /* must be zero mod 8 */
  12: #define DIRSZ   sizeof(struct dent)
  13: #define MAPSIZE 4096
  14: #define MAPMASK 07777
  15: #define NAMELEN 32
  16: #define BSIZE   512
  17: #define TCSIZ   578
  18: #define TCDIRS  192
  19: #define MTSIZ   32767
  20: #define TPB (BSIZE/sizeof(struct tent))
  21: #define OK  0100000
  22: #define BRKINCR 512
  23: 
  24: #define tapeblk &tpentry[0]
  25: #define tapeb   &tpentry[0]
  26: 
  27: struct  tent    {   /* Structure of a tape directory block */
  28:     char    pathnam[NAMELEN];
  29:     short   mode;
  30:     char    uid;
  31:     char    gid;
  32:     char    spare;
  33:     char    size0;
  34:     unsigned short  size1;
  35:     long    time;
  36:     unsigned short  tapea;  /* tape address */
  37:     short   unused[8];
  38:     short   cksum;
  39: }   tpentry[TPB];
  40: 
  41: struct  dent {  /* in core version of tent with "unused" removed
  42: 		 * and pathname replaced by pointer to same in a
  43: 		 * packed area (nameblock).
  44: 		 */
  45:     char    *d_namep;
  46:     int d_mode;
  47:     int d_uid;
  48:     int d_gid;
  49:     long    d_size;
  50:     long    d_time;
  51:     int d_tapea;
  52: }  dir[MDIRENT];
  53: 
  54: char    map[MAPSIZE];
  55: char    name[NAMELEN];
  56: char    name1[NAMELEN];
  57: extern  char mt[];
  58: extern  char tc[];
  59: char    *tname;
  60: extern  char mheader[];
  61: extern  char theader[];
  62: 
  63: int narg, rnarg;
  64: char    **parg;
  65: int wseeka,rseeka;
  66: int tapsiz;
  67: int fio;
  68: short   ndirent, ndentb;
  69: struct  dent    *edir;
  70: struct  dent *lastd;        /* for improvement */
  71: char    *sbrk();
  72: char    *strcpy();
  73: long    lseek();
  74: int (*command)();
  75: 
  76: extern  int flags;
  77: #define flc 0001
  78: #define fli 0004
  79: #define flm 0010
  80: #define flu 0020
  81: #define flv 0040
  82: #define flw 0100
  83: #define fls 0200

Defined variables

dir defined in line 52; used 11 times
edir defined in line 69; used 2 times
fio defined in line 67; used 12 times
lastd defined in line 70; used 13 times
map defined in line 54; used 6 times
name defined in line 55; used 21 times
name1 defined in line 56; used 2 times
narg defined in line 63; used 7 times
ndentb defined in line 68; used 4 times
ndirent defined in line 68; used 20 times
parg defined in line 64; used 6 times
rnarg defined in line 63; used 4 times
rseeka defined in line 65; used 2 times
tapsiz defined in line 66; used 6 times
tname defined in line 59; used 6 times
tpentry defined in line 39; used 8 times
wseeka defined in line 65; used 4 times

Defined struct's

dent defined in line 41; used 38 times
tent defined in line 27; used 14 times

Defined macros

BRKINCR defined in line 22; never used
BSIZE defined in line 16; used 22 times
DIRSZ defined in line 12; used 2 times
MAPMASK defined in line 14; used 3 times
MAPSIZE defined in line 13; used 2 times
MDIRENT defined in line 11; used 4 times
MTSIZ defined in line 19; used 2 times
NAMELEN defined in line 15; used 5 times
OK defined in line 21; used 6 times
TCDIRS defined in line 18; used 1 times
TCSIZ defined in line 17; used 1 times
TPB defined in line 20; used 9 times
flc defined in line 77; used 5 times
fli defined in line 78; used 4 times
flm defined in line 79; used 9 times
fls defined in line 83; used 9 times
flu defined in line 80; used 3 times
flv defined in line 81; used 4 times
flw defined in line 82; used 4 times
tapeb defined in line 25; used 9 times
tapeblk defined in line 24; never used

Usage of this include

Last modified: 1984-06-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1338
Valid CSS Valid XHTML 1.0 Strict