blob: a075d7038dd555ec885b1274e3cb5d4854f758f5 [file] [log] [blame]
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +02001#include <unistd.h>
2#include <fcntl.h>
3#include <sys/syscall.h>
4
5int
6main(void)
7{
8#ifdef __NR_readlinkat
9 char buf[31];
10
11 if (syscall(__NR_readlinkat, AT_FDCWD, "readlinkat.link", buf, sizeof(buf)) != 12)
12 return 77;
13
14 return 0;
15#else
16 return 77;
17#endif
18}