summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/readlinkat.c
blob: 995b9e2c165b94015e89f1556b8e5dbbd701fcfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * readlinkat() for uClibc
 *
 * Copyright (C) 2009 Analog Devices Inc.
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <unistd.h>

#ifdef __NR_readlinkat
_syscall4(ssize_t, readlinkat, int, fd, const char *, path, char *, buf, size_t, len)
libc_hidden_def(readlinkat)
#else
/* should add emulation with readlink() and /proc/self/fd/ ... */
#endif