From 7536d000ac9a5188378f2749ecfd7f0ccb437573 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 14 Dec 2022 22:12:20 +0100 Subject: first try to pipe stuff --- lib/sys/dup2.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/sys/dup2.h (limited to 'lib/sys/dup2.h') diff --git a/lib/sys/dup2.h b/lib/sys/dup2.h new file mode 100644 index 0000000..7726efb --- /dev/null +++ b/lib/sys/dup2.h @@ -0,0 +1,11 @@ +#ifndef DUP2_H +#define DUP2_H + +#include "syscalls.h" + +int dup2(unsigned int oldfd, unsigned int newfd) +{ + return syscall(DUP2, oldfd, newfd); +} + +#endif -- cgit v1.2.3-70-g09d2