Home | History | Annotate | Line # | Download | only in fsck_lfs
extern.h revision 1.3
      1 /* $NetBSD: extern.h,v 1.3 2000/05/23 01:48:52 perseant 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(struct inodesc *, short);
     28 int             allocblk(long);
     29 int             allocdir(ino_t, ino_t, int);
     30 void            blkerror(ino_t, char *, daddr_t);
     31 int             bread(int, char *, daddr_t, long);
     32 void            bufinit(void);
     33 void            bwrite(int, char *, daddr_t, long);
     34 void            cacheino(struct dinode *, ino_t);
     35 int             changeino(ino_t, char *, ino_t);
     36 struct fstab;
     37 int             chkrange(daddr_t, int);
     38 void            ckfini(int);
     39 int             ckinode(struct dinode *, struct inodesc *);
     40 void            clri(struct inodesc *, char *, int);
     41 int             dircheck(struct inodesc *, struct direct *);
     42 void            direrror(ino_t, char *);
     43 int             dirscan(struct inodesc *);
     44 int             dofix(struct inodesc *, char *);
     45 void            fileerror(ino_t, ino_t, char *);
     46 int             findino(struct inodesc *);
     47 int             findname(struct inodesc *);
     48 void            flush(int, struct bufarea *);
     49 void            freeblk(daddr_t, long);
     50 void            freeino(ino_t);
     51 void            freeinodebuf(void);
     52 int             ftypeok(struct dinode *);
     53 void            getpathname(char *, ino_t, ino_t);
     54 void            inocleanup(void);
     55 void            inodirty(void);
     56 int             linkup(ino_t, ino_t);
     57 int             makeentry(ino_t, ino_t, char *);
     58 void            pass0(void);
     59 void            pass1(void);
     60 void            pass1b(void);
     61 void            pass2(void);
     62 void            pass3(void);
     63 void            pass4(void);
     64 int             pass1check(struct inodesc *);
     65 int             pass4check(struct inodesc *);
     66 void            pass5(void);
     67 void            pinode(ino_t);
     68 void            propagate(void);
     69 int             reply(char *);
     70 void            resetinodebuf(void);
     71 int             setup(const char *);
     72 struct dinode  *getnextinode(ino_t);
     73 void            catch(int);
     74 void            catchquit(int);
     75 void            voidquit(int);
     76