summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/readlinkat.c
blob: d0a98e115731f6548ab0d6f65c6f2049fca4a1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * 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)
#else
/* should add emulation with readlink() and /proc/self/fd/ ... */
#endif