add and consolidate nasty stdio_ext junk
[oweals/musl.git] / src / unistd / write.c
index 426cfc5b82775494ae1a600d68bd11505c3ade61..e2f7e1f219ad3dedcebe4f1e1362848af72ad5dd 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);
 }