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