Source file src/runtime/linkname.go
1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package runtime 6 7 import _ "unsafe" 8 9 // used in internal/godebug and syscall 10 //go:linkname write 11 12 // used by cgo 13 //go:linkname _cgo_panic_internal 14 //go:linkname cgoAlwaysFalse 15 //go:linkname cgoUse 16 //go:linkname cgoCheckPointer 17 //go:linkname cgoCheckResult 18 //go:linkname cgoNoCallback 19 //go:linkname gobytes 20 //go:linkname gostringn 21 22 // used in plugin 23 //go:linkname doInit 24 25 // used in math/bits 26 //go:linkname overflowError 27 //go:linkname divideError 28 29 // used in tests 30 //go:linkname extraMInUse 31 //go:linkname blockevent 32 //go:linkname haveHighResSleep 33 //go:linkname blockUntilEmptyFinalizerQueue 34 //go:linkname lockedOSThread 35