Source file src/runtime/cgo/cgo_solaris.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 6 7 package cgo 8 9 const ( 10 _SIG_SETMASK = 3 11 _EAGAIN = 11 12 _PTHREAD_CREATE_DETACHED = 0x40 13 ) 14 15 //go:cgo_import_dynamic _ _ "libc.so" 16 //go:cgo_import_dynamic _cgo_libc_setenv setenv "libc.so" 17 //go:cgo_import_dynamic _cgo_libc_unsetenv unsetenv "libc.so" 18 //go:cgo_import_dynamic _cgo_libc_sigfillset sigfillset "libc.so" 19 //go:cgo_import_dynamic _cgo_libc_pthread_create pthread_create "libc.so" 20 //go:cgo_import_dynamic _cgo_libc_pthread_attr_init pthread_attr_init "libc.so" 21 //go:cgo_import_dynamic _cgo_libc_pthread_attr_setdetachstate pthread_attr_setdetachstate "libc.so" 22 //go:cgo_import_dynamic _cgo_libc_pthread_attr_getstacksize pthread_attr_getstacksize "libc.so" 23 //go:cgo_import_dynamic _cgo_libc_pthread_attr_setstacksize pthread_attr_setstacksize "libc.so" 24 //go:cgo_import_dynamic _cgo_libc_pthread_attr_getstack pthread_attr_getstack "libc.so" 25 //go:cgo_import_dynamic _cgo_libc_pthread_attr_destroy pthread_attr_destroy "libc.so" 26 //go:cgo_import_dynamic _cgo_libc_pthread_key_create pthread_key_create "libc.so" 27 //go:cgo_import_dynamic _cgo_libc_pthread_setspecific pthread_setspecific "libc.so" 28 //go:cgo_import_dynamic _cgo_libc_pthread_self pthread_self "libc.so" 29 //go:cgo_import_dynamic _cgo_libc_pthread_sigmask pthread_sigmask "libc.so" 30