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