Added prototypes.

This commit is contained in:
Bruce Evans 1995-12-03 16:42:02 +00:00
parent 9b5e8b3aa5
commit 58c27bcf99
8 changed files with 60 additions and 10 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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

View File

@ -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 *));
/*

View File

@ -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);

View File

@ -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;

View File

@ -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

View File

@ -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 *));
/*