From 5618f013d44144e4950ce971d0cefabb4ce35c14 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 11 Jul 1994 19:47:41 +0000 Subject: entered into RCS --- libtrivfs/times.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libtrivfs/times.c b/libtrivfs/times.c index cab0e28c..2c527612 100644 --- a/libtrivfs/times.c +++ b/libtrivfs/times.c @@ -15,33 +15,36 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "priv.h" -void +error_t trivfs_set_atime (struct trivfs_control *cntl) { struct stat st; time_value_t atime; time_value_t mtime; - io_stat (cntl->realnode, &st); + io_stat (cntl->underlying, &st); mtime.seconds = st.st_mtime; mtime.microseconds = st.st_mtime_usec; host_get_time (mach_host_self (), &atime); - file_utimes (cntl->realnode, atime, mtime); + file_utimes (cntl->underlying, atime, mtime); + return 0; } -void +error_t trivfs_set_mtime (struct trivfs_control *cntl) { struct stat st; time_value_t atime; time_value_t mtime; - io_stat (cntl->realnode, &st); + io_stat (cntl->underlying, &st); atime.seconds = st.st_atime; atime.microseconds = st.st_atime_usec; host_get_time (mach_host_self (), &mtime); - file_utimes (cntl->realnode, atime, mtime); + file_utimes (cntl->underlying, atime, mtime); + return 0; } -- cgit v1.2.3