on x86_64 use long instead of long long for 64bit posix types
[musl] / src / unistd / write.c
index 426cfc5..e2f7e1f 100644 (file)
@@ -4,9 +4,5 @@
 
 ssize_t write(int fd, const void *buf, size_t count)
 {
-       int r;
-       CANCELPT_BEGIN;
-       r = __syscall_write(fd, buf, count);
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_write, fd, buf, count);
 }