From af255dc5f2183106bae4dd9e3e2a3a1adf41fac3 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sun, 22 Aug 1999 16:50:30 +0000 Subject: [PATCH] Go back to using microtime() to get the timestamps for {f,l,}utimes(path, NULL) for now. Bruce says I jumped the gun with my change in revision 1.131, or maybe it should use nanotime(), or maybe it shouldn't be decided in the VFS layer at all. I'm leaving it with the old behavior until the Trans-Pacific Internet Vulcan Mind Meld yields fuller understanding. --- sys/kern/vfs_extattr.c | 5 +++-- sys/kern/vfs_syscalls.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index a35d9771070..ef8cb7a621f 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.130 1999/08/12 20:38:32 alfred Exp $ + * $Id: vfs_syscalls.c,v 1.131 1999/08/22 01:46:57 jdp Exp $ */ /* For 4.3 integer FS ID compatibility */ @@ -2192,7 +2192,8 @@ getutimes(usrtvp, tsp) int error; if (usrtvp == NULL) { - vfs_timestamp(&tsp[0]); + microtime(&tv[0]); + TIMEVAL_TO_TIMESPEC(&tv[0], &tsp[0]); tsp[1] = tsp[0]; } else { if ((error = copyin(usrtvp, tv, sizeof (tv))) != 0) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index a35d9771070..ef8cb7a621f 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.130 1999/08/12 20:38:32 alfred Exp $ + * $Id: vfs_syscalls.c,v 1.131 1999/08/22 01:46:57 jdp Exp $ */ /* For 4.3 integer FS ID compatibility */ @@ -2192,7 +2192,8 @@ getutimes(usrtvp, tsp) int error; if (usrtvp == NULL) { - vfs_timestamp(&tsp[0]); + microtime(&tv[0]); + TIMEVAL_TO_TIMESPEC(&tv[0], &tsp[0]); tsp[1] = tsp[0]; } else { if ((error = copyin(usrtvp, tv, sizeof (tv))) != 0) -- 2.45.2