X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fwrite.c;h=8fd5bc5c261ced94e02e7fcb8bb5d26698055fc5;hb=53bef5c55e05c7423dd497006e86fae152a983b1;hp=a8284b3216684c9ed8033b69ae0d73494729f535;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/unistd/write.c b/src/unistd/write.c index a8284b32..8fd5bc5c 100644 --- a/src/unistd/write.c +++ b/src/unistd/write.c @@ -1,12 +1,7 @@ #include #include "syscall.h" -#include "libc.h" 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); }