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