summaryrefslogtreecommitdiff
path: root/src/runtime/cgo.go
blob: 7e6b253af92c2aea5aee7f75aa444d0c8edb3ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2014 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"

//go:cgo_export_static main

// Filled in by runtime/cgo when linked into binary.

//go:linkname _cgo_init _cgo_init
//go:linkname _cgo_malloc _cgo_malloc
//go:linkname _cgo_free _cgo_free
//go:linkname _cgo_thread_start _cgo_thread_start

var (
	_cgo_init         unsafe.Pointer
	_cgo_malloc       unsafe.Pointer
	_cgo_free         unsafe.Pointer
	_cgo_thread_start unsafe.Pointer
)