about summary refs log tree commit diff
path: root/src/unistd/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/close.c')
-rw-r--r--src/unistd/close.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/unistd/close.c b/src/unistd/close.c
new file mode 100644
index 00000000..97302f67
--- /dev/null
+++ b/src/unistd/close.c
@@ -0,0 +1,11 @@
+#include <unistd.h>
+#include "syscall.h"
+#include "libc.h"
+
+int close(int fd)
+{
+	int ret = __syscall_close(fd);
+	CANCELPT_BEGIN;
+	CANCELPT_END;
+	return ret;
+}