summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-03 16:42:02 +0000
committerbde <bde@FreeBSD.org>1995-12-03 16:42:02 +0000
commit7d54fff460aa976d599a5456a3b7f53c7e5020ee (patch)
tree020580459e15661f882775e048e3b9651d8e5938 /sys/fs
parent64a1fca498baa82452b7832f03fb52d55b65861e (diff)
downloadFreeBSD-src-7d54fff460aa976d599a5456a3b7f53c7e5020ee.zip
FreeBSD-src-7d54fff460aa976d599a5456a3b7f53c7e5020ee.tar.gz
Added prototypes.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/msdosfs/msdosfs_denode.c8
-rw-r--r--sys/fs/msdosfs/msdosfs_fat.c19
-rw-r--r--sys/fs/msdosfs/msdosfs_lookup.c5
-rw-r--r--sys/fs/msdosfs/msdosfs_vnops.c3
4 files changed, 30 insertions, 5 deletions
diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c
index 2635ac1..b405705 100644
--- a/sys/fs/msdosfs/msdosfs_denode.c
+++ b/sys/fs/msdosfs/msdosfs_denode.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_denode.c,v 1.12 1995/05/30 08:07:37 rgrimes Exp $ */
+/* $Id: msdosfs_denode.c,v 1.13 1995/08/02 12:59:48 dfr Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.9 1994/08/21 18:44:00 ws Exp $ */
/*-
@@ -87,6 +87,12 @@ union _qcvt {
(q) = tmp.qcvt; \
}
+static struct denode *
+ msdosfs_hashget __P((dev_t dev, u_long dirclust,
+ u_long diroff));
+static void msdosfs_hashins __P((struct denode *dep));
+static void msdosfs_hashrem __P((struct denode *dep));
+
int msdosfs_init()
{
dehashtbl = hashinit(desiredvnodes/2, M_MSDOSFSMNT, &dehash);
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 <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;
diff --git a/sys/fs/msdosfs/msdosfs_lookup.c b/sys/fs/msdosfs/msdosfs_lookup.c
index a53bfc8..bc52390 100644
--- a/sys/fs/msdosfs/msdosfs_lookup.c
+++ b/sys/fs/msdosfs/msdosfs_lookup.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_lookup.c,v 1.4 1995/05/30 08:07:41 rgrimes Exp $ */
+/* $Id: msdosfs_lookup.c,v 1.5 1995/11/07 14:06:43 phk Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.14 1994/08/21 18:44:07 ws Exp $ */
/*-
@@ -61,6 +61,9 @@
#include <msdosfs/msdosfsmount.h>
#include <msdosfs/fat.h>
+static int markdeleted __P((struct msdosfsmount *pmp, u_long dirclust,
+ u_long diroffset));
+
/*
* When we search a directory the blocks containing directory entries are
* read and examined. The directory entries contain information that would
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
index c3ace27..b0d5cc7 100644
--- a/sys/fs/msdosfs/msdosfs_vnops.c
+++ b/sys/fs/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vnops.c,v 1.27 1995/11/09 08:17:23 bde Exp $ */
+/* $Id: msdosfs_vnops.c,v 1.28 1995/11/13 18:47:40 bde Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */
/*-
@@ -105,6 +105,7 @@ static int msdosfs_strategy __P((struct vop_strategy_args *));
static int msdosfs_print __P((struct vop_print_args *));
static int msdosfs_islocked __P((struct vop_islocked_args *));
static int msdosfs_advlock __P((struct vop_advlock_args *));
+static int msdosfs_pathconf __P((struct vop_pathconf_args *ap));
static int msdosfs_reallocblks __P((struct vop_reallocblks_args *));
/*
OpenPOWER on IntegriCloud