in clock_getres, check for null pointer before storing result
[musl.git] / src / unistd / pread.c
blob5681b045d6b96cf76a25af80449af5103c392592
1 #include <unistd.h>
2 #include "syscall.h"
4 ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
6 return syscall_cp(SYS_pread, fd, buf, size, __SYSCALL_LL_PRW(ofs));
9 weak_alias(pread, pread64);