diff options
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_ctl.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_fpregs.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_note.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_regs.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_status.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 15 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 25 |
10 files changed, 43 insertions, 21 deletions
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index f7b8fa3..7a1bbb8 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -36,8 +36,7 @@ * * @(#)procfs.h 8.6 (Berkeley) 2/3/94 * - * From: - * $Id: procfs.h,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs.h,v 1.1.1.1 1994/05/24 10:05:07 rgrimes Exp $ */ /* diff --git a/sys/miscfs/procfs/procfs_ctl.c b/sys/miscfs/procfs/procfs_ctl.c index a42a03c..44ee3fd 100644 --- a/sys/miscfs/procfs/procfs_ctl.c +++ b/sys/miscfs/procfs/procfs_ctl.c @@ -36,8 +36,7 @@ * * @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94 * - * From: - * $Id: procfs_ctl.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_ctl.c,v 1.1.1.1 1994/05/24 10:05:10 rgrimes Exp $ */ #include <sys/param.h> diff --git a/sys/miscfs/procfs/procfs_fpregs.c b/sys/miscfs/procfs/procfs_fpregs.c index 6d850a6..331a671 100644 --- a/sys/miscfs/procfs/procfs_fpregs.c +++ b/sys/miscfs/procfs/procfs_fpregs.c @@ -36,8 +36,7 @@ * * @(#)procfs_fpregs.c 8.1 (Berkeley) 1/27/94 * - * From: - * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_fpregs.c,v 1.1.1.1 1994/05/24 10:05:09 rgrimes Exp $ */ #include <sys/param.h> diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index 039983d..f297df0 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -37,8 +37,7 @@ * * @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94 * - * From: - * $Id: procfs_mem.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_mem.c,v 1.1.1.1 1994/05/24 10:05:09 rgrimes Exp $ */ /* diff --git a/sys/miscfs/procfs/procfs_note.c b/sys/miscfs/procfs/procfs_note.c index bf2f160..a7699f2 100644 --- a/sys/miscfs/procfs/procfs_note.c +++ b/sys/miscfs/procfs/procfs_note.c @@ -36,8 +36,7 @@ * * @(#)procfs_note.c 8.2 (Berkeley) 1/21/94 * - * From: - * $Id: procfs_note.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_note.c,v 1.1.1.1 1994/05/24 10:05:09 rgrimes Exp $ */ #include <sys/param.h> diff --git a/sys/miscfs/procfs/procfs_regs.c b/sys/miscfs/procfs/procfs_regs.c index fa95fef..8b0600a 100644 --- a/sys/miscfs/procfs/procfs_regs.c +++ b/sys/miscfs/procfs/procfs_regs.c @@ -36,8 +36,7 @@ * * @(#)procfs_regs.c 8.3 (Berkeley) 1/27/94 * - * From: - * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_regs.c,v 1.1.1.1 1994/05/24 10:05:08 rgrimes Exp $ */ #include <sys/param.h> diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c index d88aaab..1792dfd 100644 --- a/sys/miscfs/procfs/procfs_status.c +++ b/sys/miscfs/procfs/procfs_status.c @@ -36,8 +36,7 @@ * * @(#)procfs_status.c 8.3 (Berkeley) 2/17/94 * - * From: - * $Id: procfs_status.c,v 3.1 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_status.c,v 1.1.1.1 1994/05/24 10:05:08 rgrimes Exp $ */ #include <sys/param.h> diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index b371af1..b5ab705 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/procfs/procfs_subr.c @@ -36,8 +36,7 @@ * * @(#)procfs_subr.c 8.4 (Berkeley) 1/27/94 * - * From: - * $Id: procfs_subr.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_subr.c,v 1.1.1.1 1994/05/24 10:05:08 rgrimes Exp $ */ #include <sys/param.h> diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index 3938ca1..9d16109 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -36,8 +36,7 @@ * * @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94 * - * From: - * $Id: procfs_vfsops.c,v 3.1 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_vfsops.c,v 1.3 1994/08/02 07:45:23 davidg Exp $ */ /* @@ -45,6 +44,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/kernel.h> #include <sys/proc.h> @@ -62,6 +62,7 @@ * mount system call */ /* ARGSUSED */ +int procfs_mount(mp, path, data, ndp, p) struct mount *mp; char *path; @@ -96,6 +97,7 @@ procfs_mount(mp, path, data, ndp, p) /* * unmount system call */ +int procfs_unmount(mp, mntflags, p) struct mount *mp; int mntflags; @@ -118,6 +120,7 @@ procfs_unmount(mp, mntflags, p) return (0); } +int procfs_root(mp, vpp) struct mount *mp; struct vnode **vpp; @@ -141,6 +144,7 @@ procfs_root(mp, vpp) /* */ /* ARGSUSED */ +int procfs_start(mp, flags, p) struct mount *mp; int flags; @@ -153,6 +157,7 @@ procfs_start(mp, flags, p) /* * Get file system statistics. */ +int procfs_statfs(mp, sbp, p) struct mount *mp; struct statfs *sbp; @@ -177,6 +182,7 @@ procfs_statfs(mp, sbp, p) } +int procfs_quotactl(mp, cmds, uid, arg, p) struct mount *mp; int cmds; @@ -188,6 +194,7 @@ procfs_quotactl(mp, cmds, uid, arg, p) return (EOPNOTSUPP); } +int procfs_sync(mp, waitfor) struct mount *mp; int waitfor; @@ -196,6 +203,7 @@ procfs_sync(mp, waitfor) return (0); } +int procfs_vget(mp, ino, vpp) struct mount *mp; ino_t ino; @@ -205,6 +213,7 @@ procfs_vget(mp, ino, vpp) return (EOPNOTSUPP); } +int procfs_fhtovp(mp, fhp, vpp) struct mount *mp; struct fid *fhp; @@ -214,6 +223,7 @@ procfs_fhtovp(mp, fhp, vpp) return (EINVAL); } +int procfs_vptofh(vp, fhp) struct vnode *vp; struct fid *fhp; @@ -222,6 +232,7 @@ procfs_vptofh(vp, fhp) return EINVAL; } +int procfs_init() { diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index 4e1ee00..7e59301 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -36,8 +36,7 @@ * * @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94 * - * From: - * $Id: procfs_vnops.c,v 3.2 1993/12/15 09:40:17 jsp Exp $ + * $Id: procfs_vnops.c,v 1.3 1994/08/02 07:45:25 davidg Exp $ */ /* @@ -100,6 +99,7 @@ static pid_t atopid __P((const char *, u_int)); * is to support exclusive open on process * memory images. */ +int procfs_open(ap) struct vop_open_args *ap; { @@ -134,6 +134,7 @@ procfs_open(ap) * nothing to do for procfs other than undo * any exclusive open flag (see _open above). */ +int procfs_close(ap) struct vop_close_args *ap; { @@ -153,6 +154,7 @@ procfs_close(ap) * do an ioctl operation on pfsnode (vp). * (vp) is not locked on entry or exit. */ +int procfs_ioctl(ap) struct vop_ioctl_args *ap; { @@ -170,6 +172,7 @@ procfs_ioctl(ap) * usual no-op bmap, although returning * (EIO) would be a reasonable alternative. */ +int procfs_bmap(ap) struct vop_bmap_args *ap; { @@ -197,6 +200,7 @@ procfs_bmap(ap) * * (vp) is not locked on entry or exit. */ +int procfs_inactive(ap) struct vop_inactive_args *ap; { @@ -215,6 +219,7 @@ procfs_inactive(ap) * to free any private data and remove the node * from any private lists. */ +int procfs_reclaim(ap) struct vop_reclaim_args *ap; { @@ -227,6 +232,7 @@ procfs_reclaim(ap) /* * Return POSIX pathconf information applicable to special devices. */ +int procfs_pathconf(ap) struct vop_pathconf_args /* { struct vnode *a_vp; @@ -265,6 +271,7 @@ procfs_pathconf(ap) * just print a readable description * of (vp). */ +int procfs_print(ap) struct vop_print_args *ap; { @@ -273,6 +280,7 @@ procfs_print(ap) printf("tag VT_PROCFS, pid %d, mode %x, flags %x\n", pfs->pfs_pid, pfs->pfs_mode, pfs->pfs_flags); + return (0); } /* @@ -281,6 +289,7 @@ procfs_print(ap) * for undoing any side-effects caused by the lookup. * this will always include freeing the pathname buffer. */ +int procfs_abortop(ap) struct vop_abortop_args *ap; { @@ -293,6 +302,7 @@ procfs_abortop(ap) /* * generic entry point for unsupported operations */ +int procfs_badop() { @@ -308,6 +318,7 @@ procfs_badop() * * this is relatively minimal for procfs. */ +int procfs_getattr(ap) struct vop_getattr_args *ap; { @@ -365,7 +376,11 @@ procfs_getattr(ap) * p_stat structure is not addressible if u. gets * swapped out for that process. */ - microtime(&vap->va_ctime); + { + struct timeval tv; + microtime(&tv); + TIMEVAL_TO_TIMESPEC(&tv, &vap->va_ctime); + } vap->va_atime = vap->va_mtime = vap->va_ctime; /* @@ -423,6 +438,7 @@ procfs_getattr(ap) return (error); } +int procfs_setattr(ap) struct vop_setattr_args *ap; { @@ -451,6 +467,7 @@ procfs_setattr(ap) * but does mean that the i/o entry points need to check * that the operation really does make sense. */ +int procfs_access(ap) struct vop_access_args *ap; { @@ -502,6 +519,7 @@ found: * filesystem doesn't do any locking of its own. otherwise * read and inwardly digest ufs_lookup(). */ +int procfs_lookup(ap) struct vop_lookup_args *ap; { @@ -612,6 +630,7 @@ procfs_lookup(ap) * * this should just be done through read() */ +int procfs_readdir(ap) struct vop_readdir_args *ap; { |