Re: [SLUG] pread64()

From: Daniel Jarboe (daniel.jarboe@gmail.com)
Date: Tue Oct 17 2006 - 12:51:21 EDT


On 10/17/06, Bill Glidden <bill@thegliddenfamily.com> 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 call open with O_LARGEFILE flag or use open64?

~ Daniel
-----------------------------------------------------------------------
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:57 EDT