• 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: pread function help needed....?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pread function help needed....?


  • Subject: Re: pread function help needed....?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Fri, 9 Dec 2011 11:02:31 +0000

On 9 Dec 2011, at 08:05, Waqar Ahmad wrote:

> byts = 18446744073709551615

This is (int64_t) -1.  It means that pread() has failed.  Look at errno to get the reason for the error.

If you're going to deal with UNIX at this level, you should probably spend some learning its idioms.  You can pick this up piecemeal by reading the man pages, but I recommend you grab a copy of "Advanced Programming in the UNIX Environment" by Stevens and Rago.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >pread function help needed....? (From: Waqar Ahmad <email@hidden>)

  • Prev by Date: pread function help needed....?
  • Next by Date: Re: pread function help needed....?
  • Previous by thread: pread function help needed....?
  • Next by thread: Re: pread function help needed....?
  • Index(es):
    • Date
    • Thread