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