blob: 9abe9ec71d77af8819445f3e8e36c250587c7e02 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/*
2 * linkat() for uClibc
3 *
4 * Copyright (C) 2009 Analog Devices Inc.
5 *
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 */
8
9#include <sys/syscall.h>
10#include <unistd.h>
11
12#ifdef __NR_linkat
13_syscall5(int, linkat, int, fromfd, const char *, from, int, tofd, const char *, to, int, flags)
14#else
15/* should add emulation with link() and /proc/self/fd/ ... */
16#endif