aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1995-11-07 14:06:45 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1995-11-07 14:06:45 +0000
commit7fefffee967ab4fa1628fdb90c53315b8e2951c5 (patch)
tree0614501f77e254451288fec38a4f16e0e912498b /sys/fs
parent159a024357c734b9283f16ca15d271af5232a8b8 (diff)
downloadsrc-7fefffee967ab4fa1628fdb90c53315b8e2951c5.tar.gz
src-7fefffee967ab4fa1628fdb90c53315b8e2951c5.zip
staticize private parts.
Notes
Notes: svn path=/head/; revision=12144
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/msdosfs/fat.h3
-rw-r--r--sys/fs/msdosfs/msdosfs_conv.c6
-rw-r--r--sys/fs/msdosfs/msdosfs_fat.c9
-rw-r--r--sys/fs/msdosfs/msdosfs_lookup.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c26
-rw-r--r--sys/fs/msdosfs/msdosfsmount.h22
6 files changed, 35 insertions, 35 deletions
diff --git a/sys/fs/msdosfs/fat.h b/sys/fs/msdosfs/fat.h
index 3b043c14d230..7fc30ba343cf 100644
--- a/sys/fs/msdosfs/fat.h
+++ b/sys/fs/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/fs/msdosfs/msdosfs_conv.c b/sys/fs/msdosfs/msdosfs_conv.c
index 827d6517bfbb..d3b3c074c837 100644
--- a/sys/fs/msdosfs/msdosfs_conv.c
+++ b/sys/fs/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/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c
index 10f397a77273..caa62ddedc4b 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.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/fs/msdosfs/msdosfs_lookup.c b/sys/fs/msdosfs/msdosfs_lookup.c
index a80e5ae7bac3..a53bfc80f7a6 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.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/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index bbb4fc6d2769..e76097b6cd28 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/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/fs/msdosfs/msdosfsmount.h b/sys/fs/msdosfs/msdosfsmount.h
index 5309acbd0851..528bdbd8191d 100644
--- a/sys/fs/msdosfs/msdosfsmount.h
+++ b/sys/fs/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));