netbsd.go 558 B

1234567891011121314151617181920212223
  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. //go:build netbsd
  5. package fakecgo
  6. import _ "unsafe" // for go:linkname
  7. // Supply environ and __progname, because we don't
  8. // link against the standard NetBSD crt0.o and the
  9. // libc dynamic library needs them.
  10. //go:linkname _environ environ
  11. //go:linkname _progname __progname
  12. //go:linkname ___ps_strings __ps_strings
  13. var (
  14. _environ uintptr
  15. _progname uintptr
  16. ___ps_strings uintptr
  17. )