Andrew,
Attached are two files:
test_utimensat.c
a program that can be used to perform command-line-driven tests
of most aspects of the operation of utimensat().
utimensat_tests.sh
a shell script that uses the preceding C program to perform
a battery of tests against utimensat().
Cheers,
Michael