utimecmp: support symlink timestamps
authorEric Blake <ebb9@byu.net>
Thu, 8 Oct 2009 04:06:49 +0000 (22:06 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 10 Oct 2009 14:30:36 +0000 (08:30 -0600)
commit4a060c0d72bf079c873d2acb0191c64e17efc042
tree26400b7815be5fa13a4519f3e5e56d9f810a7c96
parent2726b8f439601389d4e01839982d3a01cd51849d
utimecmp: support symlink timestamps

Update this module to reflect POSIX 2008:
With pathconf, we can avoid calling utimens.
With utimensat, the system resolution can be 1.
With lutimens, we can determine resolution on symlinks.

* lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
hashing when possible.  Use pathconf when available.
(SYSCALL_RESOLUTION): Recognize tighter resolution.
* modules/utimecmp (Depends-on): Add lstat.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/utimecmp.c
modules/utimecmp