projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
select: fix 64-bit timeout truncation on pre-time64 kernels
[musl]
/
src
/
stdio
/
rename.c
diff --git
a/src/stdio/rename.c
b/src/stdio/rename.c
index
04c90c0
..
f540adb
100644
(file)
--- a/
src/stdio/rename.c
+++ b/
src/stdio/rename.c
@@
-4,9
+4,11
@@
int rename(const char *old, const char *new)
{
int rename(const char *old, const char *new)
{
-#if
def SYS_rename
+#if
defined(SYS_rename)
return syscall(SYS_rename, old, new);
return syscall(SYS_rename, old, new);
-#el
se
+#el
if defined(SYS_renameat)
return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
+#else
+ return syscall(SYS_renameat2, AT_FDCWD, old, AT_FDCWD, new, 0);
#endif
}
#endif
}