Rewrite to use syscall directly instead of pread64.