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