Re: [SLUG] pread64()

From: Ian C. Blenke (icblenke@nks.net)
Date: Tue Oct 17 2006 - 12:45:26 EDT


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 list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:04:46 EDT