X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fpread.c;h=3d2799fdd49dfec3a2a4d2d5896b8ab06fef3f27;hb=f59cedb549c642277673d28357e038801fecca64;hp=0a0450130e892329c7d8f7c1677de3f4f094aee8;hpb=c2cd25bff89c3581780e7eb267262cb8c4da0d38;p=musl diff --git a/src/unistd/pread.c b/src/unistd/pread.c index 0a045013..3d2799fd 100644 --- a/src/unistd/pread.c +++ b/src/unistd/pread.c @@ -4,11 +4,7 @@ ssize_t pread(int fd, void *buf, size_t size, off_t ofs) { - ssize_t r; - CANCELPT_BEGIN; - r = syscall(SYS_pread, fd, buf, size, __SYSCALL_LL(ofs)); - CANCELPT_END; - return r; + return syscall_cp(SYS_pread, fd, buf, size, __SYSCALL_LL_O(ofs)); } LFS64(pread);