hurd: Add renameat2 support for RENAME_NOREPLACE

System Internals / glibc - Samuel Thibault [ens-lyon.org] - 27 February 2019 17:42 EST

- include/stdio.h (__renameat2): New hidden prototype.
- stdio-common/renameat2.c (__renameat2): Add hidden definition.
- sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
- sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function, and add support for RENAME_NOREPLACE.
- sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.

1b21841775 hurd: Add renameat2 support for RENAME_NOREPLACE
ChangeLog | 8 ++++++
include/stdio.h | 2 ++
stdio-common/renameat2.c | 4 ++-
sysdeps/mach/hurd/renameat.c | 21 +-------------
sysdeps/mach/hurd/renameat2.c | 56 +++++++++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/renameat2.c | 4 ++-
6 files changed, 73 insertions(+), 22 deletions(-)

Upstream: sourceware.org


  • Share