summaryrefslogtreecommitdiff
path: root/libtrivfs/times.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-01-31 23:50:16 +0000
committerThomas Bushnell <thomas@gnu.org>1999-01-31 23:50:16 +0000
commit3ffa3f5df170bc879cc852c64a7e04fdc027f363 (patch)
treec5d3bc4b64d6a96b08bf32a2859ec4a46bebf03d /libtrivfs/times.c
parenteef100d3e42e30b98b2218a102d98841e2e5e41f (diff)
Sun Jan 31 18:29:22 1999 Thomas Bushnell, BSG <tb@mit.edu>
* times.c (trivfs_set_atime, trivefs_set_mtime): Take advantage of new semantics for file_utimes.
Diffstat (limited to 'libtrivfs/times.c')
-rw-r--r--libtrivfs/times.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtrivfs/times.c b/libtrivfs/times.c
index 2c527612..b57fa981 100644
--- a/libtrivfs/times.c
+++ b/libtrivfs/times.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1999 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -27,7 +27,7 @@ trivfs_set_atime (struct trivfs_control *cntl)
io_stat (cntl->underlying, &st);
mtime.seconds = st.st_mtime;
mtime.microseconds = st.st_mtime_usec;
- host_get_time (mach_host_self (), &atime);
+ atime.microseconds = -1;
file_utimes (cntl->underlying, atime, mtime);
return 0;
}
@@ -42,7 +42,7 @@ trivfs_set_mtime (struct trivfs_control *cntl)
io_stat (cntl->underlying, &st);
atime.seconds = st.st_atime;
atime.microseconds = st.st_atime_usec;
- host_get_time (mach_host_self (), &mtime);
+ mtime.microseconds = -1;
file_utimes (cntl->underlying, atime, mtime);
return 0;
}