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