Gnulib module: renameat
Portability problems fixed by Gnulib:
renameat(fd,"file",fd,"new/"): Solaris 11 2010-11.
renameat(fd,"link/",fd,"new")corrupts link: Solaris 9.
<stdio.h>on some platforms: Solaris 11 2010-11.
Portability problems not fixed by Gnulib:
renameat(fd,"symlink-to-dir/",fd,"dir2")rename dir and leave symlink-to-dir dangling; likewise, it requires that
renameat(fd,"dir",fd,"dangling/")rename dir so that dangling is no longer a dangling symlink. This behavior is counter-intuitive, so on some systems,
ENOTDIRif either argument is a symlink with a trailing slash: glibc, OpenBSD, Cygwin 1.7.
statfunction for 30 seconds after the rename, on NFS file systems, on some platforms: Linux 2.6.18.