Re: to read larger files using POSIX functions
Re: to read larger files using POSIX functions
- Subject: Re: to read larger files using POSIX functions
- From: Dave Zarzycki <email@hidden>
- Date: Thu, 10 Jan 2008 12:15:35 -0800
If you can distill down a simple test case, I'm sure somebody on the
list can point on the bug. The two most plausible explanations are as
follows: One, your code is failing to include all of the headers for
the APIs it is using. Second, I'd double check that your code
consistently uses the 'off_t' type to track position/offset
information about a file. Bouncing between an 'off_t' and an 'int' for
example will lead to bugs.
davez
On Jan 10, 2008, at 12:02 PM, Navneet Kumar wrote:
but when i read my file beyond 2 GB it shows different data every
time, suggesting that it failed. because the data inside the file
remains the same.
Regards
Navneet
On 11-Jan-08, at 1:22 AM, Dave Zarzycki wrote:
There is nothing special required to read/write large files on Mac
OS X.
davez
On Jan 10, 2008, at 11:38 AM, Navneet Kumar wrote:
Hi,
I'm using open() and pread() to read a file.
But to open large files when I use open() with O_LARGEFILE, i get
the error that O_LARGEFILE is undefined.
I have included <fcntl.h>.
Also is there any thing else i need to do to correctly use pread()
for reading large files.
Wishes,
Navneet
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden