github.com/aloncn/graphics-go@v0.0.1/src/runtime/cgo/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  // +build darwin dragonfly freebsd linux netbsd openbsd solaris
     6  
     7  package cgo
     8  
     9  import _ "unsafe" // for go:linkname
    10  
    11  //go:cgo_import_static x_cgo_setenv
    12  //go:linkname x_cgo_setenv x_cgo_setenv
    13  //go:linkname _cgo_setenv runtime._cgo_setenv
    14  var x_cgo_setenv byte
    15  var _cgo_setenv = &x_cgo_setenv
    16  
    17  //go:cgo_import_static x_cgo_unsetenv
    18  //go:linkname x_cgo_unsetenv x_cgo_unsetenv
    19  //go:linkname _cgo_unsetenv runtime._cgo_unsetenv
    20  var x_cgo_unsetenv byte
    21  var _cgo_unsetenv = &x_cgo_unsetenv