diff options
author | Bruno Haible <bruno@clisp.org> | 2022-06-22 01:43:52 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-06-22 01:43:52 +0200 |
commit | 2f1bb5913edea1ae76d365b18d73c30f1e33a034 (patch) | |
tree | 59a091a71d1927ead359a6335cd362b0e0bcdc0b /doc/posix-functions | |
parent | e67a519439200086ba122678807b4831fbeb8ac7 (diff) | |
download | gnulib-2f1bb5913edea1ae76d365b18d73c30f1e33a034.tar.gz |
chmod: New module.
* lib/sys_stat.in.h (chmod): Declare when GNULIB_CHMOD is 1.
* lib/chmod.c: New file, based on lib/lchmod.c.
* m4/chmod.m4: New file, based on m4/fchmodat.m4.
* m4/sys_stat_h.m4 (gl_SYS_STAT_H): Test whether chmod is declared.
(gl_SYS_STAT_H_REQUIRE_DEFAULTS): Initialize GNULIB_CHMOD.
(gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_CHMOD.
* modules/sys_stat (Makefile.am): Substitute GNULIB_CHMOD,
REPLACE_CHMOD.
* modules/chmod: New file, based on modules/lchmod.
* doc/posix-functions/chmod.texi: Mention the new module and the
problems on IRIX and Windows.
Diffstat (limited to 'doc/posix-functions')
-rw-r--r-- | doc/posix-functions/chmod.texi | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/posix-functions/chmod.texi b/doc/posix-functions/chmod.texi index 90175fd7b9..1288964b64 100644 --- a/doc/posix-functions/chmod.texi +++ b/doc/posix-functions/chmod.texi @@ -4,16 +4,21 @@ POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html} -Gnulib module: --- +Gnulib module: chmod Portability problems fixed by Gnulib: @itemize +@item +This function does not fail when the file name argument ends in a slash +and (without the slash) names a non-directory, on some platforms: +AIX 7.2, IRIX 6.5. +@item +This function fails with a wrong error code (EINVAL instead of ENOTDIR) +when the file name argument ends in a slash and (without the slash) names +a non-directory, on some platforms: +mingw, MSVC. @end itemize Portability problems not fixed by Gnulib: @itemize -@item -This function does not fail when the file name argument ends in a slash -and (without the slash) names a non-directory, on some platforms: -AIX 7.2. @end itemize |