summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/dup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/unistd/dup.c')
-rw-r--r--lib/libc/unistd/dup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/unistd/dup.c b/lib/libc/unistd/dup.c
new file mode 100644
index 00000000..764c16f6
--- /dev/null
+++ b/lib/libc/unistd/dup.c
@@ -0,0 +1,6 @@
+#include <syscall.h>
+
+int dup(int fildes)
+{
+ return syscall(dup, fildes);
+}