[git commit future] rename.c: simplify code, include only necessary headers

Peter S. Mazinger ps.m at gmx.net
Thu Apr 14 07:59:26 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=1a2392564cd59934f7b72ff36202138ba1cbd59a
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/sysdeps/linux/common/rename.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/libc/sysdeps/linux/common/rename.c b/libc/sysdeps/linux/common/rename.c
index 9d8397a..6183cf4 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)
-- 
1.7.3.4



More information about the uClibc-cvs mailing list