From: Bruno Haible Date: Wed, 16 Aug 2017 08:13:42 +0000 (+0200) Subject: rename, renameat: Update doc regarding NetBSD. X-Git-Tag: v1.0~5998 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=60151d8e958c836cd109d52fead4beebd90c5e3c;p=gnulib.git rename, renameat: Update doc regarding NetBSD. * doc/posix-functions/rename.texi: Clarify that when using -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone. * doc/posix-functions/renameat.texi: Be more precise about NetBSD version. --- diff --git a/ChangeLog b/ChangeLog index e4fe8dd61a..223dfd87db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-08-16 Bruno Haible + + rename, renameat: Update doc regarding NetBSD. + * doc/posix-functions/rename.texi: Clarify that when using + -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone. + * doc/posix-functions/renameat.texi: Be more precise about NetBSD + version. + 2017-08-15 Paul Eggert renameat2: port better to macOS diff --git a/doc/posix-functions/rename.texi b/doc/posix-functions/rename.texi index b024b96c1b..12c3be4d61 100644 --- a/doc/posix-functions/rename.texi +++ b/doc/posix-functions/rename.texi @@ -28,7 +28,7 @@ Solaris 9. @item This function incorrectly reduces the link count when comparing two spellings of a hard link on some platforms: -NetBSD 1.6, Cygwin 1.5.x. +NetBSD 1.6, NetBSD 7.0 without @code{-D_XOPEN_SOURCE=500}, Cygwin 1.5.x. @item This function will not always replace an existing destination on some platforms: @@ -60,7 +60,7 @@ is counter-intuitive, so on some systems, @code{rename} fails with @code{ENOTDIR} if either argument is a symlink with a trailing slash: glibc, OpenBSD, Cygwin 1.7. @item -POSIX requires that @code{renameat} do nothing and return 0 if the +POSIX requires that @code{rename} do nothing and return 0 if the source and destination are hard links to the same file. This behavior is counterintuitive, and on some systems @code{renameat} is a no-op in this way only if the source and destination identify the same @@ -68,7 +68,7 @@ directory entry. On these systems, for example, although renaming @file{./f} to @file{f} is a no-op, renaming @file{f} to @file{g} deletes @file{f} when @file{f} and @file{g} are hard links to the same file: -NetBSD. +NetBSD 7.0. @item After renaming a non-empty directory over an existing empty directory, the old directory name is still visible through the @code{stat} function diff --git a/doc/posix-functions/renameat.texi b/doc/posix-functions/renameat.texi index dd971323e7..073c179abc 100644 --- a/doc/posix-functions/renameat.texi +++ b/doc/posix-functions/renameat.texi @@ -47,7 +47,7 @@ directory entry. On these systems, for example, although renaming @file{./f} to @file{f} is a no-op, renaming @file{f} to @file{g} deletes @file{f} when @file{f} and @file{g} are hard links to the same file: -NetBSD. +NetBSD 7.0. @item After renaming a non-empty directory over an existing empty directory, the old directory name is still visible through the @code{stat} function