summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/dup3.c
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2012-10-10 16:42:37 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-20 13:45:10 +0100
commit90accddebef0cf967e67c9d2412082a361d9f2bd (patch)
tree74c100d8d2fa61e759cef5a384e21df7cd1ccb9a /libc/sysdeps/linux/common/dup3.c
parentad68946e285307bf81fe0433ef952fb5386777ec (diff)
dup2: Use dup3 if arch does not have the dup2 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/dup3.c')
-rw-r--r--libc/sysdeps/linux/common/dup3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/dup3.c b/libc/sysdeps/linux/common/dup3.c
index 0472dd3be..5e8acdc8b 100644
--- a/libc/sysdeps/linux/common/dup3.c
+++ b/libc/sysdeps/linux/common/dup3.c
@@ -12,4 +12,5 @@
#if defined(__NR_dup3)
_syscall3(int, dup3, int, oldfd, int, newfd, int, flags)
+libc_hidden_def(dup3)
#endif