summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/rename.2
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-12-13 23:35:01 +0000
committersteve <steve@FreeBSD.org>1998-12-13 23:35:01 +0000
commit032c3c226a30a7363fe41bffde964ae20ba2a2f4 (patch)
tree8f21db9a683cda90f591f4e949764bf341c05bc8 /lib/libc/sys/rename.2
parent1c27a8c0e7c50c4ce710073289ce43202b07bd20 (diff)
downloadFreeBSD-src-032c3c226a30a7363fe41bffde964ae20ba2a2f4.zip
FreeBSD-src-032c3c226a30a7363fe41bffde964ae20ba2a2f4.tar.gz
Commit out caveat about hardlinks to directories since they are
no longer possible. PR: 8337
Diffstat (limited to 'lib/libc/sys/rename.2')
-rw-r--r--lib/libc/sys/rename.254
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index d9e1b83..9c51026 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)rename.2 8.1 (Berkeley) 6/4/93
-.\" $Id$
+.\" $Id: rename.2,v 1.6 1997/02/22 15:04:16 peter Exp $
.\"
.Dd June 4, 1993
.Dt RENAME 2
@@ -69,32 +69,32 @@ If the final component of
is a symbolic link,
the symbolic link is renamed,
not the file or directory to which it points.
-.Sh CAVEAT
-The system can deadlock if a loop in the file system graph is present.
-This loop takes the form of an entry in directory
-.Ql Pa a ,
-say
-.Ql Pa a/foo ,
-being a hard link to directory
-.Ql Pa b ,
-and an entry in
-directory
-.Ql Pa b ,
-say
-.Ql Pa b/bar ,
-being a hard link
-to directory
-.Ql Pa a .
-When such a loop exists and two separate processes attempt to
-perform
-.Ql rename a/foo b/bar
-and
-.Ql rename b/bar a/foo ,
-respectively,
-the system may deadlock attempting to lock
-both directories for modification.
-Hard links to directories should be
-replaced by symbolic links by the system administrator.
+.\".Sh CAVEAT
+.\"The system can deadlock if a loop in the file system graph is present.
+.\"This loop takes the form of an entry in directory
+.\".Ql Pa a ,
+.\"say
+.\".Ql Pa a/foo ,
+.\"being a hard link to directory
+.\".Ql Pa b ,
+.\"and an entry in
+.\"directory
+.\".Ql Pa b ,
+.\"say
+.\".Ql Pa b/bar ,
+.\"being a hard link
+.\"to directory
+.\".Ql Pa a .
+.\"When such a loop exists and two separate processes attempt to
+.\"perform
+.\".Ql rename a/foo b/bar
+.\"and
+.\".Ql rename b/bar a/foo ,
+.\"respectively,
+.\"the system may deadlock attempting to lock
+.\"both directories for modification.
+.\"Hard links to directories should be
+.\"replaced by symbolic links by the system administrator.
.Sh RETURN VALUES
A 0 value is returned if the operation succeeds, otherwise
.Fn rename
OpenPOWER on IntegriCloud