date and time created 81/10/31 18:36:40 by mckusick
[unix-history] / usr / src / include / protocols / dumprestore.h
CommitLineData
8959d9ce
KM
1/* Copyright (c) 1981 Regents of the University of California */
2
3/* "@(#)dumprestore.h 1.1 %G%" */
4
5#define NTREC 10
6#define MLEN 16
7#define MSIZ 4096
8
9#define TS_TAPE 1
10#define TS_INODE 2
11#define TS_BITS 3
12#define TS_ADDR 4
13#define TS_END 5
14#define TS_CLRI 6
15#define MAGIC (int)60011
16#define CHECKSUM (int)84446
17
18struct spcl {
19 int c_type;
20 time_t c_date;
21 time_t c_ddate;
22 int c_volume;
23 daddr_t c_tapea;
24 ino_t c_inumber;
25 int c_magic;
26 int c_checksum;
27 struct dinode c_dinode;
28 int c_count;
29 char c_addr[BSIZE];
30} spcl;
31
32struct idates {
33 char id_name[16];
34 char id_incno;
35 time_t id_ddate;
36};
37
38#define DUMPOUTFMT "%-16s %c %s" /* for printf */
39 /* name, incno, ctime(date) */
40#define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */