diff options
author | bde <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
commit | 289f11acb49b6dbb3081e09bf94a86f008f55814 (patch) | |
tree | e4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/miscfs | |
parent | 4c4945abee9eabe3a2be340ba973ae861c21a3c6 (diff) | |
download | FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.zip FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.tar.gz |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/fdesc/fdesc_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/fifofs/fifo.h | 4 | ||||
-rw-r--r-- | sys/miscfs/fifofs/fifo_vnops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/kernfs/kernfs_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/nullfs/null_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 4 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_ctl.c | 9 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/umapfs/umap_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/union/union.h | 5 | ||||
-rw-r--r-- | sys/miscfs/union/union_vfsops.c | 6 |
12 files changed, 29 insertions, 20 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vfsops.c b/sys/miscfs/fdesc/fdesc_vfsops.c index d82f14d..e44c045 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.1.1.1 1994/05/24 10:04:59 rgrimes Exp $ + * $Id: fdesc_vfsops.c,v 1.2 1994/09/21 03:46:55 wollman Exp $ */ /* @@ -116,7 +116,6 @@ fdesc_unmount(mp, mntflags, p) { int error; int flags = 0; - extern int doforce; struct vnode *rootvp = VFSTOFDESC(mp)->f_root; if (mntflags & MNT_FORCE) { diff --git a/sys/miscfs/fifofs/fifo.h b/sys/miscfs/fifofs/fifo.h index 384b6c2..3f2d8ef 100644 --- a/sys/miscfs/fifofs/fifo.h +++ b/sys/miscfs/fifofs/fifo.h @@ -31,9 +31,11 @@ * SUCH DAMAGE. * * @(#)fifo.h 8.2 (Berkeley) 2/2/94 - * $Id: fifo.h,v 1.3 1994/09/22 19:38:05 wollman Exp $ + * $Id: fifo.h,v 1.4 1995/02/14 06:30:18 phk Exp $ */ +extern int (**fifo_vnodeop_p)(); + /* * Prototypes for fifo operations on vnodes. */ diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c index 78f6201..bf1ec82 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.6 1994/10/02 17:48:00 phk Exp $ + * $Id: fifo_vnops.c,v 1.7 1995/02/03 06:46:13 davidg Exp $ */ #include <sys/param.h> @@ -48,6 +48,7 @@ #include <sys/file.h> #include <sys/errno.h> #include <sys/malloc.h> +#include <sys/un.h> #include <miscfs/fifofs/fifo.h> /* diff --git a/sys/miscfs/kernfs/kernfs_vfsops.c b/sys/miscfs/kernfs/kernfs_vfsops.c index eee76e7..e59d295 100644 --- a/sys/miscfs/kernfs/kernfs_vfsops.c +++ b/sys/miscfs/kernfs/kernfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)kernfs_vfsops.c 8.4 (Berkeley) 1/21/94 - * $Id: kernfs_vfsops.c,v 1.5 1994/09/22 19:38:11 wollman Exp $ + * $Id: kernfs_vfsops.c,v 1.6 1994/10/02 17:48:08 phk Exp $ */ /* @@ -183,7 +183,6 @@ kernfs_unmount(mp, mntflags, p) { int error; int flags = 0; - extern int doforce; struct vnode *rootvp = VFSTOKERNFS(mp)->kf_root; #ifdef KERNFS_DIAGNOSTIC diff --git a/sys/miscfs/nullfs/null_vfsops.c b/sys/miscfs/nullfs/null_vfsops.c index 4e13fb2..f7656c4 100644 --- a/sys/miscfs/nullfs/null_vfsops.c +++ b/sys/miscfs/nullfs/null_vfsops.c @@ -36,7 +36,7 @@ * @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94 * * @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92 - * $Id: null_vfsops.c,v 1.3 1994/09/22 19:38:14 wollman Exp $ + * $Id: null_vfsops.c,v 1.4 1994/10/10 07:55:28 phk Exp $ */ /* @@ -186,7 +186,6 @@ nullfs_unmount(mp, mntflags, p) struct vnode *nullm_rootvp = MOUNTTONULLMOUNT(mp)->nullm_rootvp; int error; int flags = 0; - extern int doforce; #ifdef NULLFS_DIAGNOSTIC printf("nullfs_unmount(mp = %x)\n", mp); diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c index 39d54c2..cad30bd 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.4 1994/09/23 11:01:58 davidg Exp $ + * $Id: portal_vfsops.c,v 1.5 1994/10/10 07:55:35 phk Exp $ */ /* @@ -155,7 +155,6 @@ portal_unmount(mp, mntflags, p) int mntflags; struct proc *p; { - extern int doforce; struct vnode *rootvp = VFSTOPORTAL(mp)->pm_root; int error, flags = 0; diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index 7a1bbb8..79a77da 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -36,7 +36,7 @@ * * @(#)procfs.h 8.6 (Berkeley) 2/3/94 * - * $Id: procfs.h,v 1.1.1.1 1994/05/24 10:05:07 rgrimes Exp $ + * $Id: procfs.h,v 1.2 1994/08/02 07:45:08 davidg Exp $ */ /* @@ -139,6 +139,8 @@ extern int procfs_dostatus __P((struct proc *, struct proc *, struct pfsnode *pf extern int (**procfs_vnodeop_p)(); extern struct vfsops procfs_vfsops; +int procfs_root __P((struct mount *, struct vnode **)); + /* * Prototypes for procfs vnode ops */ diff --git a/sys/miscfs/procfs/procfs_ctl.c b/sys/miscfs/procfs/procfs_ctl.c index 5902efd..5befe23 100644 --- a/sys/miscfs/procfs/procfs_ctl.c +++ b/sys/miscfs/procfs/procfs_ctl.c @@ -36,7 +36,7 @@ * * @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94 * - * $Id: procfs_ctl.c,v 1.3 1994/12/31 12:26:50 ache Exp $ + * $Id: procfs_ctl.c,v 1.4 1995/02/20 15:53:32 davidg Exp $ */ #include <sys/param.h> @@ -47,10 +47,15 @@ #include <sys/vnode.h> #include <sys/ioctl.h> #include <sys/tty.h> +#include <sys/ptrace.h> #include <sys/resource.h> #include <sys/resourcevar.h> +#include <sys/signal.h> +#include <sys/signalvar.h> + +#include <vm/vm.h> + #include <miscfs/procfs/procfs.h> -#include <sys/signal.h> /* for sigmask() */ /* * True iff process (p) is in trace wait state diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index e54d012..4379d0a 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94 * - * $Id: procfs_vfsops.c,v 1.6 1994/10/10 07:55:39 phk Exp $ + * $Id: procfs_vfsops.c,v 1.7 1995/02/20 15:53:33 davidg Exp $ */ /* @@ -104,7 +104,6 @@ procfs_unmount(mp, mntflags, p) struct proc *p; { int error; - extern int doforce; int flags = 0; if (mntflags & MNT_FORCE) { diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c index e0baf46..0eeab20 100644 --- a/sys/miscfs/umapfs/umap_vfsops.c +++ b/sys/miscfs/umapfs/umap_vfsops.c @@ -35,7 +35,7 @@ * * @(#)umap_vfsops.c 8.3 (Berkeley) 1/21/94 * - * $Id: umap_vfsops.c,v 1.4 1994/09/22 19:38:19 wollman Exp $ + * $Id: umap_vfsops.c,v 1.5 1994/10/10 07:55:43 phk Exp $ */ /* @@ -227,7 +227,6 @@ umapfs_unmount(mp, mntflags, p) struct vnode *umapm_rootvp = MOUNTTOUMAPMOUNT(mp)->umapm_rootvp; int error; int flags = 0; - extern int doforce; #ifdef UMAPFS_DIAGNOSTIC printf("umapfs_unmount(mp = %x)\n", mp); diff --git a/sys/miscfs/union/union.h b/sys/miscfs/union/union.h index b66e17c..05fa481 100644 --- a/sys/miscfs/union/union.h +++ b/sys/miscfs/union/union.h @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)union.h 8.2 (Berkeley) 2/17/94 - * $Id$ + * $Id: union.h,v 1.2 1994/08/02 07:45:42 davidg Exp $ */ struct union_args { @@ -93,12 +93,15 @@ extern int union_allocvp __P((struct vnode **, struct mount *, struct vnode *, struct vnode *, struct componentname *, struct vnode *, struct vnode *)); +extern int union_freevp __P((struct vnode *)); extern int union_copyfile __P((struct proc *, struct ucred *, struct vnode *, struct vnode *)); extern int union_mkshadow __P((struct union_mount *, struct vnode *, struct componentname *, struct vnode **)); extern int union_vn_create __P((struct vnode **, struct union_node *, struct proc *)); +extern int union_vn_close __P((struct vnode *, int, struct ucred *, + struct proc *)); extern int union_cn_close __P((struct vnode *, int, struct ucred *, struct proc *)); extern void union_removed_upper __P((struct union_node *un)); diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c index 393fe9d..4000f98 100644 --- a/sys/miscfs/union/union_vfsops.c +++ b/sys/miscfs/union/union_vfsops.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)union_vfsops.c 8.7 (Berkeley) 3/5/94 - * $Id: union_vfsops.c,v 1.6 1994/10/10 07:55:47 phk Exp $ + * $Id: union_vfsops.c,v 1.7 1994/11/04 14:41:43 davidg Exp $ */ /* @@ -56,6 +56,9 @@ #include <sys/queue.h> #include <miscfs/union/union.h> +int union_root __P((struct mount *, struct vnode **)); +int union_statfs __P((struct mount *, struct statfs *, struct proc *)); + /* * Mount union filesystem */ @@ -303,7 +306,6 @@ union_unmount(mp, mntflags, p) struct vnode *um_rootvp; int error; int flags = 0; - extern int doforce; #ifdef UNION_DIAGNOSTIC printf("union_unmount(mp = %x)\n", mp); |