more ctime bugs

Eric Blake
Sun Feb 13 16:19:00 GMT 2005

Corinna Vinschen <corinna-cygwin <at>> writes:
> I'll update Cygwin to set ctime in close and link.  Link
> is special since it doesn't involve using any explicit file descriptors,
> so it's a bit unclear where to set the flags inside Cygwin to get that
> right.  Using close() seems a good way to have ctime set for write()
> as well as open(O_TRUNC).

I see the new has_changed flag in the 20050211 snapshot.  But you still have to
add a call to touch_ctime() within the stat() family of calls if has_changed is
set, in order to comply with the required semantics; stat and lstat are not
allowed to return out-of-date timestamps.

Eric Blake

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list