diff options
Diffstat (limited to 'libc-top-half/musl/src/unistd/renameat.c')
-rw-r--r-- | libc-top-half/musl/src/unistd/renameat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/unistd/renameat.c b/libc-top-half/musl/src/unistd/renameat.c new file mode 100644 index 0000000..c3b40a2 --- /dev/null +++ b/libc-top-half/musl/src/unistd/renameat.c @@ -0,0 +1,11 @@ +#include <stdio.h> +#include "syscall.h" + +int renameat(int oldfd, const char *old, int newfd, const char *new) +{ +#ifdef SYS_renameat + return syscall(SYS_renameat, oldfd, old, newfd, new); +#else + return syscall(SYS_renameat2, oldfd, old, newfd, new, 0); +#endif +} |