diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-07-18 19:33:19 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-07-18 19:33:19 +0000 |
commit | 976b1f5fd238a9c505dd8ff0840b3f9a65a0acde (patch) | |
tree | e10129b1bf96667daa10a05b9b6a875b0e7e4513 /libdiskfs/node-times.c | |
parent | 4c49c1fbe0480e0aa165b9fa5156f71378f9eea1 (diff) |
entered into RCS
Diffstat (limited to 'libdiskfs/node-times.c')
-rw-r--r-- | libdiskfs/node-times.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c index eb3ad37e..54df9c0e 100644 --- a/libdiskfs/node-times.c +++ b/libdiskfs/node-times.c @@ -37,18 +37,33 @@ diskfs_set_node_times (struct node *np) if (np->dn_set_mtime) { +#ifdef notyet np->dn_stat.st_mtimespec.ts_sec = secs; np->dn_stat.st_mtimespec.ts_nsec = usecs * 1000; +#else + np->dn_stat.st_mtime = secs; + np->dn_stat.st_mtime_usec = usecs; +#endif } if (np->dn_set_atime) { +#ifdef notyet np->dn_stat.st_atimespec.ts_sec = secs; np->dn_stat.st_atimespec.ts_nsec = usecs * 1000; +#else + np->dn_stat.st_atime = secs; + np->dn_stat.st_atime_usec = usecs; +#endif } if (np->dn_set_ctime) { +#ifdef notyet np->dn_stat.st_ctimespec.ts_sec = secs; np->dn_stat.st_ctimespec.ts_nsec = usecs * 1000; +#else + np->dn_stat.st_ctime = secs; + np->dn_stat.st_ctime_usec = usecs; +#endif } if (np->dn_set_mtime || np->dn_set_atime || np->dn_set_ctime) |