]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: Document renameat
authorArjun Shankar <arjun@redhat.com>
Wed, 4 Jun 2025 11:08:56 +0000 (13:08 +0200)
committerArjun Shankar <arjun@redhat.com>
Wed, 4 Jun 2025 18:17:04 +0000 (20:17 +0200)
Reviewed-by: Florian Weimer <fweimer@redhat.com>
manual/filesys.texi

index d8f362f3beda9b28e65823b1025c6908541697b5..8a173c562fa71f839c9dfe9655b8d3133c75a4c6 100644 (file)
@@ -1910,6 +1910,17 @@ file systems.
 @end table
 @end deftypefun
 
+@deftypefun int renameat (int @var{oldfiledes}, const char *@var{oldname}, int @var{newfiledes}, const char *@var{newname})
+@standards{POSIX.1-2008, stdio.h}
+@comment Unaudited and therefore marked AC-Unsafe and AS-Unsafe by default
+@safety{@mtsafe{}@asunsafe{@asucorrupt{}}@acunsafe{@acucorrupt{}}}
+This function is a descriptor-relative version of the @code{rename}
+function above.  @xref{Descriptor-Relative Access}.
+
+Compared to @code{rename}, some additional error conditions can occur.
+@xref{Descriptor-Relative Access}.
+@end deftypefun
+
 @node Creating Directories
 @section Creating Directories
 @cindex creating a directory
@@ -3893,7 +3904,6 @@ The @code{mkdtemp} function comes from OpenBSD.
 @c openat
 @c open_by_handle_at
 @c readlinkat
-@c renameat
 @c renameat2
 @c scandirat
 @c symlinkat