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