From 00475b662ad28e7f09931eb67a642ba1ee36db99 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Mar 1998 20:54:05 +0000 Subject: 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. --- sys/fs/portalfs/portal_vnops.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/fs/portalfs') 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; -- cgit v1.1