]> git.wh0rd.org - dump.git/blame - restore/extern.h
Version 0.4b7.
[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 *
41 * @(#)extern.h 8.2 (Berkeley) 1/7/94
8d4197bb 42 * $Id: extern.h,v 1.4 1999/10/11 13:08:09 stelian Exp $
1227625a
SP
43 */
44
45struct entry *addentry __P((char *, ino_t, int));
46long addfile __P((char *, ino_t, int));
b45f51d6 47int addwhiteout __P((char *));
ddd2ef55 48void badentry __P((struct entry *, const char *));
b45f51d6 49void canon __P((char *, char *, int));
1227625a
SP
50void checkrestore __P((void));
51void closemt __P((void));
ddd2ef55 52void cleanup __P((void));
b45f51d6
SP
53void comparefile __P((char *));
54void compareleaves __P((void));
1227625a
SP
55void createfiles __P((void));
56void createleaves __P((char *));
1227625a
SP
57void createlinks __P((void));
58long deletefile __P((char *, ino_t, int));
59void deleteino __P((ino_t));
b45f51d6 60void delwhiteout __P((struct entry *));
1227625a 61ino_t dirlookup __P((const char *));
1227625a
SP
62void dumpsymtable __P((char *, long));
63void extractdirs __P((int));
64int extractfile __P((char *));
1227625a
SP
65void findunreflinks __P((void));
66char *flagvalues __P((struct entry *));
67void freeentry __P((struct entry *));
68void freename __P((char *));
69int genliteraldir __P((char *, ino_t));
70char *gentempname __P((struct entry *));
ddd2ef55 71void getfile __P((void (*)(char *, size_t), void (*)(char *, size_t)));
1227625a
SP
72void getvol __P((long));
73void initsymtable __P((char *));
74int inodetype __P((ino_t));
75int linkit __P((char *, char *, int));
76struct entry *lookupino __P((ino_t));
77struct entry *lookupname __P((char *));
78long listfile __P((char *, ino_t, int));
79ino_t lowerbnd __P((ino_t));
80void mktempname __P((struct entry *));
81void moveentry __P((struct entry *, char *));
82void msg __P((const char *, ...));
83char *myname __P((struct entry *));
84void newnode __P((struct entry *));
85void newtapebuf __P((long));
86long nodeupdates __P((char *, ino_t, int));
87void onintr __P((int));
88void panic __P((const char *, ...));
89void pathcheck __P((char *));
90struct direct *pathsearch __P((const char *));
91void printdumpinfo __P((void));
92void removeleaf __P((struct entry *));
93void removenode __P((struct entry *));
94void removeoldleaves __P((void));
95void removeoldnodes __P((void));
96void renameit __P((char *, char *));
ddd2ef55 97int reply __P((const char *));
1227625a
SP
98RST_DIR *rst_opendir __P((const char *));
99struct direct *rst_readdir __P((RST_DIR *));
100void rst_closedir __P((RST_DIR *dirp));
101void runcmdshell __P((void));
102char *savename __P((char *));
103void setdirmodes __P((int));
104void setinput __P((char *));
105void setup __P((void));
106void skipdirs __P((void));
107void skipfile __P((void));
108void skipmaps __P((void));
109void swabst __P((u_char *, u_char *));
110void treescan __P((char *, ino_t, long (*)(char *, ino_t, int)));
111ino_t upperbnd __P((ino_t));
112long verifyfile __P((char *, ino_t, int));
ddd2ef55 113void xtrnull __P((char *, size_t));
1227625a
SP
114
115/* From ../dump/dumprmt.c */
116void rmtclose __P((void));
ddd2ef55 117int rmthost __P((const char *));
1227625a 118int rmtioctl __P((int, int));
ddd2ef55
SP
119int rmtopen __P((const char *, int));
120int rmtread __P((const char *, int));
1227625a 121int rmtseek __P((int, int));
8d4197bb
SP
122
123/* From e2fsprogs */
124int fsetflags __P((const char *, unsigned long));
125int setflags __P((int, unsigned long));