aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/string.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go
index eaade640c4..a00976be59 100644
--- a/src/runtime/string.go
+++ b/src/runtime/string.go
@@ -325,6 +325,13 @@ func gostring(p *byte) string {
return s
}
+// internal_syscall_gostring is a version of gostring for internal/syscall/unix.
+//
+//go:linkname internal_syscall_gostring internal/syscall/unix.gostring
+func internal_syscall_gostring(p *byte) string {
+ return gostring(p)
+}
+
func gostringn(p *byte, l int) string {
if l == 0 {
return ""