summaryrefslogtreecommitdiffstats
path: root/usr/klibc/renameat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/renameat.c')
-rw-r--r--usr/klibc/renameat.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/klibc/renameat.c b/usr/klibc/renameat.c
new file mode 100644
index 0000000..10c8882
--- /dev/null
+++ b/usr/klibc/renameat.c
@@ -0,0 +1,12 @@
+#include <fcntl.h>
+#include <stdio.h>
+
+#ifndef __NR_renameat
+
+int renameat(int olddirfd, const char *oldpath,
+ int newdirfd, const char *newpath)
+{
+ return renameat2(olddirfd, oldpath, newdirfd, newpath, 0);
+}
+
+#endif /* __NR_renameat */