File: renameat2.texi

package info (click to toggle)
gnulib 20250303-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 188,756 kB
  • sloc: ansic: 378,600; sh: 30,630; python: 8,358; cpp: 2,811; yacc: 1,846; perl: 920; makefile: 577; lisp: 328; sed: 11; java: 5
file content (31 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@node renameat2
@subsection @code{renameat2}
@findex renameat2

Documentation:@* @uref{https://www.kernel.org/doc/man-pages/online/pages/man2/renameat2.2.html,,man renameat2}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on many platforms:
glibc 2.27, macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.1.8, AIX 7.1, HP-UX 11.31, Solaris 11.4, Cygwin 2.8.x, mingw, MSVC 14, Android API level 29.
@item
This function succeeds when the @code{RENAME_NOREPLACE} flag is specified
and the source and destination are the same file, on some platforms:
Cygwin 3.4.6.
@item
@code{renameat2 (AT_FDCWD, "file", AT_FDCWD, "new/" ...)} succeeds
instead of failing and setting @code{errno} to @code{ENOTDIR}, on some
platforms:
@c https://sourceware.org/bugzilla/show_bug.cgi?id=32570
GNU/Hurd.
@end itemize

@mindex renameatu
The @code{renameatu} module addresses some of these portability issues.