# 2.11BSD#431 - /usr/src/bin/tp/tp.h

##### Variables

    dir               X
    edir              X
    fio               X
    lastd             X
    map               X
    name              X
    name1             X
    narg              X
    ndentb            X
    ndirent           X
    parg              X
    rnarg             X
    rseeka            X
    tapsiz            X
    tname             X
    tpentry           X
    wseeka            X

##### Macros

    BRKINCR           X
    BSIZE             X
    DIRSZ             X
    MAPMASK           X
    MAPSIZE           X
    MDIRENT           X
    MTSIZ             X
    NAMELEN           X
    OK                X
    TCDIRS            X
    TCSIZ             X
    TPB               X
    flc               X
    fli               X
    flm               X
    fls               X
    flu               X
    flv               X
    flw               X
    tapeb             X
    tapeblk           X

##### struct's

    dent              X
    tent              X

       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

- in /usr/src/bin/tp/tp1.c line 91
- in /usr/src/bin/tp/tp2.c line 18, 33, 60, 130, 305
- in /usr/src/bin/tp/tp3.c line 15, 53, 82, 126, 168

edir defined in line 69; used 2 times

- in /usr/src/bin/tp/tp1.c line 91
- in /usr/src/bin/tp/tp2.c line 329

fio defined in line 67; used 12 times

- in /usr/src/bin/tp/tp1.c line 76-86(6)
- in /usr/src/bin/tp/tp2.c line 172, 184, 194, 204-208(3)

lastd defined in line 70; used 13 times

- in /usr/src/bin/tp/tp2.c line 20, 32-37(4), 82, 325-328(2), 335(2)
- in /usr/src/bin/tp/tp3.c line 30, 69, 91

map defined in line 54; used 6 times

- in /usr/src/bin/tp/tp3.c line 63, 124(2), 148-149(2), 178

name defined in line 55; used 21 times

- in /usr/src/bin/tp/tp2.c line 223, 243-246(2), 259, 268, 283, 294, 313, 336
- in /usr/src/bin/tp/tp3.c line 19-21(2), 95-98(3), 115, 222, 234-236(3), 245, 251

name1 defined in line 56; used 2 times

- in /usr/src/bin/tp/tp2.c line 312-314(2)

narg defined in line 63; used 7 times

- in /usr/src/bin/tp/tp1.c line 15(2), 35, 116
- in /usr/src/bin/tp/tp2.c line 242-245(2)
- in /usr/src/bin/tp/tp3.c line 34

ndentb defined in line 68; used 4 times

- in /usr/src/bin/tp/tp1.c line 90
- in /usr/src/bin/tp/tp2.c line 58
- in /usr/src/bin/tp/tp3.c line 59, 170

ndirent defined in line 68; used 20 times

- in /usr/src/bin/tp/tp1.c line 75-79(2), 90-91(2)
- in /usr/src/bin/tp/tp2.c line 17, 55-61(9), 125-131(4)
- in /usr/src/bin/tp/tp3.c line 125, 167

parg defined in line 64; used 6 times

- in /usr/src/bin/tp/tp1.c line 18, 33
- in /usr/src/bin/tp/tp2.c line 246
- in /usr/src/bin/tp/tp3.c line 22, 32-33(2)

rnarg defined in line 63; used 4 times

- in /usr/src/bin/tp/tp1.c line 15, 35
- in /usr/src/bin/tp/tp3.c line 20, 31

rseeka defined in line 65; used 2 times

- in /usr/src/bin/tp/tp2.c line 179, 193

tapsiz defined in line 66; used 6 times

- in /usr/src/bin/tp/tp1.c line 74-78(2)
- in /usr/src/bin/tp/tp3.c line 61, 144, 172-174(2)

tname defined in line 59; used 6 times

- in /usr/src/bin/tp/tp1.c line 13, 33, 44, 81-84(3)

tpentry defined in line 39; used 8 times

- in line 24-25(2)
- in /usr/src/bin/tp/tp2.c line 54-55(2), 65, 125-127(2), 135

wseeka defined in line 65; used 4 times

- in /usr/src/bin/tp/tp2.c line 188, 202-207(3)

#### Defined struct's

dent defined in line 41; used 38 times

- in line 69-70(4)
- in /usr/src/bin/tp/tp1.c line 169(2), 192(2)
- in /usr/src/bin/tp/tp2.c line 24(2), 44-45(4), 112-113(4), 289-291(4)
- in /usr/src/bin/tp/tp3.c line 11(2), 38(2), 47(2), 77(2), 122(2), 135(2), 195(2), 227(2)

tent defined in line 27; used 14 times

- in /usr/src/bin/tp/tp2.c line 43-46(4), 71(2), 111(2), 153(2), 160(2), 347(2)

#### Defined macros

BRKINCR defined in line 22; never used
BSIZE defined in line 16; used 22 times

- in line 20
- in /usr/src/bin/tp/tp2.c line 122, 172-176(3), 184(2), 194, 204-208(2)
- in /usr/src/bin/tp/tp3.c line 58(2), 101-105(4), 141-142(2), 237-242(4)

DIRSZ defined in line 12; used 2 times

- in /usr/src/bin/tp/tp2.c line 17, 29

MAPMASK defined in line 14; used 3 times

- in /usr/src/bin/tp/tp3.c line 63, 147, 178

MAPSIZE defined in line 13; used 2 times

- in line 54
- in /usr/src/bin/tp/tp3.c line 124

MDIRENT defined in line 11; used 4 times

- in line 52
- in /usr/src/bin/tp/tp1.c line 79
- in /usr/src/bin/tp/tp2.c line 57(2)

MTSIZ defined in line 19; used 2 times

- in /usr/src/bin/tp/tp1.c line 78
- in /usr/src/bin/tp/tp3.c line 83

NAMELEN defined in line 15; used 5 times

- in line 28, 55-56(2)
- in /usr/src/bin/tp/tp1.c line 175
- in /usr/src/bin/tp/tp2.c line 350

OK defined in line 21; used 6 times

- in /usr/src/bin/tp/tp2.c line 93, 338
- in /usr/src/bin/tp/tp3.c line 55, 86, 93, 128

TCDIRS defined in line 18; used 1 times

- in /usr/src/bin/tp/tp1.c line 75

TCSIZ defined in line 17; used 1 times

- in /usr/src/bin/tp/tp1.c line 74

TPB defined in line 20; used 9 times

- in line 39
- in /usr/src/bin/tp/tp1.c line 90
- in /usr/src/bin/tp/tp2.c line 54-63(4), 125-127(2), 164

flc defined in line 77; used 5 times

- in /usr/src/bin/tp/tp1.c line 38, 115, 125, 136, 148

fli defined in line 78; used 4 times

- in /usr/src/bin/tp/tp1.c line 42
- in /usr/src/bin/tp/tp2.c line 96-98(2), 174

flm defined in line 79; used 9 times

- in /usr/src/bin/tp/tp1.c line 34, 45, 73, 115, 125
- in /usr/src/bin/tp/tp2.c line 54, 118
- in /usr/src/bin/tp/tp3.c line 182, 188

fls defined in line 83; used 9 times

- in /usr/src/bin/tp/tp1.c line 50
- in /usr/src/bin/tp/tp2.c line 56, 67, 73, 96-100(2), 124, 147, 156

flu defined in line 80; used 3 times

- in /usr/src/bin/tp/tp1.c line 48, 54
- in /usr/src/bin/tp/tp2.c line 318

flv defined in line 81; used 4 times

- in /usr/src/bin/tp/tp1.c line 56, 138
- in /usr/src/bin/tp/tp2.c line 221
- in /usr/src/bin/tp/tp3.c line 203

flw defined in line 82; used 4 times

- in /usr/src/bin/tp/tp1.c line 58, 136
- in /usr/src/bin/tp/tp2.c line 221-224(2)

tapeb defined in line 25; used 9 times

- in /usr/src/bin/tp/tp2.c line 122, 172-175(2), 184
- in /usr/src/bin/tp/tp3.c line 102-109(3), 240-244(2)

tapeblk defined in line 24; never used

#### Usage of this include

tp.h used 4 times

- in /usr/src/bin/tp/tp0.c line 5
- in /usr/src/bin/tp/tp1.c line 5
- in /usr/src/bin/tp/tp2.c line 5
- in /usr/src/bin/tp/tp3.c line 5

Last modified: 1987-02-08 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1279 |