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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/unistd/read.c b/src/unistd/read.c
index 194b389e..eb882fcc 100644
--- a/src/unistd/read.c
+++ b/src/unistd/read.c
@@ -4,9 +4,5 @@
 
 ssize_t read(int fd, void *buf, size_t count)
 {
-	ssize_t r;
-	CANCELPT_BEGIN;
-	r = syscall(SYS_read, fd, buf, count);
-	CANCELPT_END;
-	return r;
+	return syscall_cp(SYS_read, fd, buf, count);
 }