site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 25 Sep 2009, at 20:07, Terry Lambert wrote: press? -- Terry _______________________________________________ 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... On Sep 25, 2009, at 1:35 PM, Alastair Houghton wrote: If the same file is being contended in multiple threads (the mutex usage will normally not kick in unless your program is multithreaded in the first place), then you need to stop using stdio and switch to using aio_read or press instead, and managing any block buffering, like that normally provided by stdio, in your own code. I don't recognise that in this context, but I'm curious? pread, corrected by the iPhone autocorrection into a word i knows about instead of a system call name it doesn't. And in which version of OS X did support for aio_read() debut? I don't recall noticing support for the REALTIME stuff before (maybe I just missed it somehow). We don't support all of POSIX RT. The option set that that's in is actially AIO, which is a subset of RT, and we don't se _POSIX_ASYNCHRONOUS_IO in <unistd.h> because we don't support one of the option flags to aio_fsync() in a POSIX compliant way. And it debuted in Tiger, which from my point of view makes it an antique. This email sent to site_archiver@lists.apple.com