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