From 3697ec5ca140f686643d204a54181a5ddbf9a799 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 15 Jul 2010 23:12:49 +0300 Subject: Moved to gawk 2.11. --- missing.d/dup2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 missing.d/dup2.c (limited to 'missing.d/dup2.c') diff --git a/missing.d/dup2.c b/missing.d/dup2.c new file mode 100644 index 00000000..01068348 --- /dev/null +++ b/missing.d/dup2.c @@ -0,0 +1,12 @@ +#ifndef F_DUPFD +#include +#endif + +int +dup2 (old, new) +int old, new; +{ + (void) close(new); + + return fcntl(old, F_DUPFD, new); +} -- cgit v1.2.3