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