repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cuserid: support invocation with a null pointer argument
[musl.git]
/
src
/
unistd
/
renameat.c
blob
c3b40a258b2822214ce05a0cf1788d9af6298067
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
}