aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-06-19 08:40:25 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-07-11 22:04:43 +0000
commit3055c47f6024b087a90021edb05992304a119827 (patch)
treedda7ca8ece8fec424880a711907191579b7417e7
parent8e6e77ec25bc5809500d29bf318a843b40205657 (diff)
rename.2: Document AT_RENAME_EXCHANGE
Reviewed by: mckusick Discussed with: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D57658
-rw-r--r--lib/libsys/rename.26
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libsys/rename.2 b/lib/libsys/rename.2
index dbad50edb9a9..2a4729dfc8d0 100644
--- a/lib/libsys/rename.2
+++ b/lib/libsys/rename.2
@@ -143,6 +143,12 @@ and
.Fa to
exists, the request fails with the error
.Er EEXIST .
+.It Dv AT_RENAME_EXCHANGE
+Atomically exchange the files pointed to by the
+.Fa from
+and
+.Fa to
+names.
.El
.Sh RETURN VALUES
.Rv -std rename