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/fs/procfs | |
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/fs/procfs')
-rw-r--r-- | sys/fs/procfs/procfs.h | 4 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_ctl.c | 9 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_vfsops.c | 3 |
3 files changed, 11 insertions, 5 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h index 7a1bbb8..79a77da 100644 --- a/sys/fs/procfs/procfs.h +++ b/sys/fs/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/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c index 5902efd..5befe23 100644 --- a/sys/fs/procfs/procfs_ctl.c +++ b/sys/fs/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/fs/procfs/procfs_vfsops.c b/sys/fs/procfs/procfs_vfsops.c index e54d012..4379d0a 100644 --- a/sys/fs/procfs/procfs_vfsops.c +++ b/sys/fs/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) { |