summaryrefslogtreecommitdiff
path: root/src/stdio/rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/rename.c')
-rw-r--r--src/stdio/rename.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stdio/rename.c b/src/stdio/rename.c
new file mode 100644
index 00000000..4eced08a
--- /dev/null
+++ b/src/stdio/rename.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+#include "syscall.h"
+
+int rename(const char *old, const char *new)
+{
+ return syscall2(__NR_rename, (long)old, (long)new);
+}