
8 Oct
2004
8 Oct
'04
10:38 p.m.
Beman Dawes wrote: [...]
That was meant read:
buf.actime = std::time(0)
funny :)
Now, it may be a poor design to update actime to the current time. It might be better to do a stat(), and get st_atime, and then use that. Opinions?
IMO the really poor design is that of ::utime which forces you to set both the access time and the write time in the same call; I'm afraid you have no choice but to determine the actual access time before (as you suggested) :( Stefan