From 7d54fff460aa976d599a5456a3b7f53c7e5020ee Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 3 Dec 1995 16:42:02 +0000 Subject: Added prototypes. --- sys/fs/msdosfs/msdosfs_fat.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'sys/fs/msdosfs/msdosfs_fat.c') diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c index caa62dd..5a59bbb 100644 --- a/sys/fs/msdosfs/msdosfs_fat.c +++ b/sys/fs/msdosfs/msdosfs_fat.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_fat.c,v 1.8 1995/10/29 15:31:49 phk Exp $ */ +/* $Id: msdosfs_fat.c,v 1.9 1995/11/07 14:06:42 phk Exp $ */ /* $NetBSD: msdosfs_fat.c,v 1.12 1994/08/21 18:44:04 ws Exp $ */ /*- @@ -69,7 +69,6 @@ #include #include -static void fc_lookup __P((struct denode *dep, u_long findcn, u_long *frcnp, u_long *fsrcnp)); /* * Fat cache stats. */ @@ -86,6 +85,22 @@ int fc_largedistance; /* off by more than LMMAX */ /* Byte offset in FAT on filesystem pmp, cluster cn */ #define FATOFS(pmp, cn) (FAT12(pmp) ? (cn) * 3 / 2 : (cn) * 2) +static int chainalloc __P((struct msdosfsmount *pmp, u_long start, + u_long count, u_long fillwith, + u_long *retcluster, u_long *got)); +static int chainlength __P((struct msdosfsmount *pmp, u_long start, + u_long count)); +static void fatblock __P((struct msdosfsmount *pmp, u_long ofs, + u_long *bnp, u_long *sizep, u_long *bop)); +static int fatchain __P((struct msdosfsmount *pmp, u_long start, + u_long count, u_long fillwith)); +static void fc_lookup __P((struct denode *dep, u_long findcn, + u_long *frcnp, u_long *fsrcnp)); +static void updatefats __P((struct msdosfsmount *pmp, struct buf *bp, + u_long fatbn)); +static void usemap_alloc __P((struct msdosfsmount *pmp, u_long cn)); +static void usemap_free __P((struct msdosfsmount *pmp, u_long cn)); + static void fatblock(pmp, ofs, bnp, sizep, bop) struct msdosfsmount *pmp; -- cgit v1.1