summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 01:52:51 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:38 +0200
commitaf58093c1417a523b35f652ca8df97df1dd70508 (patch)
tree9ed63b3c412ac375a6159d92334cda6a0cccfb89 /libc
parent7c966f52428c61761fb1eda7cbee90cf400666bc (diff)
rename.c: simplify code, include only necessary headers
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/rename.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/common/rename.c b/libc/sysdeps/linux/common/rename.c
index 9d8397a8f..6183cf494 100644
--- a/libc/sysdeps/linux/common/rename.c
+++ b/libc/sysdeps/linux/common/rename.c
@@ -8,17 +8,6 @@
*/
#include <sys/syscall.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/param.h>
#include <stdio.h>
-#define __NR___syscall_rename __NR_rename
-static __inline__ _syscall2(int, __syscall_rename, const char *, oldpath,
- const char *, newpath)
-
-int rename(const char * oldpath, const char * newpath)
-{
- return __syscall_rename(oldpath, newpath);
-}
-
+_syscall2(int, rename, const char *, oldpath, const char *, newpath)