summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/portal
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-11 09:24:58 +0000
committerphk <phk@FreeBSD.org>1995-12-11 09:24:58 +0000
commitdffac85a9b5e388ce46a14b1cd4cd6743142aaea (patch)
tree66dfddf2f438b842afa6097479c2c3e1a18e7d3a /sys/miscfs/portal
parentc9fc5826da67c9d1d16cde24c7ce8398b1e701f3 (diff)
downloadFreeBSD-src-dffac85a9b5e388ce46a14b1cd4cd6743142aaea.zip
FreeBSD-src-dffac85a9b5e388ce46a14b1cd4cd6743142aaea.tar.gz
Staticize.
Diffstat (limited to 'sys/miscfs/portal')
-rw-r--r--sys/miscfs/portal/portal_vfsops.c48
-rw-r--r--sys/miscfs/portal/portal_vnops.c58
2 files changed, 53 insertions, 53 deletions
diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c
index 3be61d5..6a5b1ba 100644
--- a/sys/miscfs/portal/portal_vfsops.c
+++ b/sys/miscfs/portal/portal_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vfsops.c 8.6 (Berkeley) 1/21/94
*
- * $Id: portal_vfsops.c,v 1.8 1995/05/30 08:07:05 rgrimes Exp $
+ * $Id: portal_vfsops.c,v 1.9 1995/11/16 11:24:06 bde Exp $
*/
/*
@@ -62,27 +62,27 @@
#include <sys/un.h>
#include <miscfs/portal/portal.h>
-extern int portal_init __P((void));
-extern int portal_mount __P((struct mount *mp, char *path, caddr_t data,
+static int portal_init __P((void));
+static int portal_mount __P((struct mount *mp, char *path, caddr_t data,
struct nameidata *ndp, struct proc *p));
-extern int portal_start __P((struct mount *mp, int flags, struct proc *p));
-extern int portal_unmount __P((struct mount *mp, int mntflags,
+static int portal_start __P((struct mount *mp, int flags, struct proc *p));
+static int portal_unmount __P((struct mount *mp, int mntflags,
struct proc *p));
-extern int portal_root __P((struct mount *mp, struct vnode **vpp));
-extern int portal_quotactl __P((struct mount *mp, int cmd, uid_t uid,
+static int portal_root __P((struct mount *mp, struct vnode **vpp));
+static int portal_quotactl __P((struct mount *mp, int cmd, uid_t uid,
caddr_t arg, struct proc *p));
-extern int portal_statfs __P((struct mount *mp, struct statfs *sbp,
+static int portal_statfs __P((struct mount *mp, struct statfs *sbp,
struct proc *p));
-extern int portal_sync __P((struct mount *mp, int waitfor,
+static int portal_sync __P((struct mount *mp, int waitfor,
struct ucred *cred, struct proc *p));
-extern int portal_vget __P((struct mount *mp, ino_t ino,
+static int portal_vget __P((struct mount *mp, ino_t ino,
struct vnode **vpp));
-extern int portal_fhtovp __P((struct mount *mp, struct fid *fhp,
+static int portal_fhtovp __P((struct mount *mp, struct fid *fhp,
struct mbuf *nam, struct vnode **vpp,
int *exflagsp, struct ucred **credanonp));
-extern int portal_vptofh __P((struct vnode *vp, struct fid *fhp));
+static int portal_vptofh __P((struct vnode *vp, struct fid *fhp));
-int
+static int
portal_init()
{
@@ -92,7 +92,7 @@ portal_init()
/*
* Mount the per-process file descriptors (/dev/fd)
*/
-int
+static int
portal_mount(mp, path, data, ndp, p)
struct mount *mp;
char *path;
@@ -159,7 +159,7 @@ portal_mount(mp, path, data, ndp, p)
return (0);
}
-int
+static int
portal_start(mp, flags, p)
struct mount *mp;
int flags;
@@ -169,7 +169,7 @@ portal_start(mp, flags, p)
return (0);
}
-int
+static int
portal_unmount(mp, mntflags, p)
struct mount *mp;
int mntflags;
@@ -229,7 +229,7 @@ portal_unmount(mp, mntflags, p)
return (0);
}
-int
+static int
portal_root(mp, vpp)
struct mount *mp;
struct vnode **vpp;
@@ -247,7 +247,7 @@ portal_root(mp, vpp)
return (0);
}
-int
+static int
portal_quotactl(mp, cmd, uid, arg, p)
struct mount *mp;
int cmd;
@@ -259,7 +259,7 @@ portal_quotactl(mp, cmd, uid, arg, p)
return (EOPNOTSUPP);
}
-int
+static int
portal_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
@@ -283,7 +283,7 @@ portal_statfs(mp, sbp, p)
return (0);
}
-int
+static int
portal_sync(mp, waitfor, cred, p)
struct mount *mp;
int waitfor;
@@ -294,7 +294,7 @@ portal_sync(mp, waitfor, cred, p)
return (0);
}
-int
+static int
portal_vget(mp, ino, vpp)
struct mount *mp;
ino_t ino;
@@ -304,7 +304,7 @@ portal_vget(mp, ino, vpp)
return (EOPNOTSUPP);
}
-int
+static int
portal_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
struct mount *mp;
struct fid *fhp;
@@ -317,7 +317,7 @@ portal_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
return (EOPNOTSUPP);
}
-int
+static int
portal_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
@@ -326,7 +326,7 @@ portal_vptofh(vp, fhp)
return (EOPNOTSUPP);
}
-struct vfsops portal_vfsops = {
+static struct vfsops portal_vfsops = {
portal_mount,
portal_start,
portal_unmount,
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index 75700a7..816f5fa 100644
--- a/sys/miscfs/portal/portal_vnops.c
+++ b/sys/miscfs/portal/portal_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vnops.c 8.8 (Berkeley) 1/21/94
*
- * $Id: portal_vnops.c,v 1.8 1995/11/09 08:15:51 bde Exp $
+ * $Id: portal_vnops.c,v 1.9 1995/12/03 14:54:29 bde Exp $
*/
/*
@@ -65,21 +65,21 @@
static int portal_fileid = PORTAL_ROOTFILEID+1;
-extern int portal_badop __P((void));
+static int portal_badop __P((void));
static void portal_closefd __P((struct proc *p, int fd));
static int portal_connect __P((struct socket *so, struct socket *so2));
-extern int portal_enotsupp __P((void));
-extern int portal_getattr __P((struct vop_getattr_args *ap));
-extern int portal_inactive __P((struct vop_inactive_args *ap));
-extern int portal_lookup __P((struct vop_lookup_args *ap));
-extern int portal_nullop __P((void));
-extern int portal_open __P((struct vop_open_args *ap));
-extern int portal_pathconf __P((struct vop_pathconf_args *ap));
-extern int portal_print __P((struct vop_print_args *ap));
-extern int portal_readdir __P((struct vop_readdir_args *ap));
-extern int portal_reclaim __P((struct vop_reclaim_args *ap));
-extern int portal_setattr __P((struct vop_setattr_args *ap));
-extern int portal_vfree __P((struct vop_vfree_args *ap));
+static int portal_enotsupp __P((void));
+static int portal_getattr __P((struct vop_getattr_args *ap));
+static int portal_inactive __P((struct vop_inactive_args *ap));
+static int portal_lookup __P((struct vop_lookup_args *ap));
+static int portal_nullop __P((void));
+static int portal_open __P((struct vop_open_args *ap));
+static int portal_pathconf __P((struct vop_pathconf_args *ap));
+static int portal_print __P((struct vop_print_args *ap));
+static int portal_readdir __P((struct vop_readdir_args *ap));
+static int portal_reclaim __P((struct vop_reclaim_args *ap));
+static int portal_setattr __P((struct vop_setattr_args *ap));
+static int portal_vfree __P((struct vop_vfree_args *ap));
static void
portal_closefd(p, fd)
@@ -104,7 +104,7 @@ portal_closefd(p, fd)
* vp is the current namei directory
* cnp is the name to locate in that directory...
*/
-int
+static int
portal_lookup(ap)
struct vop_lookup_args /* {
struct vnode * a_dvp;
@@ -194,7 +194,7 @@ portal_connect(so, so2)
return (unp_connect2(so, so2));
}
-int
+static int
portal_open(ap)
struct vop_open_args /* {
struct vnode *a_vp;
@@ -427,7 +427,7 @@ bad:;
return (error);
}
-int
+static int
portal_getattr(ap)
struct vop_getattr_args /* {
struct vnode *a_vp;
@@ -474,7 +474,7 @@ portal_getattr(ap)
return (0);
}
-int
+static int
portal_setattr(ap)
struct vop_setattr_args /* {
struct vnode *a_vp;
@@ -497,7 +497,7 @@ portal_setattr(ap)
* Fake readdir, just return empty directory.
* It is hard to deal with '.' and '..' so don't bother.
*/
-int
+static int
portal_readdir(ap)
struct vop_readdir_args /* {
struct vnode *a_vp;
@@ -509,7 +509,7 @@ portal_readdir(ap)
return (0);
}
-int
+static int
portal_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;
@@ -519,7 +519,7 @@ portal_inactive(ap)
return (0);
}
-int
+static int
portal_reclaim(ap)
struct vop_reclaim_args /* {
struct vnode *a_vp;
@@ -540,7 +540,7 @@ portal_reclaim(ap)
/*
* Return POSIX pathconf information applicable to special devices.
*/
-int
+static int
portal_pathconf(ap)
struct vop_pathconf_args /* {
struct vnode *a_vp;
@@ -578,7 +578,7 @@ portal_pathconf(ap)
* Print out the contents of a Portal vnode.
*/
/* ARGSUSED */
-int
+static int
portal_print(ap)
struct vop_print_args /* {
struct vnode *a_vp;
@@ -590,7 +590,7 @@ portal_print(ap)
}
/*void*/
-int
+static int
portal_vfree(ap)
struct vop_vfree_args /* {
struct vnode *a_pvp;
@@ -606,7 +606,7 @@ portal_vfree(ap)
/*
* Portal vnode unsupported operation
*/
-int
+static int
portal_enotsupp()
{
@@ -616,7 +616,7 @@ portal_enotsupp()
/*
* Portal "should never get here" operation
*/
-int
+static int
portal_badop()
{
@@ -627,7 +627,7 @@ portal_badop()
/*
* Portal vnode null operation
*/
-int
+static int
portal_nullop()
{
@@ -676,7 +676,7 @@ portal_nullop()
#define portal_bwrite ((int (*) __P((struct vop_bwrite_args *)))portal_enotsupp)
vop_t **portal_vnodeop_p;
-struct vnodeopv_entry_desc portal_vnodeop_entries[] = {
+static struct vnodeopv_entry_desc portal_vnodeop_entries[] = {
{ &vop_default_desc, (vop_t *)vn_default_error },
{ &vop_lookup_desc, (vop_t *)portal_lookup }, /* lookup */
{ &vop_create_desc, (vop_t *)portal_create }, /* create */
@@ -720,7 +720,7 @@ struct vnodeopv_entry_desc portal_vnodeop_entries[] = {
{ &vop_bwrite_desc, (vop_t *)portal_bwrite }, /* bwrite */
{ NULL, NULL }
};
-struct vnodeopv_desc portal_vnodeop_opv_desc =
+static struct vnodeopv_desc portal_vnodeop_opv_desc =
{ &portal_vnodeop_p, portal_vnodeop_entries };
VNODEOP_SET(portal_vnodeop_opv_desc);
OpenPOWER on IntegriCloud