]> Cypherpunks repositories - gostls13.git/commitdiff
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)
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]

similarity index 98%
rename from src/os/file_darwin.go
rename to src/runtime/cgo/tmpdir_darwin.go
index ee3a954683a318d3d57ac00b4a9ea3c01cbf1c8d..1239c70de997dd93a59bf6d3d9cc126bffbc5392 100644 (file)
@@ -4,7 +4,7 @@
 
 // +build arm arm64
 
-package os
+package cgo
 
 /*
 #cgo CFLAGS: -x objective-c