summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/symlinkat.c
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2012-10-10 15:57:41 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-20 13:45:11 +0100
commit81b480369b905229c8dad41755c82aea0faca1e7 (patch)
tree7561fe91fc28ab23bb46bcff98b987566fc9d9e3 /libc/sysdeps/linux/common/symlinkat.c
parente07db64b78c3905baf3aaeb582899f78ab306781 (diff)
symlink: Use symlinkat if arch does not have the symlink syscall
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/symlinkat.c')
-rw-r--r--libc/sysdeps/linux/common/symlinkat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/symlinkat.c b/libc/sysdeps/linux/common/symlinkat.c
index 6381b3319..91815810c 100644
--- a/libc/sysdeps/linux/common/symlinkat.c
+++ b/libc/sysdeps/linux/common/symlinkat.c
@@ -11,6 +11,7 @@
#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