Home | History | Annotate | Line # | Download | only in fsck_ffs
extern.h revision 1.7
      1 /*	$NetBSD: extern.h,v 1.7 1997/09/16 16:44:52 lukem 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 
     27 void		adjust __P((struct inodesc *, int));
     28 ufs_daddr_t	allocblk __P((long));
     29 ino_t		allocdir __P((ino_t, ino_t, int));
     30 ino_t		allocino __P((ino_t request, int type));
     31 void		blkerror __P((ino_t, char *, ufs_daddr_t));
     32 char	       *blockcheck __P((char *));
     33 int		bread __P((int, char *, ufs_daddr_t, long));
     34 void		bufinit __P((void));
     35 void		bwrite __P((int, char *, ufs_daddr_t, long));
     36 void		cacheino __P((struct dinode *, ino_t));
     37 void		catch __P((int));
     38 void		catchquit __P((int));
     39 int		changeino __P((ino_t, char *, ino_t));
     40 int		chkrange __P((ufs_daddr_t, int));
     41 void		ckfini __P((int));
     42 int		ckinode __P((struct dinode *, struct inodesc *));
     43 void		clri __P((struct inodesc *, char *, int));
     44 struct		dinode * getnextinode __P((ino_t));
     45 void		direrror __P((ino_t, char *));
     46 int		dirscan __P((struct inodesc *));
     47 int		dofix __P((struct inodesc *, char *));
     48 void		ffs_clrblock __P((struct fs *, u_char *, ufs_daddr_t));
     49 void		ffs_fragacct __P((struct fs *, int, int32_t [], int));
     50 int		ffs_isblock __P((struct fs *, u_char *, ufs_daddr_t));
     51 void		ffs_setblock __P((struct fs *, u_char *, ufs_daddr_t));
     52 void		fileerror __P((ino_t, ino_t, char *));
     53 int		findino __P((struct inodesc *));
     54 int		findname __P((struct inodesc *));
     55 void		flush __P((int, struct bufarea *));
     56 void		freeblk __P((ufs_daddr_t, long));
     57 void		freeino __P((ino_t));
     58 void		freeinodebuf __P((void));
     59 int		ftypeok __P((struct dinode *));
     60 int		ftypeok __P((struct dinode *dp));
     61 void		getblk __P((struct bufarea *bp, ufs_daddr_t blk, long size));
     62 struct bufarea *getdatablk __P((ufs_daddr_t, long));
     63 struct inoinfo *getinoinfo __P((ino_t));
     64 struct dinode  *getnextinode __P((ino_t));
     65 struct dinode  *ginode __P((ino_t));
     66 void		getpathname __P((char *, ino_t, ino_t));
     67 void		inocleanup __P((void));
     68 void		inodirty __P((void));
     69 int		linkup __P((ino_t, ino_t));
     70 int		makeentry __P((ino_t, ino_t, char *));
     71 void		panic __P((const char *fmt, ...));
     72 void		pass1 __P((void));
     73 void		pass1b __P((void));
     74 int		pass1check __P((struct inodesc *));
     75 void		pass2 __P((void));
     76 void		pass3 __P((void));
     77 void		pass4 __P((void));
     78 int		pass4check __P((struct inodesc *));
     79 void		pass5 __P((void));
     80 void		pfatal __P((const char *fmt, ...));
     81 void		pinode __P((ino_t));
     82 void		propagate __P((void));
     83 void		pwarn __P((const char *fmt, ...));
     84 int		reply __P((char *));
     85 void		resetinodebuf __P((void));
     86 int		setup __P((char *));
     87 void		voidquit __P((int));
     88