about summary refs log tree commit diff
path: root/src/unistd/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/read.c')
-rw-r--r--src/unistd/read.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unistd/read.c b/src/unistd/read.c
new file mode 100644
index 00000000..87ff1f10
--- /dev/null
+++ b/src/unistd/read.c
@@ -0,0 +1,12 @@
+#include <unistd.h>
+#include "syscall.h"
+#include "libc.h"
+
+ssize_t read(int fd, void *buf, size_t count)
+{
+	ssize_t r;
+	CANCELPT_BEGIN;
+	r = __syscall_read(fd, buf, count);
+	CANCELPT_END;
+	return r;
+}