go/src/runtime/linkname.go

42 lines
921 B
Go

// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runtime
import _ "unsafe"
// used in internal/godebug and syscall
//go:linkname write
// used in internal/runtime/atomic
//go:linkname goarm
// used by cgo
//go:linkname _cgo_panic_internal
//go:linkname cgoAlwaysFalse
//go:linkname cgoUse
//go:linkname cgoCheckPointer
//go:linkname cgoCheckResult
//go:linkname cgoNoCallback
//go:linkname gobytes
//go:linkname gostringn
// used in plugin
//go:linkname doInit
// used in math/bits
//go:linkname overflowError
//go:linkname divideError
// used in runtime/coverage and in tests
//go:linkname addExitHook
// used in tests
//go:linkname extraMInUse
//go:linkname getm
//go:linkname blockevent
//go:linkname haveHighResSleep
//go:linkname blockUntilEmptyFinalizerQueue
//go:linkname lockedOSThread