renameat2 ¶Documentation:
man renameat2
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
RENAME_NOREPLACE flag is specified
and the source and destination are the same file, on some platforms:
Cygwin 3.4.6.
renameat2 (AT_FDCWD, "file", AT_FDCWD, "new/" ...) succeeds
instead of failing and setting errno to ENOTDIR, on some
platforms:
GNU/Hurd with glibc 2.41.
renameat2 (ATFDCWD, "dir", AT_FDCWD, "new/" ...) fails with
errno set to ENOENT, on some platforms:
GNU/Hurd with glibc 2.42.
renameat2 (ATFDCWD, "dir/", AT_FDCWD, "new" ...) fails with
errno set to ENOTDIR, on some platforms:
GNU/Hurd with glibc 2.42.
The renameatu module addresses some of these portability issues.