1 /* $OpenBSD: extern.h,v 1.14 2016/09/09 15:37:15 tb Exp $ */ 2 /* $NetBSD: extern.h,v 1.6 1996/09/27 22:45:12 christos Exp $ */ 3 4 /* 5 * Copyright (c) 1994 James A. Jegers 6 * 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. The name of the author may not be used to endorse or promote products 14 * derived from this software without specific prior written permission 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28 void adjust(struct inodesc *, short); 29 daddr_t allocblk(int); 30 ino_t allocdir(ino_t, ino_t, int); 31 void blkerror(ino_t, char *, daddr_t); 32 int bread(int, char *, daddr_t, long); 33 void bufinit(void); 34 void bwrite(int, char *, daddr_t, long); 35 void cacheino(union dinode *, ino_t); 36 int changeino(ino_t, char *, ino_t); 37 struct fstab; 38 int chkrange(daddr_t, int); 39 void ckfini(int); 40 int ckinode(union dinode *, struct inodesc *); 41 void clri(struct inodesc *, char *, int); 42 int dircheck(struct inodesc *, struct direct *); 43 void direrror(ino_t, char *); 44 int dirscan(struct inodesc *); 45 int dofix(struct inodesc *, char *); 46 void fileerror(ino_t, ino_t, char *); 47 int findino(struct inodesc *); 48 int findname(struct inodesc *); 49 void flush(int, struct bufarea *); 50 void freeblk(daddr_t, int); 51 void freeino(ino_t); 52 void freeinodebuf(void); 53 int ftypeok(union dinode *); 54 void getpathname(char *, size_t, ino_t, ino_t); 55 void inocleanup(void); 56 void inodirty(void); 57 struct inostat *inoinfo(ino_t); 58 int linkup(ino_t, ino_t); 59 int makeentry(ino_t, ino_t, char *); 60 void pass1(void); 61 void pass1b(void); 62 void pass2(void); 63 void pass3(void); 64 void pass4(void); 65 int pass1check(struct inodesc *); 66 int pass4check(struct inodesc *); 67 void pass5(void); 68 void pinode(ino_t); 69 void propagate(ino_t); 70 int reply(char *); 71 void setinodebuf(ino_t); 72 int setup(char *, int); 73 union dinode * getnextinode(ino_t); 74 void catch(int); 75 void catchquit(int); 76 void voidquit(int); 77 void catchinfo(int); 78