summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-14 09:55:16 +0000
committerphk <phk@FreeBSD.org>1995-12-14 09:55:16 +0000
commit9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e (patch)
tree9887f4bf5939f3591e9b3a4f6e1865f9a1f810d8 /sys/miscfs
parent63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (diff)
downloadFreeBSD-src-9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e.zip
FreeBSD-src-9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e.tar.gz
Another mega commit to staticize things.
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/devfs/devfs_proto.h50
-rw-r--r--sys/miscfs/devfs/devfs_vfsops.c38
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c126
-rw-r--r--sys/miscfs/fifofs/fifo.h6
-rw-r--r--sys/miscfs/fifofs/fifo_vnops.c19
-rw-r--r--sys/miscfs/specfs/spec_vnops.c7
-rw-r--r--sys/miscfs/specfs/specdev.h7
7 files changed, 126 insertions, 127 deletions
diff --git a/sys/miscfs/devfs/devfs_proto.h b/sys/miscfs/devfs/devfs_proto.h
index e8571e8..ad82e45 100644
--- a/sys/miscfs/devfs/devfs_proto.h
+++ b/sys/miscfs/devfs/devfs_proto.h
@@ -15,56 +15,6 @@ void dev_free_name(devnm_p devnmp) /*proto*/;
int devfs_vntodn(struct vnode *vn_p, dn_p *dn_pp) /*proto*/;
int devfs_dntovn(dn_p dnp, struct vnode **vn_pp) /*proto*/;
int dev_add_entry(char *name, dn_p parent, int type, union typeinfo *by, devnm_p *nm_pp) /*proto*/ ;
-int devfs_init(void) /*proto*/;
int devfs_mount( struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, struct proc *p) /*proto*/;
-int mountdevfs( struct mount *mp, struct proc *p) /*proto*/;
-int devfs_start(struct mount *mp, int flags, struct proc *p) /*proto*/;
-int devfs_unmount( struct mount *mp, int mntflags, struct proc *p) /*proto*/;
-int devfs_root(struct mount *mp, struct vnode **vpp) /*proto*/;
-int devfs_quotactl( struct mount *mp, int cmds, uid_t uid, caddr_t arg, struct proc *p) /*proto*/;
-int devfs_statfs( struct mount *mp, struct statfs *sbp, struct proc *p) /*proto*/;
-int devfs_sync(struct mount *mp, int waitfor,struct ucred *cred,struct proc *p) /*proto*/;
-int devfs_vget(struct mount *mp, ino_t ino,struct vnode **vpp) /*proto*/;
-int devfs_fhtovp (struct mount *mp, struct fid *fhp, struct mbuf *nam, struct vnode **vpp, int *exflagsp, struct ucred **credanonp) /*proto*/;
-int devfs_vptofh (struct vnode *vp, struct fid *fhp) /*proto*/;
-int devfs_lookup(struct vop_lookup_args *ap) /*proto*/;
-int devfs_create(struct vop_mknod_args *ap) /*proto*/;
-int devfs_mknod( struct vop_mknod_args *ap) /*proto*/;
-int devfs_open(struct vop_open_args *ap) /*proto*/;
-int devfs_close( struct vop_close_args *ap) /*proto*/;
-int devfs_access(struct vop_access_args *ap) /*proto*/;
-int devfs_getattr(struct vop_getattr_args *ap) /*proto*/;
-int devfs_setattr(struct vop_setattr_args *ap) /*proto*/;
-int devfs_read(struct vop_read_args *ap) /*proto*/;
-int devfs_write(struct vop_write_args *ap) /*proto*/;
-int devfs_ioctl(struct vop_ioctl_args *ap) /*proto*/;
-int devfs_select(struct vop_select_args *ap) /*proto*/;
-int devfs_mmap(struct vop_mmap_args *ap) /*proto*/;
-int devfs_fsync(struct vop_fsync_args *ap) /*proto*/;
-int devfs_seek(struct vop_seek_args *ap) /*proto*/;
-int devfs_remove(struct vop_remove_args *ap) /*proto*/;
-int devfs_link(struct vop_link_args *ap) /*proto*/;
-int devfs_rename(struct vop_rename_args *ap) /*proto*/;
-int devfs_mkdir(struct vop_mkdir_args *ap) /*proto*/;
-int devfs_rmdir(struct vop_rmdir_args *ap) /*proto*/;
-int devfs_symlink(struct vop_symlink_args *ap) /*proto*/;
-int devfs_readdir(struct vop_readdir_args *ap) /*proto*/;
-int devfs_readlink(struct vop_readlink_args *ap) /*proto*/;
-int devfs_abortop(struct vop_abortop_args *ap) /*proto*/;
-int devfs_inactive(struct vop_inactive_args *ap) /*proto*/;
-int devfs_lock(struct vop_lock_args *ap) /*proto*/;
-int devfs_unlock( struct vop_unlock_args *ap) /*proto*/;
-int devfs_islocked(struct vop_islocked_args *ap) /*proto*/;
-int devfs_bmap(struct vop_bmap_args *ap) /*proto*/;
-int devfs_strategy(struct vop_strategy_args *ap) /*proto*/;
-int devfs_advlock(struct vop_advlock_args *ap) /*proto*/;
-int devfs_reclaim(struct vop_reclaim_args *ap) /*proto*/;
-int devfs_pathconf(struct vop_pathconf_args *ap) /*proto*/;
-int devfs_print(struct vop_print_args *ap) /*proto*/;
-int devfs_vfree(struct vop_vfree_args *ap) /*proto*/;
-int devfs_enotsupp(void *junk) /*proto*/;
-int devfs_badop(void *junk) /*proto*/;
-int devfs_nullop(void *junk) /*proto*/;
-void devfs_dropvnode(dn_p dnp) /*proto*/;
/* THIS FILE PRODUCED AUTOMATICALLY */
/* DO NOT EDIT (see reproto.sh) */
diff --git a/sys/miscfs/devfs/devfs_vfsops.c b/sys/miscfs/devfs/devfs_vfsops.c
index 00b4933..f76822c 100644
--- a/sys/miscfs/devfs/devfs_vfsops.c
+++ b/sys/miscfs/devfs/devfs_vfsops.c
@@ -1,7 +1,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
- * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.5 1995/09/06 09:29:17 julian Exp $
+ * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.6 1995/09/07 06:01:35 julian Exp $
*
*
*/
@@ -19,8 +19,10 @@
#include "malloc.h"
#include "devfsdefs.h"
+static int devfs_statfs( struct mount *mp, struct statfs *sbp, struct proc *p);
-int devfs_init(void) /*proto*/
+static int
+devfs_init(void)
{
printf("devfs ready to run\n");
return 0; /*XXX*/
@@ -84,7 +86,8 @@ DBPRINT(("mount "));
return 0;
}
-int mountdevfs( struct mount *mp, struct proc *p) /*proto*/
+static int
+mountdevfs( struct mount *mp, struct proc *p)
{
int error = 0;
int ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
@@ -113,7 +116,8 @@ int mountdevfs( struct mount *mp, struct proc *p) /*proto*/
return error;
}
-int devfs_start(struct mount *mp, int flags, struct proc *p) /*proto*/
+static int
+devfs_start(struct mount *mp, int flags, struct proc *p)
{
DBPRINT(("start "));
return 0;
@@ -124,7 +128,8 @@ DBPRINT(("start "));
* Note: vnodes from this FS may hang around if being used..
* This should not be a problem, they should be self contained.
*/
-int devfs_unmount( struct mount *mp, int mntflags, struct proc *p) /*proto*/
+static int
+devfs_unmount( struct mount *mp, int mntflags, struct proc *p)
{
int flags = 0;
int error = 0;
@@ -139,7 +144,8 @@ DBPRINT(("unmount "));
}
/* return the address of the root vnode in *vpp */
-int devfs_root(struct mount *mp, struct vnode **vpp) /*proto*/
+static int
+devfs_root(struct mount *mp, struct vnode **vpp)
{
struct devfsmount *devfs_mp_p = (struct devfsmount *)(mp->mnt_data);
@@ -148,13 +154,15 @@ DBPRINT(("root "));
return 0;
}
-int devfs_quotactl( struct mount *mp, int cmds, uid_t uid, caddr_t arg, struct proc *p) /*proto*/
+static int
+devfs_quotactl( struct mount *mp, int cmds, uid_t uid, caddr_t arg, struct proc *p)
{
DBPRINT(("quotactl "));
return EOPNOTSUPP;
}
-int devfs_statfs( struct mount *mp, struct statfs *sbp, struct proc *p) /*proto*/
+static int
+devfs_statfs( struct mount *mp, struct statfs *sbp, struct proc *p)
{
struct devfsmount *devfs_mp_p = (struct devfsmount *)mp->mnt_data;
@@ -188,13 +196,15 @@ DBPRINT(("statfs "));
return 0;
}
-int devfs_sync(struct mount *mp, int waitfor,struct ucred *cred,struct proc *p) /*proto*/
+static int
+devfs_sync(struct mount *mp, int waitfor,struct ucred *cred,struct proc *p)
{
DBPRINT(("sync "));
return 0;
}
-int devfs_vget(struct mount *mp, ino_t ino,struct vnode **vpp) /*proto*/
+static int
+devfs_vget(struct mount *mp, ino_t ino,struct vnode **vpp)
{
DBPRINT(("vget "));
return EOPNOTSUPP;
@@ -205,20 +215,22 @@ DBPRINT(("vget "));
* So don't handle filehandles
*/
-int devfs_fhtovp (struct mount *mp, struct fid *fhp, struct mbuf *nam, struct vnode **vpp, int *exflagsp, struct ucred **credanonp) /*proto*/
+static int
+devfs_fhtovp (struct mount *mp, struct fid *fhp, struct mbuf *nam, struct vnode **vpp, int *exflagsp, struct ucred **credanonp)
{
DBPRINT(("fhtovp "));
return (EINVAL);
}
-int devfs_vptofh (struct vnode *vp, struct fid *fhp) /*proto*/
+static int
+devfs_vptofh (struct vnode *vp, struct fid *fhp)
{
DBPRINT(("vptofh "));
return (EINVAL);
}
-struct vfsops devfs_vfsops = {
+static struct vfsops devfs_vfsops = {
devfs_mount,
devfs_start,
devfs_unmount,
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c
index a6a40eb..b27aed2 100644
--- a/sys/miscfs/devfs/devfs_vnops.c
+++ b/sys/miscfs/devfs/devfs_vnops.c
@@ -1,7 +1,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
- * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.15 1995/10/10 07:12:27 julian Exp $
+ * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.16 1995/11/09 08:16:50 bde Exp $
*
* symlinks can wait 'til later.
*/
@@ -65,7 +65,8 @@
*
* NOTE: (LOOKUP | LOCKPARENT) currently returns the parent node unlocked.
*/
-int devfs_lookup(struct vop_lookup_args *ap) /*proto*/
+static int
+devfs_lookup(struct vop_lookup_args *ap)
/*struct vop_lookup_args {
struct vnode * a_dvp; directory vnode ptr
struct vnode ** a_vpp; where to put the result
@@ -366,7 +367,8 @@ DBPRINT(("GOT\n"));
*
* Always error... no such thing in this FS
*/
-int devfs_create(struct vop_mknod_args *ap) /*proto*/
+static int
+devfs_create(struct vop_mknod_args *ap)
/*struct vop_mknod_args {
struct vnode *a_dvp;
struct vnode **a_vpp;
@@ -378,7 +380,8 @@ DBPRINT(("create\n"));
return EINVAL;
}
-int devfs_mknod( struct vop_mknod_args *ap) /*proto*/
+static int
+devfs_mknod( struct vop_mknod_args *ap)
/*struct vop_mknod_args {
struct vnode *a_dvp;
struct vnode **a_vpp;
@@ -419,7 +422,8 @@ DBPRINT(("mknod\n"));
return error;
}
-int devfs_open(struct vop_open_args *ap) /*proto*/
+static int
+devfs_open(struct vop_open_args *ap)
/*struct vop_open_args {
struct vnode *a_vp;
int a_mode;
@@ -431,7 +435,8 @@ DBPRINT(("open\n"));
return 0;
}
-int devfs_close( struct vop_close_args *ap) /*proto*/
+static int
+devfs_close( struct vop_close_args *ap)
/*struct vop_close_args {
struct vnode *a_vp;
int a_fflag;
@@ -443,7 +448,8 @@ DBPRINT(("close\n"));
return 0;
}
-int devfs_access(struct vop_access_args *ap) /*proto*/
+static int
+devfs_access(struct vop_access_args *ap)
/*struct vop_access_args {
struct vnode *a_vp;
int a_mode;
@@ -504,7 +510,8 @@ found:
return (EACCES);
}
-int devfs_getattr(struct vop_getattr_args *ap) /*proto*/
+static int
+devfs_getattr(struct vop_getattr_args *ap)
/*struct vop_getattr_args {
struct vnode *a_vp;
struct vattr *a_vap;
@@ -584,7 +591,8 @@ DBPRINT(("getattr\n"));
return 0;
}
-int devfs_setattr(struct vop_setattr_args *ap) /*proto*/
+static int
+devfs_setattr(struct vop_setattr_args *ap)
/*struct vop_setattr_args {
struct vnode *a_vp;
struct vattr *a_vap;
@@ -663,7 +671,8 @@ DBPRINT(("setattr\n"));
}
-int devfs_read(struct vop_read_args *ap) /*proto*/
+static int
+devfs_read(struct vop_read_args *ap)
/*struct vop_read_args {
struct vnode *a_vp;
struct uio *a_uio;
@@ -704,7 +713,8 @@ DBPRINT(("read\n"));
/*
* Write data to a file or directory.
*/
-int devfs_write(struct vop_write_args *ap) /*proto*/
+static int
+devfs_write(struct vop_write_args *ap)
/*struct vop_write_args {
struct vnode *a_vp;
struct uio *a_uio;
@@ -741,7 +751,8 @@ DBPRINT(("write\n"));
}
/* presently not called from devices anyhow */
-int devfs_ioctl(struct vop_ioctl_args *ap) /*proto*/
+static int
+devfs_ioctl(struct vop_ioctl_args *ap)
/*struct vop_ioctl_args {
struct vnode *a_vp;
int a_command;
@@ -755,7 +766,8 @@ DBPRINT(("ioctl\n"));
return ENOTTY;
}
-int devfs_select(struct vop_select_args *ap) /*proto*/
+static int
+devfs_select(struct vop_select_args *ap)
/*struct vop_select_args {
struct vnode *a_vp;
int a_which;
@@ -768,7 +780,8 @@ DBPRINT(("select\n"));
return 1; /* filesystems never block? */
}
-int devfs_mmap(struct vop_mmap_args *ap) /*proto*/
+static int
+devfs_mmap(struct vop_mmap_args *ap)
/*struct vop_mmap_args {
struct vnode *a_vp;
int a_fflags;
@@ -783,7 +796,8 @@ DBPRINT(("mmap\n"));
/*
* Flush the blocks of a file to disk.
*/
-int devfs_fsync(struct vop_fsync_args *ap) /*proto*/
+static int
+devfs_fsync(struct vop_fsync_args *ap)
/*struct vop_fsync_args {
struct vnode *a_vp;
struct ucred *a_cred;
@@ -795,7 +809,8 @@ DBPRINT(("fsync\n"));
return(0);
}
-int devfs_seek(struct vop_seek_args *ap) /*proto*/
+static int
+devfs_seek(struct vop_seek_args *ap)
/*struct vop_seek_args {
struct vnode *a_vp;
off_t a_oldoff;
@@ -808,7 +823,8 @@ DBPRINT(("seek\n"));
return 0;
}
-int devfs_remove(struct vop_remove_args *ap) /*proto*/
+static int
+devfs_remove(struct vop_remove_args *ap)
/*struct vop_remove_args {
struct vnode *a_dvp;
struct vnode *a_vp;
@@ -912,7 +928,8 @@ abortit:
/*
*/
-int devfs_link(struct vop_link_args *ap) /*proto*/
+static int
+devfs_link(struct vop_link_args *ap)
/*struct vop_link_args {
struct vnode *a_tdvp;
struct vnode *a_vp;
@@ -1009,7 +1026,8 @@ out:
* is different from the source, patch the ".." entry in the
* directory.
*/
-int devfs_rename(struct vop_rename_args *ap) /*proto*/
+static int
+devfs_rename(struct vop_rename_args *ap)
/*struct vop_rename_args {
struct vnode *a_fdvp;
struct vnode *a_fvp;
@@ -1226,7 +1244,8 @@ out:
}
-int devfs_mkdir(struct vop_mkdir_args *ap) /*proto*/
+static int
+devfs_mkdir(struct vop_mkdir_args *ap)
/*struct vop_mkdir_args {
struct vnode *a_dvp;
struct vnode **a_vpp;
@@ -1238,7 +1257,8 @@ DBPRINT(("mkdir\n"));
return EINVAL;
}
-int devfs_rmdir(struct vop_rmdir_args *ap) /*proto*/
+static int
+devfs_rmdir(struct vop_rmdir_args *ap)
/*struct vop_rmdir_args {
struct vnode *a_dvp;
struct vnode *a_vp;
@@ -1249,7 +1269,8 @@ DBPRINT(("rmdir\n"));
return 0;
}
-int devfs_symlink(struct vop_symlink_args *ap) /*proto*/
+static int
+devfs_symlink(struct vop_symlink_args *ap)
/*struct vop_symlink_args {
struct vnode *a_dvp;
struct vnode **a_vpp;
@@ -1265,7 +1286,8 @@ DBPRINT(("symlink\n"));
/*
* Vnode op for readdir
*/
-int devfs_readdir(struct vop_readdir_args *ap) /*proto*/
+static int
+devfs_readdir(struct vop_readdir_args *ap)
/*struct vop_readdir_args {
struct vnode *a_vp;
struct uio *a_uio;
@@ -1371,7 +1393,8 @@ DBPRINT(("readdir\n"));
/*
*/
-int devfs_readlink(struct vop_readlink_args *ap) /*proto*/
+static int
+devfs_readlink(struct vop_readlink_args *ap)
/*struct vop_readlink_args {
struct vnode *a_vp;
struct uio *a_uio;
@@ -1382,7 +1405,8 @@ DBPRINT(("readlink\n"));
return 0;
}
-int devfs_abortop(struct vop_abortop_args *ap) /*proto*/
+static int
+devfs_abortop(struct vop_abortop_args *ap)
/*struct vop_abortop_args {
struct vnode *a_dvp;
struct componentname *a_cnp;
@@ -1394,7 +1418,8 @@ DBPRINT(("abortop\n"));
return 0;
}
-int devfs_inactive(struct vop_inactive_args *ap) /*proto*/
+static int
+devfs_inactive(struct vop_inactive_args *ap)
/*struct vop_inactive_args {
struct vnode *a_vp;
} */
@@ -1402,19 +1427,22 @@ int devfs_inactive(struct vop_inactive_args *ap) /*proto*/
DBPRINT(("inactive\n"));
return 0;
}
-int devfs_lock(struct vop_lock_args *ap) /*proto*/
+static int
+devfs_lock(struct vop_lock_args *ap)
{
DBPRINT(("lock\n"));
return 0;
}
-int devfs_unlock( struct vop_unlock_args *ap) /*proto*/
+static int
+devfs_unlock( struct vop_unlock_args *ap)
{
DBPRINT(("unlock\n"));
return 0;
}
-int devfs_islocked(struct vop_islocked_args *ap) /*proto*/
+static int
+devfs_islocked(struct vop_islocked_args *ap)
/*struct vop_islocked_args {
struct vnode *a_vp;
} */
@@ -1423,7 +1451,8 @@ DBPRINT(("islocked\n"));
return 0;
}
-int devfs_bmap(struct vop_bmap_args *ap) /*proto*/
+static int
+devfs_bmap(struct vop_bmap_args *ap)
/*struct vop_bmap_args {
struct vnode *a_vp;
daddr_t a_bn;
@@ -1437,7 +1466,8 @@ DBPRINT(("bmap\n"));
return 0;
}
-int devfs_strategy(struct vop_strategy_args *ap) /*proto*/
+static int
+devfs_strategy(struct vop_strategy_args *ap)
/*struct vop_strategy_args {
struct buf *a_bp;
} */
@@ -1452,7 +1482,8 @@ DBPRINT(("strategy\n"));
}
-int devfs_advlock(struct vop_advlock_args *ap) /*proto*/
+static int
+devfs_advlock(struct vop_advlock_args *ap)
/*struct vop_advlock_args {
struct vnode *a_vp;
caddr_t a_id;
@@ -1465,7 +1496,8 @@ DBPRINT(("advlock\n"));
return EINVAL; /* we don't do locking yet */
}
-int devfs_reclaim(struct vop_reclaim_args *ap) /*proto*/
+static int
+devfs_reclaim(struct vop_reclaim_args *ap)
/*struct vop_reclaim_args {
struct vnode *a_vp;
} */
@@ -1488,7 +1520,8 @@ DBPRINT(("reclaim\n"));
/*
* Return POSIX pathconf information applicable to special devices.
*/
-int devfs_pathconf(struct vop_pathconf_args *ap) /*proto*/
+static int
+devfs_pathconf(struct vop_pathconf_args *ap)
/*struct vop_pathconf_args {
struct vnode *a_vp;
int a_name;
@@ -1525,7 +1558,8 @@ int devfs_pathconf(struct vop_pathconf_args *ap) /*proto*/
/*
* Print out the contents of a /devfs vnode.
*/
-int devfs_print(struct vop_print_args *ap) /*proto*/
+static int
+devfs_print(struct vop_print_args *ap)
/*struct vop_print_args {
struct vnode *a_vp;
} */
@@ -1535,7 +1569,8 @@ int devfs_print(struct vop_print_args *ap) /*proto*/
return (0);
}
-int devfs_vfree(struct vop_vfree_args *ap) /*proto*/
+static int
+devfs_vfree(struct vop_vfree_args *ap)
/*struct vop_vfree_args {
struct vnode *a_pvp;
ino_t a_ino;
@@ -1553,7 +1588,8 @@ int devfs_vfree(struct vop_vfree_args *ap) /*proto*/
/*
* /devfs vnode unsupported operation
*/
-int devfs_enotsupp(void *junk) /*proto*/
+static int
+devfs_enotsupp(void *junk)
{
return (EOPNOTSUPP);
@@ -1562,7 +1598,8 @@ int devfs_enotsupp(void *junk) /*proto*/
/*
* /devfs "should never get here" operation
*/
-int devfs_badop(void *junk) /*proto*/
+static int
+devfs_badop(void *junk)
{
panic("devfs: bad op");
@@ -1572,14 +1609,15 @@ int devfs_badop(void *junk) /*proto*/
/*
* devfs vnode null operation
*/
-int devfs_nullop(void *junk) /*proto*/
+static int
+devfs_nullop(void *junk)
{
return (0);
}
-void devfs_dropvnode(dn_p dnp) /*proto*/
+void devfs_dropvnode(dn_p dnp)
{
struct vnode *vn_p;
@@ -1635,7 +1673,7 @@ void devfs_dropvnode(dn_p dnp) /*proto*/
/* These are the operations used by directories etc in a devfs */
vop_t **devfs_vnodeop_p;
-struct vnodeopv_entry_desc devfs_vnodeop_entries[] = {
+static struct vnodeopv_entry_desc devfs_vnodeop_entries[] = {
{ &vop_default_desc, (vop_t *)vn_default_error },
{ &vop_lookup_desc, (vop_t *)devfs_lookup }, /* lookup */
{ &vop_create_desc, (vop_t *)devfs_create }, /* create */
@@ -1679,7 +1717,7 @@ struct vnodeopv_entry_desc devfs_vnodeop_entries[] = {
{ &vop_bwrite_desc, (vop_t *)devfs_bwrite }, /* bwrite */
{ NULL, NULL }
};
-struct vnodeopv_desc devfs_vnodeop_opv_desc =
+static struct vnodeopv_desc devfs_vnodeop_opv_desc =
{ &devfs_vnodeop_p, devfs_vnodeop_entries };
VNODEOP_SET(devfs_vnodeop_opv_desc);
@@ -1725,7 +1763,7 @@ VNODEOP_SET(devfs_vnodeop_opv_desc);
vop_t **dev_spec_vnodeop_p;
-struct vnodeopv_entry_desc dev_spec_vnodeop_entries[] = {
+static struct vnodeopv_entry_desc dev_spec_vnodeop_entries[] = {
{ &vop_default_desc, (vop_t *)vn_default_error },
{ &vop_lookup_desc, (vop_t *)spec_lookup }, /* lookup */
{ &vop_create_desc, (vop_t *)spec_create }, /* create */
@@ -1769,7 +1807,7 @@ struct vnodeopv_entry_desc dev_spec_vnodeop_entries[] = {
{ &vop_bwrite_desc, (vop_t *)spec_bwrite }, /* bwrite */
{ NULL, NULL }
};
-struct vnodeopv_desc dev_spec_vnodeop_opv_desc =
+static struct vnodeopv_desc dev_spec_vnodeop_opv_desc =
{ &dev_spec_vnodeop_p, dev_spec_vnodeop_entries };
VNODEOP_SET(dev_spec_vnodeop_opv_desc);
diff --git a/sys/miscfs/fifofs/fifo.h b/sys/miscfs/fifofs/fifo.h
index c54d3d7..62cd4df 100644
--- a/sys/miscfs/fifofs/fifo.h
+++ b/sys/miscfs/fifofs/fifo.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)fifo.h 8.2 (Berkeley) 2/2/94
- * $Id: fifo.h,v 1.8 1995/12/11 09:24:09 phk Exp $
+ * $Id: fifo.h,v 1.9 1995/12/11 10:26:32 phk Exp $
*/
extern vop_t **fifo_vnodeop_p;
@@ -40,7 +40,6 @@ extern vop_t **fifo_vnodeop_p;
* Prototypes for fifo operations on vnodes.
*/
int fifo_badop __P((void));
-int fifo_ebadf __P((void));
int fifo_printinfo __P((struct vnode *));
int fifo_lookup __P((struct vop_lookup_args *));
#define fifo_create ((int (*) __P((struct vop_create_args *)))fifo_badop)
@@ -68,11 +67,8 @@ int fifo_select __P((struct vop_select_args *));
#define fifo_abortop ((int (*) __P((struct vop_abortop_args *)))fifo_badop)
#define fifo_inactive ((int (*) __P((struct vop_inactive_args *)))nullop)
#define fifo_reclaim ((int (*) __P((struct vop_reclaim_args *)))nullop)
-int fifo_lock __P((struct vop_lock_args *));
-int fifo_unlock __P((struct vop_unlock_args *));
int fifo_bmap __P((struct vop_bmap_args *));
#define fifo_strategy ((int (*) __P((struct vop_strategy_args *)))fifo_badop)
-int fifo_print __P((struct vop_print_args *));
#define fifo_islocked ((int (*) __P((struct vop_islocked_args *)))nullop)
int fifo_pathconf __P((struct vop_pathconf_args *));
int fifo_advlock __P((struct vop_advlock_args *));
diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c
index b274365..a0a34f7 100644
--- a/sys/miscfs/fifofs/fifo_vnops.c
+++ b/sys/miscfs/fifofs/fifo_vnops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)fifo_vnops.c 8.2 (Berkeley) 1/4/94
- * $Id: fifo_vnops.c,v 1.13 1995/12/11 09:24:13 phk Exp $
+ * $Id: fifo_vnops.c,v 1.14 1995/12/11 10:26:34 phk Exp $
*/
#include <sys/param.h>
@@ -62,8 +62,13 @@ struct fifoinfo {
long fi_writers;
};
+static int fifo_ebadf __P((void));
+static int fifo_unlock __P((struct vop_unlock_args *));
+static int fifo_lock __P((struct vop_lock_args *));
+static int fifo_print __P((struct vop_print_args *));
+
vop_t **fifo_vnodeop_p;
-struct vnodeopv_entry_desc fifo_vnodeop_entries[] = {
+static struct vnodeopv_entry_desc fifo_vnodeop_entries[] = {
{ &vop_default_desc, (vop_t *)vn_default_error },
{ &vop_lookup_desc, (vop_t *)fifo_lookup }, /* lookup */
{ &vop_create_desc, (vop_t *)fifo_create }, /* create */
@@ -107,7 +112,7 @@ struct vnodeopv_entry_desc fifo_vnodeop_entries[] = {
{ &vop_bwrite_desc, (vop_t *)fifo_bwrite }, /* bwrite */
{ NULL, NULL }
};
-struct vnodeopv_desc fifo_vnodeop_opv_desc =
+static struct vnodeopv_desc fifo_vnodeop_opv_desc =
{ &fifo_vnodeop_p, fifo_vnodeop_entries };
VNODEOP_SET(fifo_vnodeop_opv_desc);
@@ -382,7 +387,7 @@ fifo_bmap(ap)
* At the moment we do not do any locking.
*/
/* ARGSUSED */
-int
+static int
fifo_lock(ap)
struct vop_lock_args /* {
struct vnode *a_vp;
@@ -393,7 +398,7 @@ fifo_lock(ap)
}
/* ARGSUSED */
-int
+static int
fifo_unlock(ap)
struct vop_unlock_args /* {
struct vnode *a_vp;
@@ -459,7 +464,7 @@ fifo_printinfo(vp)
/*
* Print out the contents of a fifo vnode.
*/
-int
+static int
fifo_print(ap)
struct vop_print_args /* {
struct vnode *a_vp;
@@ -503,7 +508,7 @@ fifo_pathconf(ap)
/*
* Fifo failed operation
*/
-int
+static int
fifo_ebadf()
{
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index d9a3d2c..14d9939 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spec_vnops.c 8.6 (Berkeley) 4/9/94
- * $Id: spec_vnops.c,v 1.24 1995/12/11 09:24:50 phk Exp $
+ * $Id: spec_vnops.c,v 1.25 1995/12/13 15:13:31 julian Exp $
*/
#include <sys/param.h>
@@ -60,6 +60,9 @@
#include <miscfs/specfs/specdev.h>
+static int spec_ebadf __P((void));
+static int spec_getattr __P((struct vop_getattr_args *));
+
struct vnode *speclisth[SPECHSZ];
vop_t **spec_vnodeop_p;
static struct vnodeopv_entry_desc spec_vnodeop_entries[] = {
@@ -842,7 +845,7 @@ spec_getpages(ap)
}
/* ARGSUSED */
-int
+static int
spec_getattr(ap)
struct vop_getattr_args /* {
struct vnode *a_vp;
diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h
index d5f3755..c2bd8be 100644
--- a/sys/miscfs/specfs/specdev.h
+++ b/sys/miscfs/specfs/specdev.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)specdev.h 8.2 (Berkeley) 2/2/94
- * $Id: specdev.h,v 1.6 1995/11/21 12:54:02 bde Exp $
+ * $Id: specdev.h,v 1.7 1995/12/11 04:56:43 dyson Exp $
*/
/*
@@ -82,17 +82,12 @@ struct buf;
struct uio;
int spec_badop __P((void));
-int spec_ebadf __P((void));
int spec_lookup __P((struct vop_lookup_args *));
#define spec_create ((int (*) __P((struct vop_create_args *)))spec_badop)
#define spec_mknod ((int (*) __P((struct vop_mknod_args *)))spec_badop)
int spec_open __P((struct vop_open_args *));
int spec_close __P((struct vop_close_args *));
#define spec_access ((int (*) __P((struct vop_access_args *)))spec_ebadf)
-/*
-#define spec_getattr ((int (*) __P((struct vop_getattr_args *)))spec_ebadf)
-*/
-int spec_getattr __P((struct vop_getattr_args *));
#define spec_setattr ((int (*) __P((struct vop_setattr_args *)))spec_ebadf)
int spec_read __P((struct vop_read_args *));
int spec_write __P((struct vop_write_args *));
OpenPOWER on IntegriCloud