X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fpread.c;h=5681b045d6b96cf76a25af80449af5103c392592;hb=e95538fa07d2b460b25ee6c2fef05f820888776d;hp=534215acf31b986fe36ec1445469021b60818428;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b;p=musl diff --git a/src/unistd/pread.c b/src/unistd/pread.c index 534215ac..5681b045 100644 --- a/src/unistd/pread.c +++ b/src/unistd/pread.c @@ -1,14 +1,9 @@ #include #include "syscall.h" -#include "libc.h" ssize_t pread(int fd, void *buf, size_t size, off_t ofs) { - ssize_t r; - CANCELPT_BEGIN; - r = syscall5(__NR_pread, fd, (long)buf, size, SYSCALL_LL(ofs)); - CANCELPT_END; - return r; + return syscall_cp(SYS_pread, fd, buf, size, __SYSCALL_LL_PRW(ofs)); } -LFS64(pread); +weak_alias(pread, pread64);