Consolidate renameat Linux implementation
commit8b9283dabd5ab3524c9a76fabbb379f950a86e6d
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 13 Dec 2016 18:50:06 +0000 (13 16:50 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 14 Dec 2016 17:31:24 +0000 (14 15:31 -0200)
tree281e8482bdab7a66365dfe5208f076ec2e98904b
parent7fe1e1d60a0f7b5eaf9f423c1fea7d0660690088
Consolidate renameat Linux implementation

This patch consolidates the Linux renameat implementation on
sysdeps/unix/sysv/linux/renameat.c.  The renameat syscall was
deprecated at b0da6d44 for newer architectures, so using the
auto-generation list may generate wrappers that returns ENOSYS.

Current code try to use __NR_renameat and if it is not define
it uses __NR_renameat2.

Checked on x86_64 and aarch64.

* sysdeps/unix/sysv/linux/renameat.c: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
ChangeLog
sysdeps/unix/sysv/linux/renameat.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/syscalls.list