diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
| commit | f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41 (patch) | |
| tree | 6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/fs/procfs | |
| parent | fa074287a4952da8528838c7812d02678e4c7205 (diff) | |
Notes
Diffstat (limited to 'sys/fs/procfs')
| -rw-r--r-- | sys/fs/procfs/procfs_vfsops.c | 3 | ||||
| -rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_vfsops.c b/sys/fs/procfs/procfs_vfsops.c index b5c9c7d9226a..9d161098442c 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.2 1994/05/25 09:08:33 rgrimes Exp $ + * $Id: procfs_vfsops.c,v 1.3 1994/08/02 07:45:23 davidg Exp $ */ /* @@ -44,6 +44,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/time.h> #include <sys/kernel.h> #include <sys/proc.h> diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index e06d1316e98e..7e59301f6b41 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94 * - * $Id: procfs_vnops.c,v 1.2 1994/05/25 09:08:39 rgrimes Exp $ + * $Id: procfs_vnops.c,v 1.3 1994/08/02 07:45:25 davidg Exp $ */ /* @@ -376,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; /* |
