diff options
Diffstat (limited to 'lib/sys/dup2.h')
| -rw-r--r-- | lib/sys/dup2.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |