Source file src/runtime/cgo/cgo_solaris_nonillumos.go
1 // Copyright 2026 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 goexperiment.runtimecgopurego && !msan && !tsan && solaris && !illumos 6 7 package cgo 8 9 // Solaris provides pthread_getattr_np but not pthread_attr_get_np. Importing 10 // only the function that exists makes an accidental reference to the other 11 // fail at link time rather than at run time. 12 13 //go:cgo_import_dynamic _cgo_libc_pthread_getattr_np pthread_getattr_np "libc.so" 14