1 // created by cgo -cdefs and then converted to Go
2 // cgo -cdefs defs_darwin.go
25 _MADV_FREE_REUSABLE = 0x7
26 _MADV_FREE_REUSE = 0x8
95 _PTHREAD_CREATE_DETACHED = 0x2
97 _PTHREAD_KEYS_MAX = 512
107 _VM_REGION_BASIC_INFO_COUNT_64 = 0x9
108 _VM_REGION_BASIC_INFO_64 = 0x9
118 type sigactiont struct {
119 __sigaction_u [8]byte
120 sa_tramp unsafe.Pointer
125 type usigactiont struct {
126 __sigaction_u [8]byte
131 type siginfo struct {
144 type timeval struct {
150 func (tv *timeval) set_usec(x int32) {
154 type itimerval struct {
159 type timespec struct {
165 func (ts *timespec) setNsec(ns int64) {
167 ts.tv_nsec = ns % 1e9
170 type exceptionstate64 struct {
171 far uint64 // virtual fault addr
172 esr uint32 // exception syndrome
173 exc uint32 // number of arm exception taken
177 x [29]uint64 // registers x0 to x28
178 fp uint64 // frame register, x29
179 lr uint64 // link register, x30
180 sp uint64 // stack pointer, x31
181 pc uint64 // program counter
182 cpsr uint32 // current program status register
186 type neonstate64 struct {
187 v [64]uint64 // actually [32]uint128
192 type mcontext64 struct {
198 type ucontext struct {
204 uc_mcontext *mcontext64
207 type keventt struct {
217 type pthreadattr struct {
221 type pthreadmutex struct {
225 type pthreadmutexattr struct {
229 type pthreadcond struct {
233 type pthreadcondattr struct {
238 type machTimebaseInfo struct {
243 type pthreadkey uint64
246 type machVMMapRead uint32
247 type machVMAddress uint64
248 type machVMSize uint64
249 type machVMRegionFlavour int32
250 type machVMRegionInfo *int32
251 type machMsgTypeNumber uint32