]> git.wh0rd.org - dump.git/blame - restore/extern.h
Initial revision
[dump.git] / restore / extern.h
CommitLineData
1227625a
SP
1/*
2 * Ported to Linux's Second Extended File System as part of the
3 * dump and restore backup suit
4 * Remy Card <card@Linux.EU.Org>, 1994, 1995, 1996
5 *
6 */
7
8/*-
9 * Copyright (c) 1992, 1993
10 * The Regents of the University of California. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 * 3. All advertising materials mentioning features or use of this software
21 * must display the following acknowledgement:
22 * This product includes software developed by the University of
23 * California, Berkeley and its contributors.
24 * 4. Neither the name of the University nor the names of its contributors
25 * may be used to endorse or promote products derived from this software
26 * without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
29 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)extern.h 8.2 (Berkeley) 1/7/94
41 */
42
43struct entry *addentry __P((char *, ino_t, int));
44long addfile __P((char *, ino_t, int));
45void badentry __P((struct entry *, char *));
46void canon __P((char *, char *));
47void checkrestore __P((void));
48void closemt __P((void));
49void createfiles __P((void));
50void createleaves __P((char *));
51void compareleaves __P((void));
52void createlinks __P((void));
53long deletefile __P((char *, ino_t, int));
54void deleteino __P((ino_t));
55ino_t dirlookup __P((const char *));
56__dead void done __P((int));
57void dumpsymtable __P((char *, long));
58void extractdirs __P((int));
59int extractfile __P((char *));
60void comparefile __P((char *));
61void findunreflinks __P((void));
62char *flagvalues __P((struct entry *));
63void freeentry __P((struct entry *));
64void freename __P((char *));
65int genliteraldir __P((char *, ino_t));
66char *gentempname __P((struct entry *));
67void getfile __P((void (*)(char *, long), void (*)(char *, long)));
68void getvol __P((long));
69void initsymtable __P((char *));
70int inodetype __P((ino_t));
71int linkit __P((char *, char *, int));
72struct entry *lookupino __P((ino_t));
73struct entry *lookupname __P((char *));
74long listfile __P((char *, ino_t, int));
75ino_t lowerbnd __P((ino_t));
76void mktempname __P((struct entry *));
77void moveentry __P((struct entry *, char *));
78void msg __P((const char *, ...));
79char *myname __P((struct entry *));
80void newnode __P((struct entry *));
81void newtapebuf __P((long));
82long nodeupdates __P((char *, ino_t, int));
83void onintr __P((int));
84void panic __P((const char *, ...));
85void pathcheck __P((char *));
86struct direct *pathsearch __P((const char *));
87void printdumpinfo __P((void));
88void removeleaf __P((struct entry *));
89void removenode __P((struct entry *));
90void removeoldleaves __P((void));
91void removeoldnodes __P((void));
92void renameit __P((char *, char *));
93int reply __P((char *));
94RST_DIR *rst_opendir __P((const char *));
95struct direct *rst_readdir __P((RST_DIR *));
96void rst_closedir __P((RST_DIR *dirp));
97void runcmdshell __P((void));
98char *savename __P((char *));
99void setdirmodes __P((int));
100void setinput __P((char *));
101void setup __P((void));
102void skipdirs __P((void));
103void skipfile __P((void));
104void skipmaps __P((void));
105void swabst __P((u_char *, u_char *));
106void treescan __P((char *, ino_t, long (*)(char *, ino_t, int)));
107ino_t upperbnd __P((ino_t));
108long verifyfile __P((char *, ino_t, int));
109void xtrnull __P((char *, long));
110
111/* From ../dump/dumprmt.c */
112void rmtclose __P((void));
113int rmthost __P((char *));
114int rmtioctl __P((int, int));
115int rmtopen __P((char *, int));
116int rmtread __P((char *, int));
117int rmtseek __P((int, int));