1 // Copyright 2018 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.
99 _PTHREAD_CREATE_DETACHED = 0x1
101 __SC_PAGE_SIZE = 0x30
102 __SC_NPROCESSORS_ONLN = 0x48
109 type sigset [4]uint64
111 var sigset_all = sigset{^uint64(0), ^uint64(0), ^uint64(0), ^uint64(0)}
113 type siginfo struct {
122 si_value [2]int32 // [8]byte
127 type timespec struct {
133 func (ts *timespec) setNsec(ns int64) {
135 ts.tv_nsec = ns % 1e9
138 type timeval struct {
144 func (tv *timeval) set_usec(x int32) {
148 type itimerval struct {
161 type sigcontext struct {
169 type ucontext struct {
175 uc_mcontext context64
178 __extctx uintptr // pointer to struct __extctx but we don't use it
183 type context64 struct {
202 type sigactiont struct {
203 sa_handler uintptr // a union of two pointer
210 type pthread_attr *byte