1 #include <stdio.h> 2 #include "syscall.h" 3 renameat(int oldfd,const char * old,int newfd,const char * new)4int renameat(int oldfd, const char *old, int newfd, const char *new) 5 { 6 #ifdef SYS_renameat 7 return syscall(SYS_renameat, oldfd, old, newfd, new); 8 #else 9 return syscall(SYS_renameat2, oldfd, old, newfd, new, 0); 10 #endif 11 } 12