From 1b2184177553ce4ef8458034927ef50854be2af6 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 27 Feb 2019 07:53:13 -0800 Subject: hurd: Add renameat2 support for RENAME_NOREPLACE * 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. --- sysdeps/unix/sysv/linux/renameat2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/renameat2.c') diff --git a/sysdeps/unix/sysv/linux/renameat2.c b/sysdeps/unix/sysv/linux/renameat2.c index 566868cc93..a9cc2ea6b8 100644 --- a/sysdeps/unix/sysv/linux/renameat2.c +++ b/sysdeps/unix/sysv/linux/renameat2.c @@ -21,7 +21,7 @@ #include int -renameat2 (int oldfd, const char *old, int newfd, const char *new, +__renameat2 (int oldfd, const char *old, int newfd, const char *new, unsigned int flags) { #if !defined (__NR_renameat) || defined (__ASSUME_RENAMEAT2) @@ -42,3 +42,5 @@ renameat2 (int oldfd, const char *old, int newfd, const char *new, return -1; #endif } +libc_hidden_def (__renameat2) +weak_alias (__renameat2, renameat2) -- cgit v1.2.1