X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Funistd%2Fpread.c;h=3d2799fdd49dfec3a2a4d2d5896b8ab06fef3f27;hp=0a0450130e892329c7d8f7c1677de3f4f094aee8;hb=743546a9339d3da4304fd63f74872e90ac792f63;hpb=c2cd25bff89c3581780e7eb267262cb8c4da0d38 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);