summaryrefslogtreecommitdiff
path: root/src/unistd/dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/dup2.c')
-rw-r--r--src/unistd/dup2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unistd/dup2.c b/src/unistd/dup2.c
new file mode 100644
index 00000000..93325446
--- /dev/null
+++ b/src/unistd/dup2.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+#include "syscall.h"
+
+int dup2(int old, int new)
+{
+ return __syscall_dup2(old, new);
+}