summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-07 14:06:45 +0000
committerphk <phk@FreeBSD.org>1995-11-07 14:06:45 +0000
commitea7d29ed7aef8fea26fc90d1d979205ad3e3a190 (patch)
tree0614501f77e254451288fec38a4f16e0e912498b /sys/msdosfs
parent06201558ede6232409ec4bfc8672ef2a64eaa0ee (diff)
downloadFreeBSD-src-ea7d29ed7aef8fea26fc90d1d979205ad3e3a190.zip
FreeBSD-src-ea7d29ed7aef8fea26fc90d1d979205ad3e3a190.tar.gz
staticize private parts.
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/fat.h3
-rw-r--r--sys/msdosfs/msdosfs_conv.c6
-rw-r--r--sys/msdosfs/msdosfs_fat.c9
-rw-r--r--sys/msdosfs/msdosfs_lookup.c4
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c26
-rw-r--r--sys/msdosfs/msdosfsmount.h22
6 files changed, 35 insertions, 35 deletions
diff --git a/sys/msdosfs/fat.h b/sys/msdosfs/fat.h
index 3b043c1..7fc30ba 100644
--- a/sys/msdosfs/fat.h
+++ b/sys/msdosfs/fat.h
@@ -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));
diff --git a/sys/msdosfs/msdosfs_conv.c b/sys/msdosfs/msdosfs_conv.c
index 827d651..d3b3c07 100644
--- a/sys/msdosfs/msdosfs_conv.c
+++ b/sys/msdosfs/msdosfs_conv.c
@@ -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
};
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index 10f397a..caa62dd 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -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;
diff --git a/sys/msdosfs/msdosfs_lookup.c b/sys/msdosfs/msdosfs_lookup.c
index a80e5ae..a53bfc8 100644
--- a/sys/msdosfs/msdosfs_lookup.c
+++ b/sys/msdosfs/msdosfs_lookup.c
@@ -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;
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index bbb4fc6..e76097b 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -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;
diff --git a/sys/msdosfs/msdosfsmount.h b/sys/msdosfs/msdosfsmount.h
index 5309acb..528bdbd 100644
--- a/sys/msdosfs/msdosfsmount.h
+++ b/sys/msdosfs/msdosfsmount.h
@@ -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));
OpenPOWER on IntegriCloud