Instead of checking for futimens support and falling back
(incorrectly in one case) to using futimes, use gnulib's
module.
However the gnulib module does not yet support Win32, so
this change is only really useful on platforms like RHEL 5.
m4/canonicalize-lgpl.m4
m4/chdir-long.m4
m4/chown.m4
+m4/clock_time.m4
m4/close.m4
m4/codeset.m4
m4/d-ino.m4
m4/fdopendir.m4
m4/float_h.m4
m4/fnmatch.m4
+m4/futimens.m4
m4/getcwd-abort-bug.m4
m4/getcwd-path-max.m4
m4/getcwd.m4
m4/getgroups.m4
m4/getline.m4
m4/getlogin_r.m4
+m4/gettime.m4
m4/gettimeofday.m4
m4/getpagesize.m4
m4/getugroups.m4
m4/sys_wait_h.m4
m4/tempname.m4
m4/time_h.m4
+m4/timespec.m4
m4/unistd-safer.m4
m4/unistd_h.m4
m4/unlink.m4
m4/unlinkdir.m4
m4/usleep.m4
+m4/utimbuf.m4
+m4/utimecmp.m4
+m4/utimens.m4
+m4/utimes.m4
m4/vasnprintf.m4
m4/vasprintf.m4
m4/warnings.m4
dnl Functions which may not be available in older distributions.
AC_CHECK_FUNCS([\
- futimens \
getxattr \
inotify_init1 \
lgetxattr \
return -1;
}
-#ifdef HAVE_FUTIMENS
r = futimens (fd, NULL);
-#else
- r = futimes (fd, NULL);
-#endif
if (r == -1) {
reply_with_perror ("futimens: %s", path);
close (fd);
# Specification in the form of a command-line invocation:
-# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl c-ctype getline glob hash ignore-value manywarnings mkdtemp netdb openat readlink select sleep strchrnul strndup sys_select sys_wait vasprintf warnings
+# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl c-ctype futimens getline glob hash ignore-value manywarnings mkdtemp netdb openat readlink select sleep strchrnul strndup sys_select sys_wait vasprintf warnings
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
gl_MODULES([
c-ctype
+ futimens
getline
glob
hash
int64_t atsecs, int64_t atnsecs,
int64_t mtsecs, int64_t mtnsecs)
{
-#ifndef HAVE_FUTIMENS
- reply_with_error ("utimens: not supported in this appliance");
- return -1;
-#else
int fd;
int r;
}
return 0;
-#endif /* HAVE_FUTIMENS */
}