]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: move TMPDIR magic out of os
authorRuss Cox <rsc@golang.org>
Thu, 23 Jul 2015 16:19:09 +0000 (12:19 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 27 Jul 2015 16:05:42 +0000 (16:05 +0000)
commitf6fb549d22a66516ae96720e9a322aad80d0aaa7
treeda249d198a44335d04b34ed162bd85cac8654fb8
parenteb2d946d354b96303916e57d9de6492b0df5b88e
runtime/cgo: move TMPDIR magic out of os

It's not clear this really belongs anywhere at all,
but this is a better place for it than package os.
This way package os can avoid importing "C".

Fixes #10455.

Change-Id: Ibe321a93bf26f478951c3a067d75e22f3d967eb7
Reviewed-on: https://go-review.googlesource.com/12574
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/runtime/cgo/tmpdir_darwin.go [moved from src/os/file_darwin.go with 98% similarity]