summaryrefslogtreecommitdiffstats
path: root/usr/klibc/link.c
blob: 1d4b70e26ea19f16d468d8583cf83a608cfeffa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>

#ifndef __NR_link

int link(const char *oldpath, const char *newpath)
{
	return linkat(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0);
}

#endif  /* __NR_link */