| 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 cgoKeepAlive |
| 17 |
//go:linkname cgoCheckPointer |
| 18 |
//go:linkname cgoCheckResult |
| 19 |
//go:linkname cgoNoCallback |
| 20 |
//go:linkname gobytes |
| 21 |
//go:linkname gostringn |
| 22 |
|
| 23 |
// used in plugin |
| 24 |
//go:linkname doInit |
| 25 |
|
| 26 |
// used in math/bits |
| 27 |
//go:linkname overflowError |
| 28 |
//go:linkname divideError |
| 29 |
|
| 30 |
// used in tests |
| 31 |
//go:linkname extraMInUse |
| 32 |
//go:linkname blockevent |
| 33 |
//go:linkname haveHighResSleep |
| 34 |
//go:linkname blockUntilEmptyFinalizerQueue |
| 35 |
//go:linkname lockedOSThread |