site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com hi, thanks for the suggestion Dave. I was supplying int to pread() instead of off_t. Problem solved. wishes, Navneet On 11-Jan-08, at 1:53 AM, Steve Checkoway wrote: On Jan 10, 2008, at 12:04 PM, Navneet Kumar wrote: As opposed to what? On 11-Jan-08, at 1:32 AM, Navneet Kumar wrote: -- Steve Checkoway "Anyone who says that the solution is to educate the users hasn't ever met an actual user." -- Bruce Schneier _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/navneet%40diskdoctors.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... i'm using open() and pread() programatically. 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. Are you using off_t as your file position? If you're using a signed four byte file position, I could see strange things happening once your numbers went negative. Are you checking the return value of pread()? This email sent to navneet@diskdoctors.com This email sent to site_archiver@lists.apple.com