Source file src/runtime/cgo/cgo_illumos.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 6 7 package cgo 8 9 // Illumos provides pthread_attr_get_np but not pthread_getattr_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_attr_get_np pthread_attr_get_np "libc.so" 14