renameatu: rename from renameat2
commit2522322e5304e7d86c63e607e2bc83c8d8b0a889
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Jul 2018 16:22:09 +0000 (5 09:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Jul 2018 16:25:34 +0000 (5 09:25 -0700)
tree7a22f5c2a21d116f7ae52b43e1a76685944592b6
parent60e8b9303d8ce312bb2322d4801ed08678f93d1e
renameatu: rename from renameat2

It's looking like Glibc will add a renameat2 function
that is incompatible with Gnulib renameat2; see:
https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
To help avoid future confusion, rename renameat2 to something else.
Use the name 'renameatu', as the Gnulib function is close to the
Glibc function.  Perhaps someday there will also be a renameat2
Gnulib module, which mimicks the future glibc renameat2, but that
can wait as nobody seems to need such a module now.
* NEWS: Mention this.
* lib/renameatu.c: Rename from lib/renameat2.c.
* lib/renameatu.h: Rename from lib/renameat2.h.
* modules/renameat2: Rename from modules/renameatu.
* modules/renameat2-tests: Rename from modules/renameat2-tests.
All uses of "renameat2" in identifiers or file name
changed to "renameatu", except for two instances in
lib/renameatu.c that deal with the Linux kernel's
renameat2 syscall.
13 files changed:
ChangeLog
MODULES.html.sh
NEWS
lib/backupfile.c
lib/renameat.c
lib/renameatu.c [moved from lib/renameat2.c with 94% similarity]
lib/renameatu.h [moved from lib/renameat2.h with 84% similarity]
modules/backup-rename
modules/backupfile
modules/renameat
modules/renameatu [moved from modules/renameat2 with 84% similarity]
modules/renameatu-tests [moved from modules/renameat2-tests with 57% similarity]
tests/test-renameatu.c [moved from tests/test-renameat2.c with 80% similarity]