From: Bruno Haible Date: Sat, 8 Feb 2020 20:22:15 +0000 (+0100) Subject: lchmod: Ensure declaration on HP-UX. X-Git-Tag: v1.0~4257 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d863fc54623c497e0ed51fb0d7011415dc943434;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index fc07914b21..ffb20961b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-02-08 Bruno Haible + + 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 fchmodat: Strengthen tests. diff --git a/doc/glibc-functions/lchmod.texi b/doc/glibc-functions/lchmod.texi index 6cc48b4539..7a2e9d018c 100644 --- a/doc/glibc-functions/lchmod.texi +++ b/doc/glibc-functions/lchmod.texi @@ -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. diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 4f9eb5976f..65661f468a 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -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