summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-10 17:15:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-10 17:15:43 +0000
commit0678a64e9390fdd4603e5ddec7ea44ac402b0957 (patch)
tree6d913ff0175e41f31f7559b7e042415f7dd50fb2 /lib
parent89751ff529bd0db419402d24f36ecb108f74fd57 (diff)
Clarify rename(2) behavior in the presence of a system crash.
From FreeBSD by way of Claus Assmann.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/rename.26
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index 6ea22b43b7a..2c8c64c4947 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rename.2,v 1.8 2000/10/18 05:12:11 aaron Exp $
+.\" $OpenBSD: rename.2,v 1.9 2002/03/10 17:15:42 millert Exp $
.\" $NetBSD: rename.2,v 1.7 1995/02/27 12:36:15 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -61,7 +61,9 @@ must be of the same type (that is, both directories or both
non-directories), and must reside on the same file system.
.Pp
.Fn rename
-guarantees that an instance of
+guarantees that if
+.Fa to
+already exists, an instance of
.Fa to
will always exist, even if the system should crash in
the middle of the operation.