[SLUG] pread64()

From: Bill Glidden (bill@thegliddenfamily.com)
Date: Tue Oct 17 2006 - 11:37:13 EDT


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);

Thanks.

Bill Glidden

-----------------------------------------------------------------------
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:01 EDT