summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-01-06 02:08:41 +0100
committerBruno Haible <bruno@clisp.org>2021-01-06 04:59:20 +0100
commit9333dcf67b904820e442634077ecfe285b363c1a (patch)
treed5433564b16e2956c1725c1ab14fa9b1fbc39369 /doc
parentdb1e2d8454753100558a2208a7f858ac957c25d0 (diff)
downloadgnulib-9333dcf67b904820e442634077ecfe285b363c1a.tar.gz
utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a test for trailing slash handling. Improve cross-compilation guesses. Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT. * lib/utimensat.c (rpl_utimensat): Add alternative implementation when HAVE_NEARLY_WORKING_UTIMENSAT is defined. * lib/utimens.c: Use the overridden utimensat when HAVE_NEARLY_WORKING_UTIMENSAT is defined. * doc/posix-functions/utimensat.texi: Mention the AIX bug.
Diffstat (limited to 'doc')
-rw-r--r--doc/glibc-functions/futimesat.texi2
-rw-r--r--doc/posix-functions/utime.texi2
-rw-r--r--doc/posix-functions/utimensat.texi3
-rw-r--r--doc/posix-functions/utimes.texi2
4 files changed, 6 insertions, 3 deletions
diff --git a/doc/glibc-functions/futimesat.texi b/doc/glibc-functions/futimesat.texi
index 537bf42020..9c1136894c 100644
--- a/doc/glibc-functions/futimesat.texi
+++ b/doc/glibc-functions/futimesat.texi
@@ -16,7 +16,7 @@ Portability problems not fixed by Gnulib:
This function is missing on some platforms:
glibc 2.3.6, Mac OS X 10.13, FreeBSD 6.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Cygwin 1.5.x, mingw, MSVC 14, Android 7.1.
@item
-On some platforms, this function mis-handles trailing slash:
+On some platforms, this function mis-handles a trailing slash:
Solaris 9.
@item
This function cannot set full timestamp resolution. Use
diff --git a/doc/posix-functions/utime.texi b/doc/posix-functions/utime.texi
index 4e41e5d52c..79e97f5eb0 100644
--- a/doc/posix-functions/utime.texi
+++ b/doc/posix-functions/utime.texi
@@ -25,7 +25,7 @@ Mac OS X 10.13.
Portability problems not fixed by Gnulib:
@itemize
@item
-On some platforms, this function mis-handles trailing slash:
+On some platforms, this function mis-handles a trailing slash:
Solaris 9.
@item
This function cannot set full timestamp resolution. Use
diff --git a/doc/posix-functions/utimensat.texi b/doc/posix-functions/utimensat.texi
index 92c2b8b64f..03a2912c0a 100644
--- a/doc/posix-functions/utimensat.texi
+++ b/doc/posix-functions/utimensat.texi
@@ -36,6 +36,9 @@ Linux kernel 2.6.32, Mac OS X 10.13, NetBSD 9.0, Solaris 11.1.
Out-of-range values of @code{tv_nsec} do not lead to a failure on some
platforms:
Linux kernel 2.6.22.19 on hppa.
+@item
+On some platforms, this function mis-handles a trailing slash:
+AIX 7.2.
@end itemize
Portability problems not fixed by Gnulib:
diff --git a/doc/posix-functions/utimes.texi b/doc/posix-functions/utimes.texi
index 5505906662..13ceb99690 100644
--- a/doc/posix-functions/utimes.texi
+++ b/doc/posix-functions/utimes.texi
@@ -16,7 +16,7 @@ Portability problems not fixed by Gnulib:
This function is missing on some platforms:
Minix 3.1.8, mingw, MSVC 14.
@item
-On some platforms, this function mis-handles trailing slash:
+On some platforms, this function mis-handles a trailing slash:
FreeBSD 7.2, Solaris 9.
@item
This function cannot set full timestamp resolution. In particular,