summaryrefslogtreecommitdiffstats
path: root/usr/klibc/readlink.c
blob: 0e67442608b77a4ea063005c8490e53b29d693b7 (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_readlink

int readlink(const char *path, char *buf, size_t bufsiz)
{
	return readlinkat(AT_FDCWD, path, buf, bufsiz);
}

#endif /* __NR_readlink */