aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2014-12-23 00:03:40 -0500
committerMinux Ma <minux@golang.org>2014-12-23 05:09:07 +0000
commit1050c4197ad1cf3ffd1beff111f19d75fc274b3d (patch)
tree9a1ad1260b1c7017f9eec509cf22e580360dadff /src/runtime
parent1e4b642f8d0f2fe594d17700e8f556d2e323036b (diff)
downloadgo-1050c4197ad1cf3ffd1beff111f19d75fc274b3d.tar.xz
runtime: add comments for blank import of "unsafe"
Change-Id: Iaad548ea90d3b70341a723450d5e4d4c2b88856f Reviewed-on: https://go-review.googlesource.com/2063 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/noasm.go2
-rw-r--r--src/runtime/os_android_arm.go2
-rw-r--r--src/runtime/os_windows.go2
-rw-r--r--src/runtime/syscall2_solaris.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/noasm.go b/src/runtime/noasm.go
index 998309e828..c5ef672432 100644
--- a/src/runtime/noasm.go
+++ b/src/runtime/noasm.go
@@ -9,7 +9,7 @@
package runtime
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
func cmpstring(s1, s2 string) int {
l := len(s1)
diff --git a/src/runtime/os_android_arm.go b/src/runtime/os_android_arm.go
index 132832236a..be7c3c000b 100644
--- a/src/runtime/os_android_arm.go
+++ b/src/runtime/os_android_arm.go
@@ -4,7 +4,7 @@
package runtime
-import _ "unsafe"
+import _ "unsafe" // for go:cgo_export_static and go:cgo_export_dynamic
// Export the runtime entry point symbol.
//
diff --git a/src/runtime/os_windows.go b/src/runtime/os_windows.go
index 9497a600fe..66e0d77b65 100644
--- a/src/runtime/os_windows.go
+++ b/src/runtime/os_windows.go
@@ -4,7 +4,7 @@
package runtime
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
type stdFunction *byte
diff --git a/src/runtime/syscall2_solaris.go b/src/runtime/syscall2_solaris.go
index f4ffa74105..cbf2a95329 100644
--- a/src/runtime/syscall2_solaris.go
+++ b/src/runtime/syscall2_solaris.go
@@ -4,7 +4,7 @@
package runtime
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
//go:cgo_import_dynamic libc_chdir chdir "libc.so"
//go:cgo_import_dynamic libc_chroot chroot "libc.so"