• 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
[darwin-dev] n00b uiomove64 question, Was: Where is uwritec ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[darwin-dev] n00b uiomove64 question, Was: Where is uwritec ?


  • Subject: [darwin-dev] n00b uiomove64 question, Was: Where is uwritec ?
  • From: Alexander von Below <email@hidden>
  • Date: Mon, 1 Oct 2007 01:03:47 +0200

Hello List,

I have another, hopefully simple question:

How can I signal that there is no more data to transfer? All I want at this point is to transfer a certain number of characters per read. My implementation of read looks somewhat like this:

int len;
char buf[1024];
len = snprintf(buf, 1024, "Hello World\n");

error = uiomove64((unsigned long long)buf, len, uio);

When I do cat /dev/mydevice, I get an ever-repeating "Hello World", until I cancel with CTRL-C. How can I signal EOF?

Thanks

Alex

Am 29.09.2007 um 17:35 schrieb Terry Lambert:

uiomove and if you wanted to cause the least amount of future work, probably uiomove64.

-- Terry

On Sep 29, 2007, at 2:46 AM, Alexander von Below <email@hidden> wrote:

 _______________________________________________
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

References: 
 >[darwin-dev] Where is uwritec ? (From: Alexander von Below <email@hidden>)
 >Re: [darwin-dev] Where is uwritec ? (From: Terry Lambert <email@hidden>)
 >Re: [darwin-dev] Where is uwritec ? (From: Alexander von Below <email@hidden>)
 >Re: [darwin-dev] Where is uwritec ? (From: Terry Lambert <email@hidden>)

  • Prev by Date: Re: Darwin-dev Digest, Vol 4, Issue 207
  • Next by Date: Re: [darwin-dev] n00b uiomove64 question, Was: Where is uwritec ?
  • Previous by thread: Re: [darwin-dev] Where is uwritec ?
  • Next by thread: Re: [darwin-dev] n00b uiomove64 question, Was: Where is uwritec ?
  • Index(es):
    • Date
    • Thread