about summary refs log tree commit diff
path: root/src/unistd/renameat.c
blob: c3b40a258b2822214ce05a0cf1788d9af6298067 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
}