overhaul pthread cancellation
[musl] / src / unistd / write.c
index a8284b3..e2f7e1f 100644 (file)
@@ -4,9 +4,5 @@
 
 ssize_t write(int fd, const void *buf, size_t count)
 {
-       int r;
-       CANCELPT_BEGIN;
-       r = syscall(SYS_write, fd, buf, count);
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_write, fd, buf, count);
 }