Consolidate rename Linux implementation
commit7fe1e1d60a0f7b5eaf9f423c1fea7d0660690088
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 11 Nov 2016 11:02:46 +0000 (11 09:02 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 14 Dec 2016 17:31:24 +0000 (14 15:31 -0200)
treede34ea63f0aee77abb4a5e097845b69d6e6f799c
parent2bf6e649d6db0c678b49b5d634022f60e6335b42
Consolidate rename Linux implementation

This patch consolidates the Linux rename implementation on
sysdeps/unix/sysv/linux/rename.c.  Current code try to use
__NR_rename if is defined and apply the same strategy for
__NR_renameat and __NR_renameat2.

Check on x86_64 and aarch64.

* sysdeps/unix/sysv/linux/rename.c: New file.
* sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
ChangeLog
sysdeps/unix/sysv/linux/rename.c [moved from sysdeps/unix/sysv/linux/generic/rename.c with 69% similarity]