X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fwrite.c;h=e2f7e1f219ad3dedcebe4f1e1362848af72ad5dd;hb=a6367a17d5f77848e8313b1e5e42698aec92908d;hp=426cfc5b82775494ae1a600d68bd11505c3ade61;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/unistd/write.c b/src/unistd/write.c index 426cfc5b..e2f7e1f2 100644 --- a/src/unistd/write.c +++ b/src/unistd/write.c @@ -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); }