diff options
Diffstat (limited to 'libc')
-rw-r--r-- | 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 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) |