1: /*
2: * Copyright (c) 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)dumprestor.h 5.1 (Berkeley) 12/13/86
7: */
8:
9: #define NTREC 10
10: #define MLEN 16
11: #define MSIZ 4096
12:
13: #define TS_TAPE 1
14: #define TS_INODE 2
15: #define TS_BITS 3
16: #define TS_ADDR 4
17: #define TS_END 5
18: #define TS_CLRI 6
19: #define OFS_MAGIC (int)60011
20: #define NFS_MAGIC (int)60012
21: #define MAGIC OFS_MAGIC
22: #define CHECKSUM (int)84446
23:
24: struct spcl {
25: int c_type;
26: time_t c_date;
27: time_t c_ddate;
28: int c_volume;
29: daddr_t c_tapea;
30: ino_t c_inumber;
31: int c_magic;
32: int c_checksum;
33: struct dinode c_dinode;
34: int c_count;
35: char c_addr[DEV_BSIZE];
36: } spcl;
37:
38: struct idates {
39: char id_name[16];
40: char id_incno;
41: time_t id_ddate;
42: };
43:
44: #define DUMPOUTFMT "%-16s %c %s" /* for printf */
45: /* name, incno, ctime(date) */
46: #define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */
Defined variables
spcl
defined in line
36; used 151 times
- in /usr/src/old/dump/dumpdir.c line
73-79(4),
100-112(4),
118-125(4),
181,
189,
204-206(2),
466,
472
- in /usr/src/old/dump/dumpitime.c line
65,
78-80(2),
95,
114,
124
- in /usr/src/old/dump/dumpmain.c line
18,
139-140(2),
196-199(3)
- in /usr/src/old/dump/dumptape.c line
17,
30,
233-234(2)
- in /usr/src/old/dump/dumptraverse.c line
72,
100-101(2),
140-142(3),
156-161(2),
178-182(3),
192-200(6)
- in /usr/src/sbin/dump/dumpdir.c line
81-87(4),
110,
119-127(3),
133-140(4),
216,
224,
239-241(2),
494,
500
- in /usr/src/sbin/dump/dumpitime.c line
63,
77-79(2),
95,
114,
124
- in /usr/src/sbin/dump/dumpmain.c line
23,
71-72(2),
209-211(2),
304-307(3)
- in /usr/src/sbin/dump/dumptape.c line
82,
96,
292-293(2)
- in /usr/src/sbin/dump/dumptraverse.c line
73,
91,
144-146(3),
160-165(2),
182-186(3),
196-204(6)
- in /usr/src/sbin/restor/restor.c line
199-212(5),
243-258(6),
270-273(3),
281-285(3),
295-296(3),
303,
347-364(6),
370,
384,
392-398(3),
404-407(2),
450,
458-478(7),
510,
519,
535-537(2),
1235,
1244
Defined struct's
idates
defined in line
38; used 62 times
- in /usr/src/old/dump/dump.h line
110(2),
116(2)
- in /usr/src/old/dump/dumpitime.c line
16(2),
49(4),
56(2),
87(2),
109(4),
129(2),
141(2),
168-169(4),
200(2)
- in /usr/src/old/dump/dumpoptr.c line
284(2),
290(2),
319(2)
- in /usr/src/sbin/dump/dump.h line
105(2),
111(2)
- in /usr/src/sbin/dump/dumpitime.c line
47(4),
54(2),
87(2),
109(4),
129(2),
141(2),
163(2)
- in /usr/src/sbin/dump/dumpoptr.c line
272(2),
278(2),
307(2)
spcl
defined in line
24; used 46 times
- in /usr/src/old/dump/dumpdir.c line
178(2),
222-226(4),
390(2),
402(2),
427(2),
436(2)
- in /usr/src/sbin/dump/dumpdir.c line
213(2),
257-261(4),
412(2),
419(2),
443(2),
468(2),
477(2)
- in /usr/src/sbin/restor/restor.c line
507(2),
554-558(4),
927(2),
937(2),
958(2),
983(2),
992(2)
Defined macros
MAGIC
defined in line
21; used 2 times
MLEN
defined in line
10; used 15 times
MSIZ
defined in line
11; used 17 times
NTREC
defined in line
9; used 46 times
- in /usr/src/old/dump/dumpdir.c line
47-48(2),
224-232(4),
260
- in /usr/src/old/dump/dumpmain.c line
174,
197
- in /usr/src/old/dump/dumptape.c line
4-5(2),
18,
31,
42-47(2),
83
- in /usr/src/sbin/dump/dumpdir.c line
52-53(2),
259-270(5)
- in /usr/src/sbin/dump/dumpmain.c line
146(2),
265,
278,
305
- in /usr/src/sbin/dump/dumprmt.c line
106
- in /usr/src/sbin/dump/dumptape.c line
15,
35,
68-69(2),
83,
97,
139-142(2),
424
- in /usr/src/sbin/restor/restor.c line
20,
96-97(2),
556-567(5)
Usage of this include