From 48343ec717718cd3978f6cf6152fb097f8ab4c94 Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Thu, 29 Nov 2001 03:17:12 +0000 Subject: rename() can't guarantee "to" always exists if it didn't exist in the first place -- for example, rename("existing", "newfile"); on a read-only file system. Reviewed by: green MFC after: 3 days --- lib/libc/sys/rename.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2 index 2ef23f7bf9b3..b887d08552fe 100644 --- a/lib/libc/sys/rename.2 +++ b/lib/libc/sys/rename.2 @@ -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. -- cgit v1.2.3