src/runtime/cgo/clearenv.go
raw| 1 | // Copyright 2025 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 linux |
| 6 | |
| 7 | package cgo |
| 8 | |
| 9 | import _ "unsafe" // for go:linkname |
| 10 | |
| 11 | //go:cgo_import_static x_cgo_clearenv |
| 12 | //go:linkname x_cgo_clearenv x_cgo_clearenv |
| 13 | //go:linkname _cgo_clearenv runtime._cgo_clearenv |
| 14 | var x_cgo_clearenv byte |
| 15 | var _cgo_clearenv = &x_cgo_clearenv |