On 09/16/2010 11:48 AM, Paul Eggert wrote:
@@ -621,24 +613,30 @@ deref_stat (bool deref, char const *name, struct stat *buf) return deref ? stat (name, buf) : lstat (name, buf); }-/* Set FD's (i.e., FILE's) access time to TIMESPEC[0]. If that's not - possible to do by itself, set its access and data modification - times to TIMESPEC[0] and TIMESPEC[1], respectively. */ +/* Use futimens if possible, utimensat otherwise. */ int -set_file_atime (int fd, char const *file, struct timespec const timespec[2]) +fd_utimensat (int fd, int parentfd, char const *file, + struct timespec const ts[2], int atflag)
Why not just use the gnulib module fdutimensat instead of reimplementing this yourself as fd_utimensat?
-- Eric Blake [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
