]> Savannah Git Hosting - gnulib.git/commitdiff
rename, renameat: Update doc regarding NetBSD.
authorBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2017 08:13:42 +0000 (10:13 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2017 08:13:42 +0000 (10:13 +0200)
* 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.

ChangeLog
doc/posix-functions/rename.texi
doc/posix-functions/renameat.texi

index e4fe8dd61aa65e2de4c0c2fd1638befd7225370b..223dfd87db3089700d3a115e5c3307d7293a66e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-08-16  Bruno Haible  <bruno@clisp.org>
+
+       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  <eggert@cs.ucla.edu>
 
        renameat2: port better to macOS
index b024b96c1b1b4fbda0b160b1e30eed7529e5972c..12c3be4d61e546821defb63cbf9f01fa6d566d9f 100644 (file)
@@ -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
index dd971323e75482aeca96940b2003edbee2db7e64..073c179abcfda89afab9c592d41b917cef9744f2 100644 (file)
@@ -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