extern.h revision 1.8 1 1.8 christos /* $NetBSD: extern.h,v 1.8 2005/06/27 02:48:28 christos 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.4 perseant void adjust(struct inodesc *, short);
28 1.4 perseant int allocblk(long);
29 1.4 perseant int allocdir(ino_t, ino_t, int);
30 1.8 christos void blkerror(ino_t, const char *, daddr_t);
31 1.5 fvdl void cacheino(struct ufs1_dinode *, ino_t);
32 1.8 christos int changeino(ino_t, const char *, ino_t);
33 1.3 perseant struct fstab;
34 1.4 perseant void checkinode(ino_t, struct inodesc *);
35 1.4 perseant int chkrange(daddr_t, int);
36 1.4 perseant void ckfini(int);
37 1.5 fvdl int ckinode(struct ufs1_dinode *, struct inodesc *);
38 1.8 christos void clri(struct inodesc *, const char *, int);
39 1.4 perseant int dircheck(struct inodesc *, struct direct *);
40 1.8 christos void direrror(ino_t, const char *);
41 1.4 perseant int dirscan(struct inodesc *);
42 1.8 christos int dofix(struct inodesc *, const char *);
43 1.8 christos void fileerror(ino_t, ino_t, const char *);
44 1.4 perseant int findino(struct inodesc *);
45 1.4 perseant int findname(struct inodesc *);
46 1.4 perseant void flush(int, struct ubufarea *);
47 1.4 perseant void freeblk(daddr_t, long);
48 1.4 perseant void freeino(ino_t);
49 1.4 perseant void freeinodebuf(void);
50 1.5 fvdl int ftypeok(struct ufs1_dinode *);
51 1.6 itojun void getpathname(char *, size_t, ino_t, ino_t);
52 1.4 perseant void inocleanup(void);
53 1.4 perseant void inodirty(struct inode *);
54 1.4 perseant int linkup(ino_t, ino_t);
55 1.8 christos int makeentry(ino_t, ino_t, const char *);
56 1.4 perseant void pass0(void);
57 1.4 perseant void pass1(void);
58 1.4 perseant void pass1b(void);
59 1.4 perseant void pass2(void);
60 1.4 perseant void pass3(void);
61 1.4 perseant void pass4(void);
62 1.4 perseant int pass1check(struct inodesc *);
63 1.4 perseant int pass4check(struct inodesc *);
64 1.4 perseant void pass5(void);
65 1.4 perseant void pass6(void);
66 1.4 perseant int pass6check(struct inodesc *);
67 1.4 perseant void pinode(ino_t);
68 1.4 perseant void propagate(void);
69 1.8 christos int reply(const char *);
70 1.4 perseant void resetinodebuf(void);
71 1.4 perseant int setup(const char *);
72 1.4 perseant void catch(int);
73 1.4 perseant void catchquit(int);
74 1.4 perseant void voidquit(int);
75