Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
stdio
/
rename.c
blob: 04c90c01343a4b84beb5cf56b348e5d5041905ed [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<fcntl.h>
#include
"syscall.h"
int
rename
(
const
char
*
old
,
const
char
*
new
)
{
#ifdef
SYS_rename
return
syscall
(
SYS_rename
,
old
,
new
);
#else
return
syscall
(
SYS_renameat
,
AT_FDCWD
,
old
,
AT_FDCWD
,
new
);
#endif
}