aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/renameat.c
blob: e0e83541dbe2df465b3a0c52112787e2eddc931a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif