From 9595fb8cd595028bece5174e7eddf660ae3dcc10 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 31 May 2018 01:04:17 +0200 Subject: risc-v: initial 64 bit port, static only (no TLS/NPTL) Only a simple hello world is tested in qemu system emulation. --- libc/sysdeps/linux/common/rename.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/rename.c b/libc/sysdeps/linux/common/rename.c index 260347f40..30a4ed75f 100644 --- a/libc/sysdeps/linux/common/rename.c +++ b/libc/sysdeps/linux/common/rename.c @@ -16,6 +16,12 @@ int rename(const char *oldpath, const char *newpath) { return renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath); } +#elif defined __NR_renameat2 +# include +int rename(const char *oldpath, const char *newpath) +{ + _syscall2(int, renameat2, const char *, oldpath, const char *, newpath) +} #else _syscall2(int, rename, const char *, oldpath, const char *, newpath) #endif -- cgit v1.2.3