staticize private parts.

This commit is contained in:
Poul-Henning Kamp 1995-11-07 14:06:45 +00:00
parent 159a024357
commit 7fefffee96
12 changed files with 70 additions and 70 deletions

View file

@ -1,4 +1,4 @@
/* $Id: fat.h,v 1.2 1994/09/27 20:42:41 phk Exp $ */
/* $Id: fat.h,v 1.3 1995/05/30 08:07:34 rgrimes Exp $ */
/* $NetBSD: fat.h,v 1.4 1994/08/21 18:43:57 ws Exp $ */
/*-
@ -95,7 +95,6 @@ int fatentry __P((int function, struct msdosfsmount *pmp, u_long cluster, u_long
int freeclusterchain __P((struct msdosfsmount *pmp, u_long startchain));
int extendfile __P((struct denode *dep, u_long count, struct buf **bpp, u_long *ncp, int flags));
void fc_purge __P((struct denode *dep, u_int frcn));
void fc_lookup __P((struct denode *dep, u_long findcn, u_long *frcnp, u_long *fsrcnp));
int readep __P((struct msdosfsmount *pmp, u_long dirclu, u_long dirofs, struct buf **bpp, struct direntry **epp));
int readde __P((struct denode *dep, struct buf **bpp, struct direntry **epp));

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_conv.c,v 1.5 1995/05/30 08:07:36 rgrimes Exp $ */
/* $Id: msdosfs_conv.c,v 1.6 1995/10/29 15:31:46 phk Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */
/*
@ -34,7 +34,7 @@
/*
* Total number of days that have passed for each month in a regular year.
*/
u_short regyear[] = {
static u_short regyear[] = {
31, 59, 90, 120, 151, 181,
212, 243, 273, 304, 334, 365
};
@ -42,7 +42,7 @@ u_short regyear[] = {
/*
* Total number of days that have passed for each month in a leap year.
*/
u_short leapyear[] = {
static u_short leapyear[] = {
31, 60, 91, 121, 152, 182,
213, 244, 274, 305, 335, 366
};

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_fat.c,v 1.7 1995/05/30 08:07:40 rgrimes Exp $ */
/* $Id: msdosfs_fat.c,v 1.8 1995/10/29 15:31:49 phk Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.12 1994/08/21 18:44:04 ws Exp $ */
/*-
@ -69,6 +69,7 @@
#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.
*/
@ -251,7 +252,7 @@ hiteof:;
* Find the closest entry in the fat cache to the cluster we are looking
* for.
*/
void
static void
fc_lookup(dep, findcn, frcnp, fsrcnp)
struct denode *dep;
u_long findcn;
@ -576,7 +577,7 @@ fatchain(pmp, start, count, fillwith)
* start - start of chain
* count - maximum interesting length
*/
int
static int
chainlength(pmp, start, count)
struct msdosfsmount *pmp;
u_long start;
@ -622,7 +623,7 @@ chainlength(pmp, start, count)
* retcluster - put the first allocated cluster's number here.
* got - how many clusters were actually allocated.
*/
int
static int
chainalloc(pmp, start, count, fillwith, retcluster, got)
struct msdosfsmount *pmp;
u_long start;

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_lookup.c,v 1.3 1995/05/09 16:30:44 bde Exp $ */
/* $Id: msdosfs_lookup.c,v 1.4 1995/05/30 08:07:41 rgrimes Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.14 1994/08/21 18:44:07 ws Exp $ */
/*-
@ -547,7 +547,7 @@ createde(dep, ddep, depp)
/*
* Read in a directory entry and mark it as being deleted.
*/
int
static int
markdeleted(pmp, dirclust, diroffset)
struct msdosfsmount *pmp;
u_long dirclust;

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_vfsops.c,v 1.6 1994/12/12 12:35:47 bde Exp $ */
/* $Id: msdosfs_vfsops.c,v 1.7 1995/05/30 08:07:43 rgrimes Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.19 1994/08/21 18:44:10 ws Exp $ */
/*-
@ -67,14 +67,14 @@
#include <msdosfs/msdosfsmount.h>
#include <msdosfs/fat.h>
int msdosfsdoforce = 1; /* 1 = force unmount */
static int msdosfsdoforce = 1; /* 1 = force unmount */
/*
* mp - path - addr in user space of mount point (ie /usr or whatever)
* data - addr in user space of mount params including the name of the block
* special file to treat as a filesystem.
*/
int
static int
msdosfs_mount(mp, path, data, ndp, p)
struct mount *mp;
char *path;
@ -235,7 +235,7 @@ msdosfs_mount(mp, path, data, ndp, p)
return 0;
}
int
static int
mountmsdosfs(devvp, mp, p)
struct vnode *devvp;
struct mount *mp;
@ -477,7 +477,7 @@ error_exit:;
return error;
}
int
static int
msdosfs_start(mp, flags, p)
struct mount *mp;
int flags;
@ -489,7 +489,7 @@ msdosfs_start(mp, flags, p)
/*
* Unmount the filesystem described by mp.
*/
int
static int
msdosfs_unmount(mp, mntflags, p)
struct mount *mp;
int mntflags;
@ -525,7 +525,7 @@ msdosfs_unmount(mp, mntflags, p)
return error;
}
int
static int
msdosfs_root(mp, vpp)
struct mount *mp;
struct vnode **vpp;
@ -544,7 +544,7 @@ msdosfs_root(mp, vpp)
return error;
}
int
static int
msdosfs_quotactl(mp, cmds, uid, arg, p)
struct mount *mp;
int cmds;
@ -559,7 +559,7 @@ msdosfs_quotactl(mp, cmds, uid, arg, p)
#endif
}
int
static int
msdosfs_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
@ -596,7 +596,7 @@ msdosfs_statfs(mp, sbp, p)
return 0;
}
int
static int
msdosfs_sync(mp, waitfor, cred, p)
struct mount *mp;
int waitfor;
@ -654,7 +654,7 @@ loop:
return allerror;
}
int
static int
msdosfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
struct mount *mp;
struct fid *fhp;
@ -685,7 +685,7 @@ msdosfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
}
int
static int
msdosfs_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
@ -700,7 +700,7 @@ msdosfs_vptofh(vp, fhp)
return 0;
}
int
static int
msdosfs_vget(mp, ino, vpp)
struct mount *mp;
ino_t ino;

View file

@ -1,4 +1,4 @@
/* $Id: msdosfsmount.h,v 1.2 1994/09/27 20:42:59 phk Exp $ */
/* $Id: msdosfsmount.h,v 1.3 1995/05/30 08:07:47 rgrimes Exp $ */
/* $NetBSD: msdosfsmount.h,v 1.7 1994/08/21 18:44:17 ws Exp $ */
/*-
@ -171,15 +171,15 @@ struct msdosfsmount {
/*
* Prototypes for MSDOSFS virtual filesystem operations
*/
int msdosfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *, struct proc *));
int msdosfs_start __P((struct mount *, int, struct proc *));
int msdosfs_unmount __P((struct mount *, int, struct proc *));
int msdosfs_root __P((struct mount *, struct vnode **));
int msdosfs_quotactl __P((struct mount *, int, uid_t, caddr_t, struct proc *));
int msdosfs_statfs __P((struct mount *, struct statfs *, struct proc *));
int msdosfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
int msdosfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, struct vnode **, int *, struct ucred **));
int msdosfs_vptofh __P((struct vnode *, struct fid *));
static int msdosfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *, struct proc *));
static int msdosfs_start __P((struct mount *, int, struct proc *));
static int msdosfs_unmount __P((struct mount *, int, struct proc *));
static int msdosfs_root __P((struct mount *, struct vnode **));
static int msdosfs_quotactl __P((struct mount *, int, uid_t, caddr_t, struct proc *));
static int msdosfs_statfs __P((struct mount *, struct statfs *, struct proc *));
static int msdosfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
static int msdosfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, struct vnode **, int *, struct ucred **));
static int msdosfs_vptofh __P((struct vnode *, struct fid *));
int msdosfs_init __P(());
int mountmsdosfs __P((struct vnode *devvp, struct mount *mp, struct proc *p));
static int mountmsdosfs __P((struct vnode *devvp, struct mount *mp, struct proc *p));

View file

@ -1,4 +1,4 @@
/* $Id: fat.h,v 1.2 1994/09/27 20:42:41 phk Exp $ */
/* $Id: fat.h,v 1.3 1995/05/30 08:07:34 rgrimes Exp $ */
/* $NetBSD: fat.h,v 1.4 1994/08/21 18:43:57 ws Exp $ */
/*-
@ -95,7 +95,6 @@ int fatentry __P((int function, struct msdosfsmount *pmp, u_long cluster, u_long
int freeclusterchain __P((struct msdosfsmount *pmp, u_long startchain));
int extendfile __P((struct denode *dep, u_long count, struct buf **bpp, u_long *ncp, int flags));
void fc_purge __P((struct denode *dep, u_int frcn));
void fc_lookup __P((struct denode *dep, u_long findcn, u_long *frcnp, u_long *fsrcnp));
int readep __P((struct msdosfsmount *pmp, u_long dirclu, u_long dirofs, struct buf **bpp, struct direntry **epp));
int readde __P((struct denode *dep, struct buf **bpp, struct direntry **epp));

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_conv.c,v 1.5 1995/05/30 08:07:36 rgrimes Exp $ */
/* $Id: msdosfs_conv.c,v 1.6 1995/10/29 15:31:46 phk Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */
/*
@ -34,7 +34,7 @@
/*
* Total number of days that have passed for each month in a regular year.
*/
u_short regyear[] = {
static u_short regyear[] = {
31, 59, 90, 120, 151, 181,
212, 243, 273, 304, 334, 365
};
@ -42,7 +42,7 @@ u_short regyear[] = {
/*
* Total number of days that have passed for each month in a leap year.
*/
u_short leapyear[] = {
static u_short leapyear[] = {
31, 60, 91, 121, 152, 182,
213, 244, 274, 305, 335, 366
};

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_fat.c,v 1.7 1995/05/30 08:07:40 rgrimes Exp $ */
/* $Id: msdosfs_fat.c,v 1.8 1995/10/29 15:31:49 phk Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.12 1994/08/21 18:44:04 ws Exp $ */
/*-
@ -69,6 +69,7 @@
#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.
*/
@ -251,7 +252,7 @@ hiteof:;
* Find the closest entry in the fat cache to the cluster we are looking
* for.
*/
void
static void
fc_lookup(dep, findcn, frcnp, fsrcnp)
struct denode *dep;
u_long findcn;
@ -576,7 +577,7 @@ fatchain(pmp, start, count, fillwith)
* start - start of chain
* count - maximum interesting length
*/
int
static int
chainlength(pmp, start, count)
struct msdosfsmount *pmp;
u_long start;
@ -622,7 +623,7 @@ chainlength(pmp, start, count)
* retcluster - put the first allocated cluster's number here.
* got - how many clusters were actually allocated.
*/
int
static int
chainalloc(pmp, start, count, fillwith, retcluster, got)
struct msdosfsmount *pmp;
u_long start;

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_lookup.c,v 1.3 1995/05/09 16:30:44 bde Exp $ */
/* $Id: msdosfs_lookup.c,v 1.4 1995/05/30 08:07:41 rgrimes Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.14 1994/08/21 18:44:07 ws Exp $ */
/*-
@ -547,7 +547,7 @@ createde(dep, ddep, depp)
/*
* Read in a directory entry and mark it as being deleted.
*/
int
static int
markdeleted(pmp, dirclust, diroffset)
struct msdosfsmount *pmp;
u_long dirclust;

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_vfsops.c,v 1.6 1994/12/12 12:35:47 bde Exp $ */
/* $Id: msdosfs_vfsops.c,v 1.7 1995/05/30 08:07:43 rgrimes Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.19 1994/08/21 18:44:10 ws Exp $ */
/*-
@ -67,14 +67,14 @@
#include <msdosfs/msdosfsmount.h>
#include <msdosfs/fat.h>
int msdosfsdoforce = 1; /* 1 = force unmount */
static int msdosfsdoforce = 1; /* 1 = force unmount */
/*
* mp - path - addr in user space of mount point (ie /usr or whatever)
* data - addr in user space of mount params including the name of the block
* special file to treat as a filesystem.
*/
int
static int
msdosfs_mount(mp, path, data, ndp, p)
struct mount *mp;
char *path;
@ -235,7 +235,7 @@ msdosfs_mount(mp, path, data, ndp, p)
return 0;
}
int
static int
mountmsdosfs(devvp, mp, p)
struct vnode *devvp;
struct mount *mp;
@ -477,7 +477,7 @@ error_exit:;
return error;
}
int
static int
msdosfs_start(mp, flags, p)
struct mount *mp;
int flags;
@ -489,7 +489,7 @@ msdosfs_start(mp, flags, p)
/*
* Unmount the filesystem described by mp.
*/
int
static int
msdosfs_unmount(mp, mntflags, p)
struct mount *mp;
int mntflags;
@ -525,7 +525,7 @@ msdosfs_unmount(mp, mntflags, p)
return error;
}
int
static int
msdosfs_root(mp, vpp)
struct mount *mp;
struct vnode **vpp;
@ -544,7 +544,7 @@ msdosfs_root(mp, vpp)
return error;
}
int
static int
msdosfs_quotactl(mp, cmds, uid, arg, p)
struct mount *mp;
int cmds;
@ -559,7 +559,7 @@ msdosfs_quotactl(mp, cmds, uid, arg, p)
#endif
}
int
static int
msdosfs_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
@ -596,7 +596,7 @@ msdosfs_statfs(mp, sbp, p)
return 0;
}
int
static int
msdosfs_sync(mp, waitfor, cred, p)
struct mount *mp;
int waitfor;
@ -654,7 +654,7 @@ loop:
return allerror;
}
int
static int
msdosfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
struct mount *mp;
struct fid *fhp;
@ -685,7 +685,7 @@ msdosfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
}
int
static int
msdosfs_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
@ -700,7 +700,7 @@ msdosfs_vptofh(vp, fhp)
return 0;
}
int
static int
msdosfs_vget(mp, ino, vpp)
struct mount *mp;
ino_t ino;

View file

@ -1,4 +1,4 @@
/* $Id: msdosfsmount.h,v 1.2 1994/09/27 20:42:59 phk Exp $ */
/* $Id: msdosfsmount.h,v 1.3 1995/05/30 08:07:47 rgrimes Exp $ */
/* $NetBSD: msdosfsmount.h,v 1.7 1994/08/21 18:44:17 ws Exp $ */
/*-
@ -171,15 +171,15 @@ struct msdosfsmount {
/*
* Prototypes for MSDOSFS virtual filesystem operations
*/
int msdosfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *, struct proc *));
int msdosfs_start __P((struct mount *, int, struct proc *));
int msdosfs_unmount __P((struct mount *, int, struct proc *));
int msdosfs_root __P((struct mount *, struct vnode **));
int msdosfs_quotactl __P((struct mount *, int, uid_t, caddr_t, struct proc *));
int msdosfs_statfs __P((struct mount *, struct statfs *, struct proc *));
int msdosfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
int msdosfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, struct vnode **, int *, struct ucred **));
int msdosfs_vptofh __P((struct vnode *, struct fid *));
static int msdosfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *, struct proc *));
static int msdosfs_start __P((struct mount *, int, struct proc *));
static int msdosfs_unmount __P((struct mount *, int, struct proc *));
static int msdosfs_root __P((struct mount *, struct vnode **));
static int msdosfs_quotactl __P((struct mount *, int, uid_t, caddr_t, struct proc *));
static int msdosfs_statfs __P((struct mount *, struct statfs *, struct proc *));
static int msdosfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
static int msdosfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, struct vnode **, int *, struct ucred **));
static int msdosfs_vptofh __P((struct vnode *, struct fid *));
int msdosfs_init __P(());
int mountmsdosfs __P((struct vnode *devvp, struct mount *mp, struct proc *p));
static int mountmsdosfs __P((struct vnode *devvp, struct mount *mp, struct proc *p));