]>
git.wh0rd.org - dump.git/blob - restore/extern.h
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-1997
5 * Stelian Pop <pop@cybercable.fr>, 1999
7 * $Id: extern.h,v 1.6 1999/10/13 09:57:20 stelian Exp $
11 * Copyright (c) 1992, 1993
12 * The Regents of the University of California. All rights reserved.
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
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.
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
43 struct entry
*addentry
__P((char *, ino_t
, int));
44 long addfile
__P((char *, ino_t
, int));
45 int addwhiteout
__P((char *));
46 void badentry
__P((struct entry
*, const char *));
47 void canon
__P((char *, char *, int));
48 void checkrestore
__P((void));
49 void closemt
__P((void));
50 void cleanup
__P((void));
51 void comparefile
__P((char *));
52 void compareleaves
__P((void));
53 void createfiles
__P((void));
54 void createleaves
__P((char *));
55 void createlinks
__P((void));
56 long deletefile
__P((char *, ino_t
, int));
57 void deleteino
__P((ino_t
));
58 void delwhiteout
__P((struct entry
*));
59 ino_t dirlookup
__P((const char *));
60 void dumpsymtable
__P((char *, long));
61 void extractdirs
__P((int));
62 int extractfile
__P((char *));
63 void findunreflinks
__P((void));
64 char *flagvalues
__P((struct entry
*));
65 void freeentry
__P((struct entry
*));
66 void freename
__P((char *));
67 int genliteraldir
__P((char *, ino_t
));
68 char *gentempname
__P((struct entry
*));
69 void getfile
__P((void (*)(char *, size_t), void (*)(char *, size_t)));
70 void getvol
__P((long));
71 void initsymtable
__P((char *));
72 int inodetype
__P((ino_t
));
73 int linkit
__P((char *, char *, int));
74 struct entry
*lookupino
__P((ino_t
));
75 struct entry
*lookupname
__P((char *));
76 long listfile
__P((char *, ino_t
, int));
77 ino_t lowerbnd
__P((ino_t
));
78 void mktempname
__P((struct entry
*));
79 void moveentry
__P((struct entry
*, char *));
80 void msg
__P((const char *, ...));
81 char *myname
__P((struct entry
*));
82 void newnode
__P((struct entry
*));
83 void newtapebuf
__P((long));
84 long nodeupdates
__P((char *, ino_t
, int));
85 void onintr
__P((int));
86 void panic
__P((const char *, ...));
87 void pathcheck
__P((char *));
88 struct direct
*pathsearch
__P((const char *));
89 void printdumpinfo
__P((void));
90 void removeleaf
__P((struct entry
*));
91 void removenode
__P((struct entry
*));
92 void removeoldleaves
__P((void));
93 void removeoldnodes
__P((void));
94 void renameit
__P((char *, char *));
95 int reply
__P((const char *));
96 RST_DIR
*rst_opendir
__P((const char *));
97 struct direct
*rst_readdir
__P((RST_DIR
*));
98 void rst_closedir
__P((RST_DIR
*dirp
));
99 void runcmdshell
__P((void));
100 char *savename
__P((char *));
101 void setdirmodes
__P((int));
102 void setinput
__P((char *));
103 void setup
__P((void));
104 void skipdirs
__P((void));
105 void skipfile
__P((void));
106 void skipmaps
__P((void));
107 void swabst
__P((u_char
*, u_char
*));
108 void treescan
__P((char *, ino_t
, long (*)(char *, ino_t
, int)));
109 ino_t upperbnd
__P((ino_t
));
110 long verifyfile
__P((char *, ino_t
, int));
111 void xtrnull
__P((char *, size_t));
113 /* From ../dump/dumprmt.c */
114 void rmtclose
__P((void));
115 int rmthost
__P((const char *));
116 int rmtioctl
__P((int, int));
117 int rmtopen
__P((const char *, int));
118 int rmtread
__P((const char *, int));
119 int rmtseek
__P((int, int));
122 int fsetflags
__P((const char *, unsigned long));
123 int setflags
__P((int, unsigned long));