summaryrefslogtreecommitdiffstats
path: root/usr/klibc/symlink.c
blob: 080394fce60d9a68843b3b74b1e40afd67e27385 (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_symlink

int symlink(const char *oldpath, const char *newpath)
{
	return symlinkat(oldpath, AT_FDCWD, newpath);
}

#endif /* __NR_symlink */