]> Savannah Git Hosting - gnulib.git/commitdiff
lchmod: Ensure declaration on HP-UX.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Feb 2020 20:22:15 +0000 (21:22 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Feb 2020 20:22:15 +0000 (21:22 +0100)
* lib/sys_stat.in.h (lchown): Declare also on HP-UX.
* doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.

ChangeLog
doc/glibc-functions/lchmod.texi
lib/sys_stat.in.h

index fc07914b210aa455319e4e913aef0455812c8897..ffb20961b7a5eae68e4884a052a74042981e51d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-08  Bruno Haible  <bruno@clisp.org>
+
+       lchmod: Ensure declaration on HP-UX.
+       * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
+       * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
+
 2020-02-08  Bruno Haible  <bruno@clisp.org>
 
        fchmodat: Strengthen tests.
index 6cc48b45393615364377ce2b6c4df6bfd01918ad..7a2e9d018cdecf2d62775a23a258661d99e175d0 100644 (file)
@@ -10,6 +10,9 @@ Portability problems fixed by Gnulib:
 This function is missing on some platforms:
 OpenBSD 3.8, Minix 3.1.8, AIX 5.1, IRIX 6.5, Solaris 11.4, Cygwin, mingw, MSVC 14, Android 9.0.
 @item
+This function is not declared on some platforms:
+HP-UX 11.31.
+@item
 This function always fails with @code{errno} set to @code{ENOSYS},
 even when the file is not a symbolic link:
 GNU/Linux with glibc 2.31.
index 4f9eb5976fb8f9a40bdcb5af26068189c586160f..65661f468ae7045473ffae0ade430477fa79440c 100644 (file)
@@ -525,7 +525,7 @@ _GL_FUNCDECL_RPL (lchmod, int,
 _GL_CXXALIAS_RPL (lchmod, int,
                   (char const *filename, mode_t mode));
 # else
-#  if !@HAVE_LCHMOD@
+#  if !@HAVE_LCHMOD@ || defined __hpux
 _GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode)
                                _GL_ARG_NONNULL ((1)));
 #  endif