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
- 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
narg
defined in line
63; used 7 times
parg
defined in line
64; used 6 times
rnarg
defined in line
63; used 4 times
tname
defined in line
59; used 6 times
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
Defined macros
BSIZE
defined in line
16; used 22 times
DIRSZ
defined in line
12; used 2 times
MTSIZ
defined in line
19; used 2 times
OK
defined in line
21; used 6 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
Usage of this include