X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Fextern.h;h=3bf83f158d41fea32ac7e89afffba5d80cda5924;hb=43460f04f3920ae39f345a2fb39d000a890a4283;hp=54b37abf017d543a37e860efa5cf713e6b718812;hpb=1227625a12a66e0ded78a1997c2d23f23202a382;p=dump.git diff --git a/restore/extern.h b/restore/extern.h index 54b37ab..3bf83f1 100644 --- a/restore/extern.h +++ b/restore/extern.h @@ -1,8 +1,11 @@ /* * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit - * Remy Card , 1994, 1995, 1996 + * Remy Card , 1994-1997 + * Stelian Pop , 1999-2000 + * Stelian Pop - AlcĂ´ve , 2000 * + * $Id: extern.h,v 1.11 2000/12/21 11:14:54 stelian Exp $ */ /*- @@ -36,35 +39,37 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * @(#)extern.h 8.2 (Berkeley) 1/7/94 */ +#include + struct entry *addentry __P((char *, ino_t, int)); long addfile __P((char *, ino_t, int)); -void badentry __P((struct entry *, char *)); -void canon __P((char *, char *)); +int addwhiteout __P((char *)); +void badentry __P((struct entry *, const char *)); +void canon __P((char *, char *, int)); void checkrestore __P((void)); void closemt __P((void)); +void cleanup __P((void)); +void comparefile __P((char *)); +void compareleaves __P((void)); void createfiles __P((void)); void createleaves __P((char *)); -void compareleaves __P((void)); void createlinks __P((void)); long deletefile __P((char *, ino_t, int)); void deleteino __P((ino_t)); +void delwhiteout __P((struct entry *)); ino_t dirlookup __P((const char *)); -__dead void done __P((int)); void dumpsymtable __P((char *, long)); void extractdirs __P((int)); int extractfile __P((char *)); -void comparefile __P((char *)); void findunreflinks __P((void)); char *flagvalues __P((struct entry *)); void freeentry __P((struct entry *)); void freename __P((char *)); int genliteraldir __P((char *, ino_t)); char *gentempname __P((struct entry *)); -void getfile __P((void (*)(char *, long), void (*)(char *, long))); +void getfile __P((void (*)(char *, size_t), void (*)(char *, size_t))); void getvol __P((long)); void initsymtable __P((char *)); int inodetype __P((ino_t)); @@ -90,7 +95,7 @@ void removenode __P((struct entry *)); void removeoldleaves __P((void)); void removeoldnodes __P((void)); void renameit __P((char *, char *)); -int reply __P((char *)); +int reply __P((const char *)); RST_DIR *rst_opendir __P((const char *)); struct direct *rst_readdir __P((RST_DIR *)); void rst_closedir __P((RST_DIR *dirp)); @@ -106,12 +111,17 @@ void swabst __P((u_char *, u_char *)); void treescan __P((char *, ino_t, long (*)(char *, ino_t, int))); ino_t upperbnd __P((ino_t)); long verifyfile __P((char *, ino_t, int)); -void xtrnull __P((char *, long)); +void xtrnull __P((char *, size_t)); /* From ../dump/dumprmt.c */ void rmtclose __P((void)); -int rmthost __P((char *)); +int rmthost __P((const char *)); int rmtioctl __P((int, int)); -int rmtopen __P((char *, int)); -int rmtread __P((char *, int)); +int rmtopen __P((const char *, int)); +int rmtread __P((const char *, int)); int rmtseek __P((int, int)); + +/* From e2fsprogs */ +int fsetflags __P((const char *, unsigned long)); +int fgetflags __P((const char *, unsigned long *)); +int setflags __P((int, unsigned long));