]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] runtime/cgo: add comment about import _ "unsafe"
authorRuss Cox <rsc@golang.org>
Wed, 12 Nov 2014 19:54:04 +0000 (14:54 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 12 Nov 2014 19:54:04 +0000 (14:54 -0500)
LGTM=bradfitz, r
R=r, bradfitz
CC=golang-codereviews
https://golang.org/cl/167650043

src/runtime/cgo/dragonfly.go
src/runtime/cgo/freebsd.go
src/runtime/cgo/iscgo.go
src/runtime/cgo/netbsd.go
src/runtime/cgo/openbsd.go
src/runtime/cgo/setenv.go

index 96eb8660e06e70a7f123a6ff52c896ec9b4b0d39..69d52b5b2f97a4945431acddd247a368c16a52f7 100644 (file)
@@ -6,7 +6,7 @@
 
 package cgo
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 // Supply environ and __progname, because we don't
 // link against the standard DragonFly crt0.o and the
index 3b014323653db782eef6870c673c07e151f28482..62de1af8a002e0e4eef084293831748f866422fd 100644 (file)
@@ -6,7 +6,7 @@
 
 package cgo
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 // Supply environ and __progname, because we don't
 // link against the standard FreeBSD crt0.o and the
index 5544fd1e30787d24985206bffe166d078860b728..61cba73d2221a6768d965fd64401977fbc6c14d3 100644 (file)
@@ -11,7 +11,7 @@
 
 package cgo
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 //go:linkname _iscgo runtime.iscgo
 var _iscgo bool = true
index 67f96530c1f890bb8d46b7cb485c2dc66aac1156..ac6b18a93271eccaba2f9a0711ebfc28067da43d 100644 (file)
@@ -6,7 +6,7 @@
 
 package cgo
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 // Supply environ and __progname, because we don't
 // link against the standard NetBSD crt0.o and the
index 29ebcf83aac25d96d1fbcb6c51fa0976b2aeeb06..61af3a8e749694ee2807652978093cb1d5c0cc79 100644 (file)
@@ -6,7 +6,7 @@
 
 package cgo
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 // Supply environ, __progname and __guard_local, because
 // we don't link against the standard OpenBSD crt0.o and
index 1612f87c25971f3e870b91d808e527b353342b4d..97c8c6ac9d4af5d5c3ac3991966792dcf6f8f0c7 100644 (file)
@@ -6,7 +6,7 @@
 
 package cgo
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 //go:cgo_import_static x_cgo_setenv
 //go:linkname x_cgo_setenv x_cgo_setenv