A note for when gnulib will add a 'renameat2' module: - The glibc function is being introduced in 2.28. - Cygwin has this function as well, but it "only supports the RENAME_NOREPLACE flag". [1] - Android might get the function in the future.
Bruno [1] https://cygwin.com/cygwin-api/std-notes.html