diff options
author | eivind <eivind@FreeBSD.org> | 1998-02-09 06:11:36 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-02-09 06:11:36 +0000 |
commit | d7a6ab28035779065026b70dca440892d819c0bc (patch) | |
tree | 930fd4603b42a095e9f3669517dea29274323575 /sys/fs | |
parent | 4538098d0b3fbe09f64c578b730483a6e77ff40f (diff) | |
download | FreeBSD-src-d7a6ab28035779065026b70dca440892d819c0bc.zip FreeBSD-src-d7a6ab28035779065026b70dca440892d819c0bc.tar.gz |
Staticize.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/cd9660/cd9660_node.c | 8 | ||||
-rw-r--r-- | sys/fs/fdescfs/fdesc_vnops.c | 6 | ||||
-rw-r--r-- | sys/fs/msdosfs/msdosfs_conv.c | 14 | ||||
-rw-r--r-- | sys/fs/msdosfs/msdosfs_denode.c | 6 | ||||
-rw-r--r-- | sys/fs/msdosfs/msdosfs_fat.c | 12 | ||||
-rw-r--r-- | sys/fs/nullfs/null_subr.c | 6 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 4 | ||||
-rw-r--r-- | sys/fs/umapfs/umap_subr.c | 6 |
8 files changed, 31 insertions, 31 deletions
diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c index 7220d1e..a7a971b 100644 --- a/sys/fs/cd9660/cd9660_node.c +++ b/sys/fs/cd9660/cd9660_node.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_node.c 8.2 (Berkeley) 1/23/94 - * $Id: cd9660_node.c,v 1.23 1998/02/04 22:32:29 eivind Exp $ + * $Id: cd9660_node.c,v 1.24 1998/02/06 12:13:20 eivind Exp $ */ #include <sys/param.h> @@ -55,10 +55,10 @@ /* * Structures associated with iso_node caching. */ -struct iso_node **isohashtbl; -u_long isohash; +static struct iso_node **isohashtbl; +static u_long isohash; #define INOHASH(device, inum) (((device) + ((inum)>>12)) & isohash) -struct simplelock cd9660_ihash_slock; +static struct simplelock cd9660_ihash_slock; static void cd9660_ihashrem __P((struct iso_node *)); static unsigned cd9660_chars2ui __P((unsigned char *begin, int len)); diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c index 3324a4a..2cbe479 100644 --- a/sys/fs/fdescfs/fdesc_vnops.c +++ b/sys/fs/fdescfs/fdesc_vnops.c @@ -35,7 +35,7 @@ * * @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94 * - * $Id: fdesc_vnops.c,v 1.32 1997/10/26 20:55:14 phk Exp $ + * $Id: fdesc_vnops.c,v 1.33 1997/10/27 13:33:38 bde Exp $ */ /* @@ -77,8 +77,8 @@ FD_STDIN, FD_STDOUT, FD_STDERR must be a sequence n, n+1, n+2 #define NFDCACHE 4 #define FD_NHASH(ix) \ (&fdhashtbl[(ix) & fdhash]) -LIST_HEAD(fdhashhead, fdescnode) *fdhashtbl; -u_long fdhash; +static LIST_HEAD(fdhashhead, fdescnode) *fdhashtbl; +static u_long fdhash; static int fdesc_attr __P((int fd, struct vattr *vap, struct ucred *cred, struct proc *p)); diff --git a/sys/fs/msdosfs/msdosfs_conv.c b/sys/fs/msdosfs/msdosfs_conv.c index e35f52b..59f4d2c 100644 --- a/sys/fs/msdosfs/msdosfs_conv.c +++ b/sys/fs/msdosfs/msdosfs_conv.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: msdosfs_conv.c,v 1.13 1997/02/22 09:40:46 peter Exp $ */ /* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */ /* @@ -51,10 +51,10 @@ static u_short leapyear[] = { * Variables used to remember parts of the last time conversion. Maybe we * can avoid a full conversion. */ -u_long lasttime; -u_long lastday; -u_short lastddate; -u_short lastdtime; +static u_long lasttime; +static u_long lastday; +static u_short lastddate; +static u_short lastdtime; /* * Convert the unix version of time to dos's idea of time to be used in @@ -127,8 +127,8 @@ unix2dostime(tsp, ddp, dtp) */ #define SECONDSTO1980 (((8 * 365) + (2 * 366)) * (24 * 60 * 60)) -u_short lastdosdate; -u_long lastseconds; +static u_short lastdosdate; +static u_long lastseconds; /* * Convert from dos' idea of time to unix'. This will probably only be diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c index 4b961f5..81e0699 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.29 1998/02/04 22:33:00 eivind Exp $ */ +/* $Id: msdosfs_denode.c,v 1.30 1998/02/06 12:13:46 eivind Exp $ */ /* $NetBSD: msdosfs_denode.c,v 1.9 1994/08/21 18:44:00 ws Exp $ */ /*- @@ -68,8 +68,8 @@ static MALLOC_DEFINE(M_MSDOSFSNODE, "MSDOSFS node", "MSDOSFS vnode private part"); -struct denode **dehashtbl; -u_long dehash; /* size of hash table - 1 */ +static struct denode **dehashtbl; +static u_long dehash; /* size of hash table - 1 */ #define DEHASH(dev, deno) (dehashtbl[((dev) + (deno)) & dehash]) static struct simplelock dehash_slock; diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c index f3c2f5f..bb25ec2 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.14 1998/02/04 22:33:00 eivind Exp $ */ +/* $Id: msdosfs_fat.c,v 1.15 1998/02/06 12:13:46 eivind Exp $ */ /* $NetBSD: msdosfs_fat.c,v 1.12 1994/08/21 18:44:04 ws Exp $ */ /*- @@ -69,15 +69,15 @@ /* * Fat cache stats. */ -int fc_fileextends; /* # of file extends */ -int fc_lfcempty; /* # of time last file cluster cache entry +static int fc_fileextends; /* # of file extends */ +static int fc_lfcempty; /* # of time last file cluster cache entry * was empty */ -int fc_bmapcalls; /* # of times pcbmap was called */ +static int fc_bmapcalls; /* # of times pcbmap was called */ #define LMMAX 20 -int fc_lmdistance[LMMAX]; /* counters for how far off the last +static int fc_lmdistance[LMMAX];/* counters for how far off the last * cluster mapped entry was. */ -int fc_largedistance; /* off by more than LMMAX */ +static 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) diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index de64494..7244d05 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -35,7 +35,7 @@ * * @(#)null_subr.c 8.7 (Berkeley) 5/14/95 * - * $Id: null_subr.c,v 1.15 1998/02/04 22:32:46 eivind Exp $ + * $Id: null_subr.c,v 1.16 1998/02/06 12:13:36 eivind Exp $ */ #include "opt_debug_nullfs.h" @@ -61,8 +61,8 @@ #define NULL_NHASH(vp) \ (&null_node_hashtbl[(((u_long)vp)>>LOG2_SIZEVNODE) & null_node_hash]) -LIST_HEAD(null_node_hashhead, null_node) *null_node_hashtbl; -u_long null_node_hash; +static LIST_HEAD(null_node_hashhead, null_node) *null_node_hashtbl; +static u_long null_node_hash; static int null_node_alloc __P((struct mount *mp, struct vnode *lowervp, struct vnode **vpp)); diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index 932b6c1..a346ae7 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95 * - * $Id: procfs_vnops.c,v 1.53 1998/02/04 22:32:49 eivind Exp $ + * $Id: procfs_vnops.c,v 1.54 1998/02/06 12:13:42 eivind Exp $ */ /* @@ -80,7 +80,7 @@ static int procfs_setattr __P((struct vop_setattr_args *)); * process-specific sub-directories. It is * used in procfs_lookup and procfs_readdir */ -struct proc_target { +static struct proc_target { u_char pt_type; u_char pt_namlen; char *pt_name; diff --git a/sys/fs/umapfs/umap_subr.c b/sys/fs/umapfs/umap_subr.c index 549d3e4..dd93078 100644 --- a/sys/fs/umapfs/umap_subr.c +++ b/sys/fs/umapfs/umap_subr.c @@ -35,7 +35,7 @@ * * @(#)umap_subr.c 8.9 (Berkeley) 5/14/95 * - * $Id: umap_subr.c,v 1.11 1997/08/02 14:32:24 bde Exp $ + * $Id: umap_subr.c,v 1.12 1998/02/07 01:36:24 kato Exp $ */ #include <sys/param.h> @@ -59,8 +59,8 @@ #define UMAP_NHASH(vp) \ (&umap_node_hashtbl[(((u_long)vp)>>LOG2_SIZEVNODE) & umap_node_hash]) -LIST_HEAD(umap_node_hashhead, umap_node) *umap_node_hashtbl; -u_long umap_node_hash; +static LIST_HEAD(umap_node_hashhead, umap_node) *umap_node_hashtbl; +static u_long umap_node_hash; static u_long umap_findid __P((u_long id, u_long map[][2], int nentries)); static int umap_node_alloc __P((struct mount *mp, struct vnode *lowervp, |