diff --git a/man2/rename.2 b/man2/rename.2 index 641a7b133..fa463cef1 100644 --- a/man2/rename.2 +++ b/man2/rename.2 @@ -184,14 +184,6 @@ The .I flags argument is a bit mask consisting of zero or more of the following flags: .TP -.B RENAME_NOREPLACE -Don't overwrite -.IR newpath -of the rename. -Return an error if -.IR newpath -already exists. -.TP .B RENAME_EXCHANGE Atomically exchange .IR oldpath @@ -200,6 +192,14 @@ and Both pathnames must exist but may be of different types (e.g., one could be a non-empty directory and the other a symbolic link). +.TP +.B RENAME_NOREPLACE +Don't overwrite +.IR newpath +of the rename. +Return an error if +.IR newpath +already exists. .SH RETURN VALUE On success, zero is returned. On error, \-1 is returned, and