-/* Use futimens if possible, utimensat otherwise. */
-int
-fd_utimensat (int fd, int parentfd, char const *file,
- struct timespec const ts[2], int atflag)
-{
- if (0 <= fd)
- {
- int result = futimens (fd, ts);
- if (! (result < 0 && errno == ENOSYS))
- return result;
- }
-
- return utimensat (parentfd, file, ts, atflag);
-}
-