On Thu, Apr 29, 2010 at 08:51:19AM +0000, David Holland wrote: > On Thu, Apr 29, 2010 at 07:14:35AM +0000, Jukka Ruohonen wrote: > > Note that utimes(2) no longer enjoys the blessing of POSIX. > > What's the currently-blessed alternative?
2004: APPLICATION USAGE "For applications portability, the utime() function should be used to set file access and modification times instead of utimes()." FUTURE DIRECTIONS This function may be withdrawn in a future version. 2008: "The utimes() function shall be equivalent to the utimensat() function with the special value AT_FDCWD as the fd argument and the flag argument set to zero, except that the times argument is a timeval structure rather than a timespec structure, and accuracy is only to the microsecond, not nanosecond, and rounding towards the nearest second may occur." So I guess the *at() thing strikes again. - Jukka.