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