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