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