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