Debian Codegraph @

libc-top-half/musl/src/unistd/renameat.c

raw
1 #include <stdio.h>
2 #include "syscall.h"
3
4 int 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 }