diff options
author | phk <phk@FreeBSD.org> | 1998-03-26 20:54:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-03-26 20:54:05 +0000 |
commit | 00475b662ad28e7f09931eb67a642ba1ee36db99 (patch) | |
tree | 12dd2aed1e3b8ecf5eb4152bf06ffa8c3ede0d7e /sys/fs/portalfs | |
parent | ff4953fbcc9f747429234d5971a802bb653e451a (diff) | |
download | FreeBSD-src-00475b662ad28e7f09931eb67a642ba1ee36db99.zip FreeBSD-src-00475b662ad28e7f09931eb67a642ba1ee36db99.tar.gz |
Add two new functions, get{micro|nano}time.
They are atomic, but return in essence what is in the "time" variable.
gettime() is now a macro front for getmicrotime().
Various patches to use the two new functions instead of the various
hacks used in their absence.
Some puntuation and grammer patches from Bruce.
A couple of XXX comments.
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r-- | sys/fs/portalfs/portal_vnops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c index e622cff..93a223f 100644 --- a/sys/fs/portalfs/portal_vnops.c +++ b/sys/fs/portalfs/portal_vnops.c @@ -35,7 +35,7 @@ * * @(#)portal_vnops.c 8.14 (Berkeley) 5/21/95 * - * $Id: portal_vnops.c,v 1.28 1997/10/27 13:33:41 bde Exp $ + * $Id: portal_vnops.c,v 1.29 1997/11/06 19:29:38 phk Exp $ */ /* @@ -453,8 +453,7 @@ portal_getattr(ap) vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0]; vap->va_size = DEV_BSIZE; vap->va_blocksize = DEV_BSIZE; - microtime(&tv); - TIMEVAL_TO_TIMESPEC(&tv, &vap->va_atime); + nanotime(&vap->va_atime); vap->va_mtime = vap->va_atime; vap->va_ctime = vap->va_ctime; vap->va_gen = 0; |