Add error return codes for gethostby*() routines
[unix-history] / usr / src / include / protocols / dumprestore.h
CommitLineData
76797561
DF
1/*
2 * Copyright (c) 1980 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 * @(#)dumprestore.h 5.1 (Berkeley) %G%
7 */
8959d9ce 8
b6407c9d
KM
9/*
10 * TP_BSIZE is the size of file blocks on the dump tapes.
11 * Note that TP_BSIZE must be a multiple of DEV_BSIZE.
12 *
13 * NTREC is the number of TP_BSIZE blocks that are written
f65cc121
KM
14 * in each tape record. HIGHDENSITYTREC is the number of
15 * TP_BSIZE blocks that are written in each tape record on
16 * 6250 BPI or higher density tapes.
b6407c9d 17 *
b6407c9d
KM
18 * TP_NINDIR is the number of indirect pointers in a TS_INODE
19 * or TS_ADDR record. Note that it must be a power of two.
20 */
f5bba473 21#define TP_BSIZE 1024
8959d9ce 22#define NTREC 10
f65cc121 23#define HIGHDENSITYTREC 32
f5bba473 24#define TP_NINDIR (TP_BSIZE/2)
8959d9ce
KM
25
26#define TS_TAPE 1
27#define TS_INODE 2
28#define TS_BITS 3
29#define TS_ADDR 4
30#define TS_END 5
31#define TS_CLRI 6
c287fc13
KM
32#define OFS_MAGIC (int)60011
33#define NFS_MAGIC (int)60012
8959d9ce
KM
34#define CHECKSUM (int)84446
35
f5bba473
KM
36union u_spcl {
37 char dummy[TP_BSIZE];
38 struct s_spcl {
39 int c_type;
40 time_t c_date;
41 time_t c_ddate;
42 int c_volume;
43 daddr_t c_tapea;
44 ino_t c_inumber;
45 int c_magic;
46 int c_checksum;
47 struct dinode c_dinode;
48 int c_count;
49 char c_addr[TP_NINDIR];
50 } s_spcl;
51} u_spcl;
52
53#define spcl u_spcl.s_spcl
8959d9ce 54
8959d9ce
KM
55#define DUMPOUTFMT "%-16s %c %s" /* for printf */
56 /* name, incno, ctime(date) */
57#define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */