1 /* 2 * Copyright (c) 1994 James A. Jegers 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. The name of the author may not be used to endorse or promote products 11 * derived from this software without specific prior written permission 12 * 13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25 void adjust __P((struct inodesc *, short)); 26 int allocblk __P((long)); 27 int allocdir __P((ino_t, ino_t, int)); 28 void blkerror __P((ino_t, char *, daddr_t)); 29 int bread __P((int, char *, daddr_t, long)); 30 void bufinit(); 31 void bwrite __P((int, char *, daddr_t, long)); 32 void cacheino __P((struct dinode *, ino_t)); 33 int changeino __P((ino_t, char *, ino_t)); 34 int checkfstab __P((int, int, int (*)(), int (*)() )); 35 int chkrange __P((daddr_t, int)); 36 void ckfini(); 37 int ckinode __P((struct dinode *, struct inodesc *)); 38 void clri __P((struct inodesc *, char *, int)); 39 int dircheck __P((struct inodesc *, struct direct *)); 40 void direrror __P((ino_t, char *)); 41 int dirscan __P((struct inodesc *)); 42 int dofix __P((struct inodesc *, char *)); 43 void fileerror __P((ino_t, ino_t, char *)); 44 int findino __P((struct inodesc *)); 45 int findname __P((struct inodesc *)); 46 void flush __P((int, struct bufarea *)); 47 void freeblk __P((daddr_t, long)); 48 void freeino __P((ino_t)); 49 void freeinodebuf(); 50 int ftypeok __P((struct dinode *)); 51 void getpathname __P((char *, ino_t, ino_t)); 52 void inocleanup(); 53 void inodirty(); 54 int linkup __P((ino_t, ino_t)); 55 int makeentry __P((ino_t, ino_t, char *)); 56 void pass1(); 57 void pass1b(); 58 void pass2(); 59 void pass3(); 60 void pass4(); 61 int pass4check(); 62 void pass5(); 63 void pinode __P((ino_t)); 64 void propagate(); 65 int reply __P((char *)); 66 void resetinodebuf(); 67 int setup __P((char *)); 68 69