site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ObQcVOEkrbe5eXXPdpW25s7kpbZXP/wQFAPx9tmfxf8=; b=AWn+7fCfAM72qMvUpVbn+32zMALwHQ64cgjkf2t5x99v+8DyX954N1/W3n8EcH920c cN2Z91dANlY/3CV8dmAM80MM5UYG00V6DpAtQBak0oFFEVSWBZ++DVZLVkkeRGU5K4SL j7BRpNXzxIuzSBKmuuvn/hhTG/u9N9dxV3AIE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jSX/BngqGrZuHOz4z/PWgQTTbyZ/sygq97ti2i1gwvSZhS1gDQIwHIyymbChO8PhuU jLMwf9I5fpGv4ZcJs9jvgpSb2RYPUmVrKNNtToTrSZcA9SryDr/9cqgE9Hun1f9kpGyB LSx1tpzmu94OvEkK81x8kNvMN6yYeaekkgBSs= On Thu, May 5, 2011 at 2:33 AM, Tilghman Lesher <tilghman@meg.abyt.es> wrote:
On Thursday 05 May 2011 00:58:48 Eric Gouriou wrote:
Use a per-thread CWD? Darwin supports them but I can't figure where/whether it is documented. A previous reference to this capability, from an apple.com address: <http://lists.apple.com/archives/unix-porting/2008/Mar/msg00028.html>
The *at functions are generally considered to be the way that a per-thread working directory is implemented. Perhaps the author misspoke or was referring to an as-yet unreleased version of OS X (10.7 Lion, maybe?).
I grepped the xnu source for 10.6.7 and there's a pthread_chdir syscall implemented. But it doesn't look like it made it any further than that to userland. I didn't to the work of making sure that open/etc take advantage of the per-thread cwd however. _______________________________________________ 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... This email sent to site_archiver@lists.apple.com