[darwin-dev] n00b uiomove64 question, Was: Where is uwritec ?
[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