summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-23 20:08:16 +0000
committerMiles Bader <miles@gnu.org>1996-07-23 20:08:16 +0000
commitf78a7ca8d86f11f1890ca0c6c8c8bfcdc4ff30ab (patch)
tree7f16dbb3bdaec23295cb637a6fd5fffca682265e
parent5b260557b1614a17648ca41f131f7dba4cafd2ff (diff)
(write_node, read_disknode):
`struct timespec' now uses a field prefix of `tv_'.
-rw-r--r--ufs/inode.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index aa2f3a8c..640e6b6f 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -240,12 +240,12 @@ read_disknode (struct node *np)
st->st_mtimespec = di->di_mtime;
st->st_ctimespec = di->di_ctime;
#else
- st->st_atime = read_disk_entry (di->di_atime.ts_sec);
- st->st_atime_usec = read_disk_entry (di->di_atime.ts_nsec) / 1000;
- st->st_mtime = read_disk_entry (di->di_mtime.ts_sec);
- st->st_mtime_usec = read_disk_entry (di->di_mtime.ts_nsec) / 1000;
- st->st_ctime = read_disk_entry (di->di_ctime.ts_sec);
- st->st_ctime_usec = read_disk_entry (di->di_ctime.ts_nsec) / 1000;
+ st->st_atime = read_disk_entry (di->di_atime.tv_sec);
+ st->st_atime_usec = read_disk_entry (di->di_atime.tv_nsec) / 1000;
+ st->st_mtime = read_disk_entry (di->di_mtime.tv_sec);
+ st->st_mtime_usec = read_disk_entry (di->di_mtime.tv_nsec) / 1000;
+ st->st_ctime = read_disk_entry (di->di_ctime.tv_sec);
+ st->st_ctime_usec = read_disk_entry (di->di_ctime.tv_nsec) / 1000;
#endif
st->st_blksize = sblock->fs_bsize;
st->st_blocks = read_disk_entry (di->di_blocks);
@@ -353,12 +353,12 @@ write_node (struct node *np)
di->di_mtime = st->st_mtimespec;
di->di_ctime = st->st_ctimespec;
#else
- write_disk_entry (di->di_atime.ts_sec, st->st_atime);
- write_disk_entry (di->di_atime.ts_nsec, st->st_atime_usec * 1000);
- write_disk_entry (di->di_mtime.ts_sec, st->st_mtime);
- write_disk_entry (di->di_mtime.ts_nsec, st->st_mtime_usec * 1000);
- write_disk_entry (di->di_ctime.ts_sec, st->st_ctime);
- write_disk_entry (di->di_ctime.ts_nsec, st->st_ctime_usec * 1000);
+ write_disk_entry (di->di_atime.tv_sec, st->st_atime);
+ write_disk_entry (di->di_atime.tv_nsec, st->st_atime_usec * 1000);
+ write_disk_entry (di->di_mtime.tv_sec, st->st_mtime);
+ write_disk_entry (di->di_mtime.tv_nsec, st->st_mtime_usec * 1000);
+ write_disk_entry (di->di_ctime.tv_sec, st->st_ctime);
+ write_disk_entry (di->di_ctime.tv_nsec, st->st_ctime_usec * 1000);
#endif
write_disk_entry (di->di_blocks, st->st_blocks);
write_disk_entry (di->di_flags, st->st_flags);