• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: to read larger files using POSIX functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: to read larger files using POSIX functions


  • Subject: Re: to read larger files using POSIX functions
  • From: Steve Checkoway <email@hidden>
  • Date: Thu, 10 Jan 2008 12:23:50 -0800


On Jan 10, 2008, at 12:04 PM, Navneet Kumar wrote:

i'm using open() and pread() programatically.

As opposed to what?

On 11-Jan-08, at 1:32 AM, 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.



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()?

--
Steve Checkoway

    "Anyone who says that the solution is to educate the users
    hasn't ever met an actual user." -- Bruce Schneier




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: to read larger files using POSIX functions
      • From: Navneet Kumar <email@hidden>
References: 
 >to read larger files using POSIX functions (From: Navneet Kumar <email@hidden>)
 >Re: to read larger files using POSIX functions (From: Dave Zarzycki <email@hidden>)
 >Re: to read larger files using POSIX functions (From: Navneet Kumar <email@hidden>)
 >Re: to read larger files using POSIX functions (From: Navneet Kumar <email@hidden>)

  • Prev by Date: Re: to read larger files using POSIX functions
  • Next by Date: Re: to read larger files using POSIX functions
  • Previous by thread: Re: to read larger files using POSIX functions
  • Next by thread: Re: to read larger files using POSIX functions
  • Index(es):
    • Date
    • Thread