diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-07-11 19:47:41 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-07-11 19:47:41 +0000 |
commit | 5618f013d44144e4950ce971d0cefabb4ce35c14 (patch) | |
tree | a612c45315d69fba271b675510b1b2f0bdc81fb7 /libtrivfs | |
parent | 037e6a840d2da5fe7c3532095645374042eb44df (diff) |
entered into RCS
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/times.c | 15 |
1 files 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; } |