aboutsummaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-12-03 16:42:02 +0000
committerBruce Evans <bde@FreeBSD.org>1995-12-03 16:42:02 +0000
commit58c27bcf9936f7c0d11dfda4f14d439ab7693d4d (patch)
tree020580459e15661f882775e048e3b9651d8e5938 /sys/msdosfs/msdosfs_fat.c
parent9b5e8b3aa54f6b5a613ad640be26529d4a45247e (diff)
Added prototypes.
Notes
Notes: svn path=/head/; revision=12596
Diffstat (limited to 'sys/msdosfs/msdosfs_fat.c')
-rw-r--r--sys/msdosfs/msdosfs_fat.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index caa62ddedc4b..5a59bbb7d87f 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/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 <msdosfs/denode.h>
#include <msdosfs/fat.h>
-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;