xref: /netbsd/sbin/fsck_ext2fs/extern.h (revision bf9ec67e)
1 /*	$NetBSD: extern.h,v 1.2 1998/07/26 20:27:20 mycroft Exp $	*/
2 
3 /*
4  * Copyright (c) 1997 Manuel Bouyer.
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 __P((struct inodesc *, short));
29 int	allocblk __P((void));
30 int	allocdir __P((ino_t, ino_t, int));
31 void	blkerror __P((ino_t, char *, daddr_t));
32 int	bread __P((int, char *, daddr_t, long));
33 void	bufinit __P((void));
34 void	bwrite __P((int, char *, daddr_t, long));
35 void	cacheino __P((struct ext2fs_dinode *, ino_t));
36 int	changeino __P((ino_t, char *, ino_t));
37 struct	fstab;
38 int	chkrange __P((daddr_t, int));
39 void	ckfini __P((int));
40 int	ckinode __P((struct ext2fs_dinode *, struct inodesc *));
41 void	clri __P((struct inodesc *, char *, int));
42 int	dircheck __P((struct inodesc *, struct ext2fs_direct *));
43 void	direrror __P((ino_t, char *));
44 int	dirscan __P((struct inodesc *));
45 int	dofix __P((struct inodesc *, char *));
46 void	fileerror __P((ino_t, ino_t, char *));
47 int	findino __P((struct inodesc *));
48 int	findname __P((struct inodesc *));
49 void	flush __P((int, struct bufarea *));
50 void	freeblk __P((daddr_t));
51 void	freeino __P((ino_t));
52 void	freeinodebuf __P((void));
53 int	ftypeok __P((struct ext2fs_dinode *));
54 void	getpathname __P((char *, ino_t, ino_t));
55 void	inocleanup __P((void));
56 void	inodirty __P((void));
57 int	linkup __P((ino_t, ino_t));
58 int	makeentry __P((ino_t, ino_t, char *));
59 void	pass1 __P((void));
60 void	pass1b __P((void));
61 void	pass2 __P((void));
62 void	pass3 __P((void));
63 void	pass4 __P((void));
64 int	pass1check __P((struct inodesc *));
65 int	pass4check __P((struct inodesc *));
66 void	pass5 __P((void));
67 void	pinode __P((ino_t));
68 void	propagate __P((void));
69 int	reply __P((char *));
70 void	resetinodebuf __P((void));
71 int	setup __P((const char *));
72 struct	ext2fs_dinode * getnextinode __P((ino_t));
73 void	catch __P((int));
74 void	catchquit __P((int));
75 void	voidquit __P((int));
76