site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thanks, it had not been answered! Keeping state and returning 0 bytes works like intended! Alex Am 01.10.2007 um 01:27 schrieb Justin C. Walker: On Sep 30, 2007, at 7:03 PM, Alexander von Below wrote: Hello List, I have another, hopefully simple question: int len; char buf[1024]; len = snprintf(buf, 1024, "Hello World\n"); error = uiomove64((unsigned long long)buf, len, uio); Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds -------- If you're not confused, You're not paying attention -------- _______________________________________________ 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... 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: When I do cat /dev/mydevice, I get an ever-repeating "Hello World", until I cancel with CTRL-C. How can I signal EOF? My mail is squirrelly so I don't know whether this has been answered (so this is off-list). Your read routine has to keep state: once it's been called (for a particular "session" if you keep track of that), you change state, and the next time, return 0 bytes. This email sent to site_archiver@lists.apple.com