Source file src/runtime/cgo/freebsd.go
Documentation: runtime/cgo
1 // Copyright 2010 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 //go:build freebsd 6 // +build freebsd 7 8 package cgo 9 10 import _ "unsafe" // for go:linkname 11 12 // Supply environ and __progname, because we don't 13 // link against the standard FreeBSD crt0.o and the 14 // libc dynamic library needs them. 15 16 //go:linkname _environ environ 17 //go:linkname _progname __progname 18 19 //go:cgo_export_dynamic environ 20 //go:cgo_export_dynamic __progname 21 22 var _environ uintptr 23 var _progname uintptr 24