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