summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/fdesc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-07 13:39:31 +0000
committerphk <phk@FreeBSD.org>1995-11-07 13:39:31 +0000
commit06201558ede6232409ec4bfc8672ef2a64eaa0ee (patch)
tree5ec404e8e8dc9926c57f29c2582a00f2d4a3bb52 /sys/miscfs/fdesc
parent7be91d15574536aac505ca78080ea6134bd26f6c (diff)
downloadFreeBSD-src-06201558ede6232409ec4bfc8672ef2a64eaa0ee.zip
FreeBSD-src-06201558ede6232409ec4bfc8672ef2a64eaa0ee.tar.gz
Make a lot of private stuff static.
Should anybody out there wonder about this vendetta against global variables, it is basically to make it more visible what our interfaces in the kernel really are. I'm almost convinced we should have a #define PUBLIC /* public interface */ and use it in the #includes...
Diffstat (limited to 'sys/miscfs/fdesc')
-rw-r--r--sys/miscfs/fdesc/fdesc_vfsops.c24
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c44
2 files changed, 34 insertions, 34 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vfsops.c b/sys/miscfs/fdesc/fdesc_vfsops.c
index 4794250..db40cb7 100644
--- a/sys/miscfs/fdesc/fdesc_vfsops.c
+++ b/sys/miscfs/fdesc/fdesc_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94
*
- * $Id: fdesc_vfsops.c,v 1.4 1995/03/16 20:23:38 wollman Exp $
+ * $Id: fdesc_vfsops.c,v 1.5 1995/09/02 20:17:57 mpp Exp $
*/
/*
@@ -56,12 +56,12 @@
#include <sys/malloc.h>
#include <miscfs/fdesc/fdesc.h>
-int fdesc_statfs __P((struct mount *, struct statfs *, struct proc *));
+static int fdesc_statfs __P((struct mount *, struct statfs *, struct proc *));
/*
* Mount the per-process file descriptors (/dev/fd)
*/
-int
+static int
fdesc_mount(mp, path, data, ndp, p)
struct mount *mp;
char *path;
@@ -102,7 +102,7 @@ fdesc_mount(mp, path, data, ndp, p)
return (0);
}
-int
+static int
fdesc_start(mp, flags, p)
struct mount *mp;
int flags;
@@ -111,7 +111,7 @@ fdesc_start(mp, flags, p)
return (0);
}
-int
+static int
fdesc_unmount(mp, mntflags, p)
struct mount *mp;
int mntflags;
@@ -172,7 +172,7 @@ fdesc_root(mp, vpp)
return (0);
}
-int
+static int
fdesc_quotactl(mp, cmd, uid, arg, p)
struct mount *mp;
int cmd;
@@ -184,7 +184,7 @@ fdesc_quotactl(mp, cmd, uid, arg, p)
return (EOPNOTSUPP);
}
-int
+static int
fdesc_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
@@ -234,7 +234,7 @@ fdesc_statfs(mp, sbp, p)
return (0);
}
-int
+static int
fdesc_sync(mp, waitfor)
struct mount *mp;
int waitfor;
@@ -247,7 +247,7 @@ fdesc_sync(mp, waitfor)
* Fdesc flat namespace lookup.
* Currently unsupported.
*/
-int
+static int
fdesc_vget(mp, ino, vpp)
struct mount *mp;
ino_t ino;
@@ -257,7 +257,7 @@ fdesc_vget(mp, ino, vpp)
return (EOPNOTSUPP);
}
-int
+static int
fdesc_fhtovp(mp, fhp, setgen, vpp)
struct mount *mp;
struct fid *fhp;
@@ -267,7 +267,7 @@ fdesc_fhtovp(mp, fhp, setgen, vpp)
return (EOPNOTSUPP);
}
-int
+static int
fdesc_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
@@ -276,7 +276,7 @@ fdesc_vptofh(vp, fhp)
return (EOPNOTSUPP);
}
-struct vfsops fdesc_vfsops = {
+static struct vfsops fdesc_vfsops = {
fdesc_mount,
fdesc_start,
fdesc_unmount,
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index fec7b44..3c334bb 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94
*
- * $Id: fdesc_vnops.c,v 1.9 1995/05/30 08:06:57 rgrimes Exp $
+ * $Id: fdesc_vnops.c,v 1.10 1995/09/02 20:19:12 mpp Exp $
*/
/*
@@ -174,7 +174,7 @@ out:;
* vp is the current namei directory
* ndp is the name to locate in that directory...
*/
-int
+static int
fdesc_lookup(ap)
struct vop_lookup_args /* {
struct vnode * a_dvp;
@@ -315,7 +315,7 @@ bad:;
return (error);
}
-int
+static int
fdesc_open(ap)
struct vop_open_args /* {
struct vnode *a_vp;
@@ -407,7 +407,7 @@ fdesc_attr(fd, vap, cred, p)
return (error);
}
-int
+static int
fdesc_getattr(ap)
struct vop_getattr_args /* {
struct vnode *a_vp;
@@ -482,7 +482,7 @@ fdesc_getattr(ap)
return (error);
}
-int
+static int
fdesc_setattr(ap)
struct vop_setattr_args /* {
struct vnode *a_vp;
@@ -551,7 +551,7 @@ static struct dirtmp {
{ 0 }
};
-int
+static int
fdesc_readdir(ap)
struct vop_readdir_args /* {
struct vnode *a_vp;
@@ -652,7 +652,7 @@ fdesc_readdir(ap)
return (error);
}
-int
+static int
fdesc_readlink(ap)
struct vop_readlink_args /* {
struct vnode *a_vp;
@@ -676,7 +676,7 @@ fdesc_readlink(ap)
return (error);
}
-int
+static int
fdesc_read(ap)
struct vop_read_args /* {
struct vnode *a_vp;
@@ -700,7 +700,7 @@ fdesc_read(ap)
return (error);
}
-int
+static int
fdesc_write(ap)
struct vop_write_args /* {
struct vnode *a_vp;
@@ -724,7 +724,7 @@ fdesc_write(ap)
return (error);
}
-int
+static int
fdesc_ioctl(ap)
struct vop_ioctl_args /* {
struct vnode *a_vp;
@@ -751,7 +751,7 @@ fdesc_ioctl(ap)
return (error);
}
-int
+static int
fdesc_select(ap)
struct vop_select_args /* {
struct vnode *a_vp;
@@ -776,7 +776,7 @@ fdesc_select(ap)
return (error);
}
-int
+static int
fdesc_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;
@@ -792,7 +792,7 @@ fdesc_inactive(ap)
return (0);
}
-int
+static int
fdesc_reclaim(ap)
struct vop_reclaim_args /* {
struct vnode *a_vp;
@@ -810,7 +810,7 @@ fdesc_reclaim(ap)
/*
* Return POSIX pathconf information applicable to special devices.
*/
-int
+static int
fdesc_pathconf(ap)
struct vop_pathconf_args /* {
struct vnode *a_vp;
@@ -848,7 +848,7 @@ fdesc_pathconf(ap)
* Print out the contents of a /dev/fd vnode.
*/
/* ARGSUSED */
-int
+static int
fdesc_print(ap)
struct vop_print_args /* {
struct vnode *a_vp;
@@ -860,7 +860,7 @@ fdesc_print(ap)
}
/*void*/
-int
+static int
fdesc_vfree(ap)
struct vop_vfree_args /* {
struct vnode *a_pvp;
@@ -875,7 +875,7 @@ fdesc_vfree(ap)
/*
* /dev/fd vnode unsupported operation
*/
-int
+static int
fdesc_enotsupp()
{
@@ -885,7 +885,7 @@ fdesc_enotsupp()
/*
* /dev/fd "should never get here" operation
*/
-int
+static int
fdesc_badop()
{
@@ -896,7 +896,7 @@ fdesc_badop()
/*
* /dev/fd vnode null operation
*/
-int
+static int
fdesc_nullop()
{
@@ -936,8 +936,8 @@ fdesc_nullop()
#define fdesc_update ((int (*) __P((struct vop_update_args *)))fdesc_enotsupp)
#define fdesc_bwrite ((int (*) __P((struct vop_bwrite_args *)))fdesc_enotsupp)
-int (**fdesc_vnodeop_p)();
-struct vnodeopv_entry_desc fdesc_vnodeop_entries[] = {
+static int (**fdesc_vnodeop_p)();
+static struct vnodeopv_entry_desc fdesc_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },
{ &vop_lookup_desc, fdesc_lookup }, /* lookup */
{ &vop_create_desc, fdesc_create }, /* create */
@@ -981,7 +981,7 @@ struct vnodeopv_entry_desc fdesc_vnodeop_entries[] = {
{ &vop_bwrite_desc, fdesc_bwrite }, /* bwrite */
{ (struct vnodeop_desc*)NULL, (int(*)())NULL }
};
-struct vnodeopv_desc fdesc_vnodeop_opv_desc =
+static struct vnodeopv_desc fdesc_vnodeop_opv_desc =
{ &fdesc_vnodeop_p, fdesc_vnodeop_entries };
VNODEOP_SET(fdesc_vnodeop_opv_desc);
OpenPOWER on IntegriCloud