summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/symlinkat.c
blob: 91815810c122e9f0331364b6e28ace42d29e732b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * symlinkat() 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_symlinkat
_syscall3(int, symlinkat, const char *, from, int, tofd, const char *, to)
libc_hidden_def(symlinkat)
#else
/* should add emulation with symlink() and /proc/self/fd/ ... */
#endif