Bill Glidden wrote:
> Why would pread64() fail with EINVAL (errno 22) when I pass it an offset of
> 2332893184? Do I have to enable something in the kernel to allow this to
> work? I can create files > 2GB, so I figured pread64 would work.
>
> off64_t rOffset = 2332893184;
> NumBytes = pread64(fd, buf, bufSize, rOffset);
>
Did you open the file with open64(), or with open() using the
O_LARGEFILE flag?
- Ian C. Blenke <ian@blenke.com> http://ian.blenke.com
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:04:46 EDT