summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/dup.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lang/modula-3-socks/files/dup.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/modula-3-socks/files/dup.c b/lang/modula-3-socks/files/dup.c
new file mode 100644
index 000000000000..188ff67fd6b3
--- /dev/null
+++ b/lang/modula-3-socks/files/dup.c
@@ -0,0 +1,13 @@
+#include "wrap.h"
+#include <unistd.h>
+
+int
+m3_dup(int oldd)
+{
+ int result;
+
+ ENTER_CRITICAL;
+ result = dup(oldd);
+ EXIT_CRITICAL;
+ return result;
+}