github.com/ebitengine/purego@v0.8.0-alpha.2.0.20240512170805-6cd12240d332/internal/fakecgo/setenv.go (about)

     1  // Copyright 2011 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 !cgo && (darwin || freebsd || linux)
     6  
     7  package fakecgo
     8  
     9  import _ "unsafe" // for go:linkname
    10  
    11  //go:linkname x_cgo_setenv_trampoline x_cgo_setenv_trampoline
    12  //go:linkname _cgo_setenv runtime._cgo_setenv
    13  var x_cgo_setenv_trampoline byte
    14  var _cgo_setenv = &x_cgo_setenv_trampoline
    15  
    16  //go:linkname x_cgo_unsetenv_trampoline x_cgo_unsetenv_trampoline
    17  //go:linkname _cgo_unsetenv runtime._cgo_unsetenv
    18  var x_cgo_unsetenv_trampoline byte
    19  var _cgo_unsetenv = &x_cgo_unsetenv_trampoline